Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007818/0.0007818, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004416/0.004416, allocations: 160.7 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8405/0.8405, allocations: 177.1 MB / 205 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.828e-05/1.948e-05, allocations: 6.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002378/0.002398, allocations: 2.287 MB / 328.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.003407, allocations: 0.8063 MB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.003517, allocations: 4 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002509/0.003768, allocations: 55.56 kB / 329 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.00392, allocations: 59.5 kB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.004239, allocations: 179.4 kB / 329.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.004525, allocations: 391.5 kB / 329.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.004672, allocations: 72.33 kB / 329.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.004924, allocations: 231.5 kB / 329.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.005081, allocations: 147.6 kB / 330 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.00512, allocations: 36 kB / 330.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.203e-05/0.005152, allocations: 40 kB / 330.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.807e-05/0.005231, allocations: 99.64 kB / 330.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.745e-05/0.005308, allocations: 103.7 kB / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002844/0.005592, allocations: 358.9 kB / 330.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.005594, allocations: 0 / 330.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.005595, allocations: 0 / 330.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.0056, allocations: 0 / 330.6 MB, free: 10.58 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007805/0.00638, allocations: 0.5627 MB / 331.2 MB, free: 9.992 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.006416, allocations: 8.031 kB / 331.2 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.723e-05/0.006473, allocations: 40.73 kB / 331.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.006732, allocations: 217.8 kB / 331.5 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001811/0.006913, allocations: 351.8 kB / 331.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.006955, allocations: 28.38 kB / 331.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008094/0.007764, allocations: 0.5786 MB / 332.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.007778, allocations: 192 / 332.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.007804, allocations: 16.12 kB / 332.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.00781, allocations: 4 kB / 332.4 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000762/0.008572, allocations: 0.5152 MB / 332.9 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008451/0.009417, allocations: 0.837 MB / 333.8 MB, free: 7.234 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008208/0.01024, allocations: 466.5 kB / 334.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003461/0.01058, allocations: 249.8 kB / 334.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.01061, allocations: 4 kB / 334.5 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.01064, allocations: 50.42 kB / 334.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.442e-06/0.01064, allocations: 0 / 334.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01794/0.02858, allocations: 5.755 MB / 340.3 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.02866, allocations: 149 kB / 340.4 MB, free: 496 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.02882, allocations: 204.1 kB / 340.6 MB, free: 280 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.02888, allocations: 41.7 kB / 340.7 MB, free: 232 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.738e-05/0.02894, allocations: 145.8 kB / 340.8 MB, free: 84 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.02908, allocations: 194.5 kB / 341 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.02925, allocations: 94.3 kB / 341.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.907e-05/0.02934, allocations: 338.6 kB / 341.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008722/0.03021, allocations: 0.6064 MB / 342 MB, free: 14.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009114/0.03112, allocations: 0.6898 MB / 342.7 MB, free: 14.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.03273, allocations: 1.126 MB / 343.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.03274, allocations: 0 / 343.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001875/0.03461, allocations: 1.298 MB / 345.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.03463, allocations: 4 kB / 345.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.03464, allocations: 4 kB / 345.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.03466, allocations: 4 kB / 345.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.03524, allocations: 179.7 kB / 345.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.03525, allocations: 7.938 kB / 345.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.03563, allocations: 95.86 kB / 345.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.03567, allocations: 27.98 kB / 345.5 MB, free: 11.35 MB / 314.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.0002063/0.03588, allocations: 162.1 kB / 345.6 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.03607, allocations: 169.2 kB / 345.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.03616, allocations: 63.31 kB / 345.9 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.03617, allocations: 8 kB / 345.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.03617, allocations: 4 kB / 345.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.03618, allocations: 3.984 kB / 345.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.03878, allocations: 1.91 MB / 347.8 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.03879, allocations: 12 kB / 347.8 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.03914, allocations: 179.7 kB / 348 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.03915, allocations: 12.47 kB / 348 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.03918, allocations: 27.98 kB / 348 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.03919, allocations: 19.94 kB / 348 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.03919, allocations: 19.88 kB / 348 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.04093, allocations: 1.554 MB / 349.6 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.04105, allocations: 91.62 kB / 349.7 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/0.04109, allocations: 28 kB / 349.7 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.04137, allocations: 79.97 kB / 349.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.0415, allocations: 99.58 kB / 349.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.04153, allocations: 36 kB / 349.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.04161, allocations: 141.2 kB / 350.1 MB, free: 6.418 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04161, allocations: 0 / 350.1 MB, free: 6.418 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003612/0.04197, allocations: 124 kB / 350.2 MB, free: 6.297 MB / 314.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.0001125/0.04208, allocations: 139.2 kB / 350.3 MB, free: 6.152 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.04355, allocations: 0.9948 MB / 351.3 MB, free: 5.156 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.04355, allocations: 4 kB / 351.3 MB, free: 5.152 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.0441, allocations: 342.2 kB / 351.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.04467, allocations: 136.4 kB / 351.8 MB, free: 4.688 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.04601, allocations: 1.152 MB / 352.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.04622, allocations: 207.3 kB / 353.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.04644, allocations: 44.48 kB / 353.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.04644, allocations: 0 / 353.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of Templates: time 0.005874/0.05232, allocations: 7.213 MB / 360.4 MB, free: 11.89 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 4.449031409807503]