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.0009734/0.0009734, allocations: 91.67 kB / 21.19 MB, free: 3.367 MB / 18.57 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.0009791/0.0009791, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 18.57 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.9086/0.9086, allocations: 177 MB / 204.8 MB, free: 5.242 MB / 186.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.844e-06/1.844e-06, allocations: 0 / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.685e-05, allocations: 2.312 kB / 272.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002852/0.002879, allocations: 2.399 MB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.004009, allocations: 0.8531 MB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.00415, allocations: 11.94 kB / 276.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002613/0.004411, allocations: 55.5 kB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.004593, allocations: 71.42 kB / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.004968, allocations: 203.4 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005557/0.005524, allocations: 407.3 kB / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.005676, allocations: 75.78 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.005967, allocations: 235.5 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.006131, allocations: 151.6 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.502e-05/0.006176, allocations: 36 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.52e-05/0.006211, allocations: 32 kB / 277.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.484e-05/0.006306, allocations: 115.6 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.006387, allocations: 111.6 kB / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.006653, allocations: 282.9 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.006655, allocations: 0 / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006656, allocations: 3.938 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.006662, allocations: 0 / 277.9 MB, free: 12.29 MB / 266.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.0007793/0.007441, allocations: 0.6869 MB / 278.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.007477, allocations: 15.97 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.708e-05/0.007564, allocations: 76.7 kB / 278.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.007873, allocations: 259.9 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.008068, allocations: 339.9 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.008114, allocations: 36.31 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007228/0.008837, allocations: 468.7 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.00885, allocations: 192 / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.008877, allocations: 20.12 kB / 279.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.008888, allocations: 8 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003552/0.009243, allocations: 239.7 kB / 280 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008629/0.01011, allocations: 0.9447 MB / 281 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.01065, allocations: 344.6 kB / 281.3 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.01083, allocations: 150.9 kB / 281.4 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.01086, allocations: 8 kB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.01089, allocations: 53.2 kB / 281.5 MB, free: 8.371 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.393e-06/0.01089, allocations: 0 / 281.5 MB, free: 8.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01025/0.02114, allocations: 2.664 MB / 284.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.02126, allocations: 152.9 kB / 284.3 MB, free: 5.516 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.0216, allocations: 296.3 kB / 284.6 MB, free: 5.211 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.997e-05/0.0217, allocations: 33.7 kB / 284.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.02182, allocations: 200.4 kB / 284.8 MB, free: 4.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.02202, allocations: 202.3 kB / 285 MB, free: 4.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.0223, allocations: 99.95 kB / 285.1 MB, free: 4.664 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.0225, allocations: 0.5156 MB / 285.6 MB, free: 4.137 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007243/0.02322, allocations: 321.2 kB / 286 MB, free: 3.824 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007655/0.02399, allocations: 428.5 kB / 286.4 MB, free: 3.367 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.02523, allocations: 0.6474 MB / 287 MB, free: 2.684 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.02523, allocations: 0 / 287 MB, free: 2.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00174/0.02697, allocations: 0.7902 MB / 287.8 MB, free: 1.887 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.027, allocations: 4 kB / 287.8 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.02701, allocations: 4.312 kB / 287.8 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/0.02704, allocations: 4 kB / 287.8 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.02806, allocations: 159.8 kB / 288 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/0.02808, allocations: 7.938 kB / 288 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006669/0.02875, allocations: 75.91 kB / 288.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.172e-05/0.02883, allocations: 24.11 kB / 288.1 MB, free: 1.613 MB / 266.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.0002905/0.02912, allocations: 196.3 kB / 288.3 MB, free: 1.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/0.02949, allocations: 161.4 kB / 288.4 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.02962, allocations: 67.61 kB / 288.5 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.02963, allocations: 8 kB / 288.5 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.02964, allocations: 0 / 288.5 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.02965, allocations: 3.984 kB / 288.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1275/0.1571, allocations: 1.525 MB / 290 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.1572, allocations: 12.02 kB / 290.1 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/0.1577, allocations: 164.2 kB / 290.2 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.891e-05/0.1577, allocations: 14.5 kB / 290.2 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.1578, allocations: 27.38 kB / 290.3 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.676e-05/0.1578, allocations: 19 kB / 290.3 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.26e-05/0.1578, allocations: 20.62 kB / 290.3 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.159, allocations: 1.234 MB / 291.5 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.1592, allocations: 108.2 kB / 291.6 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.1593, allocations: 29.75 kB / 291.7 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.1596, allocations: 58.73 kB / 291.7 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.1597, allocations: 89.89 kB / 291.8 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.1598, allocations: 33.31 kB / 291.8 MB, free: 23.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001438/0.1599, allocations: 202.6 kB / 292 MB, free: 23.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1599, allocations: 1.125 kB / 292 MB, free: 23.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005211/0.1604, allocations: 121.2 kB / 292.2 MB, free: 23.8 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.0001548/0.1606, allocations: 134.1 kB / 292.3 MB, free: 23.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009688/0.1616, allocations: 0.5829 MB / 292.9 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/0.1616, allocations: 1.156 kB / 292.9 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.1618, allocations: 164.4 kB / 293 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006407/0.1625, allocations: 160.1 kB / 293.2 MB, free: 23.67 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.1642, allocations: 1.189 MB / 294.4 MB, free: 22.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.1643, allocations: 136.7 kB / 294.5 MB, free: 22.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003181/0.1646, allocations: 87.14 kB / 294.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.1648, allocations: 38.55 kB / 294.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of SimCode: time 1.704e-06/0.1648, allocations: 0 / 294.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of Templates: time 0.01164/0.1765, allocations: 9.042 MB / 303.7 MB, free: 19.85 MB / 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 -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: 3.1057915478013456]