Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 116.9 kB / 18.41 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001707/0.001707, allocations: 186.9 kB / 21.34 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 222.9 MB / 247 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 51.92 kB / 358.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 49.44 MB / 408.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003511/0.1074, allocations: 2.141 MB / 410.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1086, allocations: 0.6509 MB / 410.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.1088, allocations: 4 kB / 410.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002796/0.1091, allocations: 47.64 kB / 410.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.1092, allocations: 51.62 kB / 411 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.1096, allocations: 123.8 kB / 411.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.11, allocations: 343.2 kB / 411.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.1102, allocations: 68.25 kB / 411.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.1104, allocations: 143.5 kB / 411.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1107, allocations: 159.4 kB / 411.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-05/0.1107, allocations: 28 kB / 411.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.672e-05/0.1108, allocations: 32 kB / 411.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1109, allocations: 79.8 kB / 411.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.1111, allocations: 119.4 kB / 412 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003704/0.1114, allocations: 286.8 kB / 412.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1115, allocations: 4 kB / 412.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.077e-06/0.1115, allocations: 0 / 412.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1115, allocations: 3.938 kB / 412.3 MB, free: 2.574 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001198/0.1127, allocations: 0.5804 MB / 412.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1127, allocations: 11.89 kB / 412.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.012e-05/0.1128, allocations: 40.75 kB / 413 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.1132, allocations: 248.5 kB / 413.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.1134, allocations: 134.2 kB / 413.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.973e-05/0.1135, allocations: 31.86 kB / 413.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008943/0.1144, allocations: 371.6 kB / 413.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.1144, allocations: 0 / 413.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.1145, allocations: 4 kB / 413.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.1145, allocations: 8 kB / 413.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.1159, allocations: 0.4901 MB / 414.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.1177, allocations: 1.003 MB / 415.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.119, allocations: 331.1 kB / 415.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000552/0.1195, allocations: 177.9 kB / 415.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.1196, allocations: 12.17 kB / 415.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.1196, allocations: 38.8 kB / 415.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.924e-06/0.1196, allocations: 0 / 415.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02817/0.1478, allocations: 5.806 MB / 421.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.1479, allocations: 55.84 kB / 421.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.1482, allocations: 206.6 kB / 421.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/0.1483, allocations: 37.7 kB / 421.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.1484, allocations: 152.9 kB / 422 MB, free: 8.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.1486, allocations: 186.4 kB / 422.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.1488, allocations: 86.25 kB / 422.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.149, allocations: 338.8 kB / 422.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.1504, allocations: 460.8 kB / 423.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.1519, allocations: 0.5177 MB / 423.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/0.1544, allocations: 0.811 MB / 424.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1544, allocations: 0 / 424.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003024/0.1575, allocations: 0.9907 MB / 425.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.1575, allocations: 7.938 kB / 425.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.1575, allocations: 4 kB / 425.4 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.1575, allocations: 7.984 kB / 425.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009962/0.1585, allocations: 163.7 kB / 425.6 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.1586, allocations: 4 kB / 425.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007109/0.1593, allocations: 87.92 kB / 425.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.825e-05/0.1594, allocations: 16 kB / 425.7 MB, free: 4.836 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002406/0.1596, allocations: 157.7 kB / 425.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.1597, allocations: 31.75 kB / 425.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.1599, allocations: 59.23 kB / 425.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.1599, allocations: 8 kB / 425.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.1599, allocations: 4 kB / 425.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.1599, allocations: 3.984 kB / 425.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004402/0.1643, allocations: 1.862 MB / 427.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.1643, allocations: 12 kB / 427.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006628/0.165, allocations: 147.8 kB / 428 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.165, allocations: 12.47 kB / 428 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.1651, allocations: 28 kB / 428 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.418e-05/0.1651, allocations: 11.94 kB / 428 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.298e-05/0.1651, allocations: 15.94 kB / 428 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/0.1681, allocations: 1.223 MB / 429.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.1683, allocations: 148.8 kB / 429.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.1684, allocations: 20 kB / 429.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005249/0.1689, allocations: 75.91 kB / 429.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/0.1691, allocations: 87.67 kB / 429.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.1692, allocations: 20 kB / 429.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001946/0.1694, allocations: 144.2 kB / 429.7 MB, free: 468 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1694, allocations: 4 kB / 429.7 MB, free: 464 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.1699, allocations: 100 kB / 429.8 MB, free: 364 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001902/0.1701, allocations: 131 kB / 430 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.2106/0.3807, allocations: 0.8591 MB / 430.8 MB, free: 23.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.3807, allocations: 4.406 kB / 430.8 MB, free: 23.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009914/0.3817, allocations: 323.5 kB / 431.1 MB, free: 23.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000716/0.3825, allocations: 57.16 kB / 431.2 MB, free: 23.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.3845, allocations: 1.054 MB / 432.3 MB, free: 23.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.3848, allocations: 0.7842 MB / 433 MB, free: 22.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.3851, allocations: 34.69 kB / 433.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3851, allocations: 0 / 433.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of Templates: time 0.01136/0.3964, allocations: 5.613 MB / 438.7 MB, free: 22.09 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.053844535024837]