Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007811/0.0007811, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0011/0.001881, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007578/0.0007578, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008888/0.001647, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9124/0.9124, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07976/0.9922, allocations: 53.87 MB / 243.8 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.976e-06/1.035e-05, allocations: 2.312 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00276/0.002771, allocations: 2.442 MB / 247.4 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.00398, allocations: 0.8723 MB / 248.3 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.004119, allocations: 11.88 kB / 248.3 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.004294, allocations: 47.58 kB / 248.4 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.004472, allocations: 79.36 kB / 248.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004211/0.004894, allocations: 195.4 kB / 248.6 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.005259, allocations: 395.5 kB / 249 MB, free: 9.625 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.005399, allocations: 82.44 kB / 249.1 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.005709, allocations: 255.4 kB / 249.3 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.005891, allocations: 151.5 kB / 249.5 MB, free: 9.148 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.841e-05/0.00594, allocations: 36 kB / 249.5 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.512e-05/0.005985, allocations: 36 kB / 249.6 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.908e-05/0.006074, allocations: 83.72 kB / 249.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.796e-05/0.006162, allocations: 79.81 kB / 249.7 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.006433, allocations: 251.1 kB / 250 MB, free: 8.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.17e-05/0.006445, allocations: 0 / 250 MB, free: 8.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006446, allocations: 0 / 250 MB, free: 8.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.00646, allocations: 0 / 250 MB, free: 8.672 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008724/0.007332, allocations: 0.6204 MB / 250.6 MB, free: 8.027 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.007361, allocations: 8.031 kB / 250.6 MB, free: 8.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.007444, allocations: 68.83 kB / 250.7 MB, free: 7.953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.007721, allocations: 233.1 kB / 250.9 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.00792, allocations: 339.9 kB / 251.2 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.007973, allocations: 36.3 kB / 251.3 MB, free: 7.266 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005392/0.008512, allocations: 424.3 kB / 251.7 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.008527, allocations: 8.141 kB / 251.7 MB, free: 6.812 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.008551, allocations: 12.12 kB / 251.7 MB, free: 6.801 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.008561, allocations: 8 kB / 251.7 MB, free: 6.793 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.008891, allocations: 181.7 kB / 251.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008134/0.009704, allocations: 0.639 MB / 252.5 MB, free: 5.941 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005175/0.01022, allocations: 326.8 kB / 252.8 MB, free: 5.582 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.01036, allocations: 111.4 kB / 252.9 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.0104, allocations: 11.98 kB / 253 MB, free: 5.449 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.01043, allocations: 38.56 kB / 253 MB, free: 5.402 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.783e-06/0.01043, allocations: 4 kB / 253 MB, free: 5.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.007109/0.01754, allocations: 2.256 MB / 255.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.886e-05/0.01761, allocations: 145 kB / 255.4 MB, free: 2.961 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.01776, allocations: 228.9 kB / 255.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.01781, allocations: 37.7 kB / 255.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.01786, allocations: 137.7 kB / 255.8 MB, free: 2.547 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.018, allocations: 194.3 kB / 256 MB, free: 2.355 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.0182, allocations: 102.2 kB / 256.1 MB, free: 2.25 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.962e-05/0.01829, allocations: 342.8 kB / 256.4 MB, free: 1.906 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003045/0.0186, allocations: 204.1 kB / 256.6 MB, free: 1.703 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.01895, allocations: 298.6 kB / 256.9 MB, free: 1.387 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006087/0.01956, allocations: 0.4912 MB / 257.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.01956, allocations: 7.938 kB / 257.4 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007547/0.02032, allocations: 0.5326 MB / 257.9 MB, free: 328 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.02033, allocations: 7.984 kB / 257.9 MB, free: 320 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.02034, allocations: 4 kB / 258 MB, free: 316 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.02035, allocations: 4 kB / 258 MB, free: 312 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007814/0.02113, allocations: 183.2 kB / 258.1 MB, free: 132 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.02113, allocations: 4 kB / 258.1 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.02154, allocations: 75.86 kB / 258.2 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.02159, allocations: 16.06 kB / 258.2 MB, free: 36 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.02176, allocations: 152.5 kB / 258.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.02196, allocations: 114 kB / 258.5 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.159e-05/0.02206, allocations: 71.61 kB / 258.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.02206, allocations: 8 kB / 258.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.02207, allocations: 4 kB / 258.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.02207, allocations: 3.984 kB / 258.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.02393, allocations: 1.208 MB / 259.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.02394, allocations: 12 kB / 259.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.02441, allocations: 183.7 kB / 260 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.02455, allocations: 75.55 kB / 260 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.02456, allocations: 16 kB / 260.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.02459, allocations: 28.44 kB / 260.1 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.205e-05/0.0246, allocations: 23.92 kB / 260.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/0.02461, allocations: 15.94 kB / 260.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007765/0.02539, allocations: 0.8356 MB / 261 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.688e-05/0.02545, allocations: 31.98 kB / 261 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003472/0.02579, allocations: 59.97 kB / 261.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.02593, allocations: 91.58 kB / 261.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.02596, allocations: 28 kB / 261.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.805e-05/0.02603, allocations: 78.77 kB / 261.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02603, allocations: 0 / 261.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004512/0.02648, allocations: 119.9 kB / 261.4 MB, free: 12.56 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001032/0.02659, allocations: 112.2 kB / 261.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006297/0.02722, allocations: 469.1 kB / 261.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/0.02723, allocations: 8 kB / 261.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.02743, allocations: 162.9 kB / 262.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006591/0.02809, allocations: 180.3 kB / 262.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.03102, allocations: 1.178 MB / 263.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.03113, allocations: 134.8 kB / 263.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003406/0.03147, allocations: 79.33 kB / 263.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.03183, allocations: 119.4 kB / 263.8 MB, free: 9.949 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.03183, allocations: 0 / 263.8 MB, free: 9.949 MB / 266.7 MB Notification: Performance of Templates: time 0.01256/0.04439, allocations: 9.734 MB / 273.5 MB, free: 276 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.563629404641688]