Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001011/0.001011, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001223/0.001223, allocations: 147.4 kB / 24.89 MB, free: 8.742 MB / 18.57 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 0.9298/0.9298, allocations: 173.4 MB / 201.5 MB, free: 8.742 MB / 186.7 MB " [Timeout remaining time 179] 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.446e-05/1.579e-05, allocations: 14.19 kB / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002925/0.00294, allocations: 2.384 MB / 270.9 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.004145, allocations: 0.814 MB / 271.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.004268, allocations: 11.94 kB / 271.7 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.004503, allocations: 51.55 kB / 271.8 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.00466, allocations: 59.5 kB / 271.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.004996, allocations: 191.4 kB / 272 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.005277, allocations: 383.5 kB / 272.4 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.005415, allocations: 78.95 kB / 272.5 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.005628, allocations: 219.6 kB / 272.7 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.005783, allocations: 143.6 kB / 272.8 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.09e-05/0.005824, allocations: 39.94 kB / 272.8 MB, free: 1.625 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.337e-05/0.005857, allocations: 36 kB / 272.9 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.005934, allocations: 103.6 kB / 273 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.952e-05/0.006003, allocations: 107.7 kB / 273.1 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.006231, allocations: 251.1 kB / 273.3 MB, free: 1.137 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-06/0.006232, allocations: 4 kB / 273.3 MB, free: 1.133 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006233, allocations: 3.938 kB / 273.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.006238, allocations: 4 kB / 273.3 MB, free: 1.125 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0006056/0.006843, allocations: 0.5195 MB / 273.9 MB, free: 0.582 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.00687, allocations: 8.031 kB / 273.9 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.006971, allocations: 60.89 kB / 273.9 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.007179, allocations: 185.8 kB / 274.1 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.00735, allocations: 339.9 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.007388, allocations: 32.36 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.007815, allocations: 420.4 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.007828, allocations: 4.125 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.007847, allocations: 16.12 kB / 274.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.007853, allocations: 4 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002507/0.008104, allocations: 178.6 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006352/0.008739, allocations: 0.6431 MB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004046/0.009143, allocations: 333.7 kB / 276.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.009251, allocations: 107.5 kB / 276.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.009279, allocations: 8 kB / 276.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.009299, allocations: 42.5 kB / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.403e-06/0.0093, allocations: 0 / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005397/0.0147, allocations: 2.243 MB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.01476, allocations: 153.1 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.01485, allocations: 179.3 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.0149, allocations: 37.7 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.843e-05/0.01495, allocations: 145.7 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.01506, allocations: 198.3 kB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.01522, allocations: 94.25 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.194e-05/0.01529, allocations: 342.7 kB / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.01552, allocations: 212.1 kB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.01578, allocations: 286.7 kB / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004855/0.01627, allocations: 491 kB / 280.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.01627, allocations: 3.938 kB / 280.5 MB, free: 9.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005977/0.01687, allocations: 0.5363 MB / 281.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.01688, allocations: 8 kB / 281.1 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.01688, allocations: 0 / 281.1 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.0169, allocations: 4 kB / 281.1 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005546/0.01745, allocations: 171.7 kB / 281.3 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01746, allocations: 7.984 kB / 281.3 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.01777, allocations: 72.14 kB / 281.3 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.01781, allocations: 23.92 kB / 281.4 MB, free: 8.711 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.0001415/0.01795, allocations: 148.5 kB / 281.5 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.01811, allocations: 117.6 kB / 281.6 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.648e-05/0.01817, allocations: 67.23 kB / 281.7 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.01818, allocations: 8 kB / 281.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.01818, allocations: 3.938 kB / 281.7 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.01819, allocations: 3.984 kB / 281.7 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.01961, allocations: 1.188 MB / 282.9 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.01961, allocations: 8 kB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.01996, allocations: 176.5 kB / 283.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.01997, allocations: 16 kB / 283.1 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.02, allocations: 31.98 kB / 283.1 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.164e-05/0.02001, allocations: 19.94 kB / 283.1 MB, free: 6.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.02001, allocations: 11.94 kB / 283.1 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006172/0.02063, allocations: 0.8585 MB / 284 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.199e-05/0.02072, allocations: 55.72 kB / 284.1 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.02077, allocations: 24 kB / 284.1 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.021, allocations: 63.94 kB / 284.1 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.02112, allocations: 87.64 kB / 284.2 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.02114, allocations: 31.98 kB / 284.3 MB, free: 5.484 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.717e-05/0.02118, allocations: 46.72 kB / 284.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02118, allocations: 0 / 284.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003338/0.02152, allocations: 123.9 kB / 284.4 MB, free: 5.316 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 9.451e-05/0.02161, allocations: 116.2 kB / 284.5 MB, free: 5.195 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.02213, allocations: 453.2 kB / 285 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.02214, allocations: 4 kB / 285 MB, free: 4.738 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.02231, allocations: 167.9 kB / 285.2 MB, free: 4.574 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004739/0.02278, allocations: 134.1 kB / 285.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.02394, allocations: 1.009 MB / 286.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.388e-05/0.02403, allocations: 130.8 kB / 286.4 MB, free: 3.129 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002609/0.02429, allocations: 79.2 kB / 286.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003018/0.0246, allocations: 115.3 kB / 286.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0246, allocations: 0 / 286.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of Templates: time 0.09672/0.1213, allocations: 9.364 MB / 296 MB, free: 27.77 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.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.684273339342326]