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.001348/0.001348, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001078/0.001078, allocations: 166.5 kB / 24.99 MB, free: 8.289 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.993/0.993, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.804e-06/1.804e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.187e-05/3.367e-05, allocations: 2.312 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003058/0.003092, allocations: 2.361 MB / 275.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.004359, allocations: 0.8259 MB / 276.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.0045, allocations: 7.938 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000277/0.004777, allocations: 55.55 kB / 276.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.004959, allocations: 55.56 kB / 276.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.005352, allocations: 187.4 kB / 276.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.005678, allocations: 387.5 kB / 276.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.005844, allocations: 68.34 kB / 277 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/0.00616, allocations: 235.5 kB / 277.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.006335, allocations: 143.6 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.234e-05/0.006377, allocations: 36 kB / 277.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.438e-05/0.006412, allocations: 36 kB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.006515, allocations: 107.6 kB / 277.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.465e-05/0.0066, allocations: 103.7 kB / 277.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002825/0.006882, allocations: 251.2 kB / 277.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.006885, allocations: 0 / 277.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006885, allocations: 0 / 277.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.006892, allocations: 4 kB / 277.9 MB, free: 13.02 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0008266/0.007719, allocations: 0.6442 MB / 278.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.007756, allocations: 12.03 kB / 278.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.007862, allocations: 76.7 kB / 278.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.008117, allocations: 209.3 kB / 278.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.00831, allocations: 347.9 kB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.206e-05/0.008352, allocations: 28.38 kB / 279.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006373/0.00899, allocations: 466.6 kB / 279.6 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.009004, allocations: 192 / 279.6 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.009033, allocations: 20.12 kB / 279.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.009046, allocations: 8 kB / 279.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.009433, allocations: 247 kB / 279.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.01048, allocations: 0.9368 MB / 280.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006575/0.01114, allocations: 347.4 kB / 281.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.01133, allocations: 146.8 kB / 281.3 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.254e-05/0.01137, allocations: 12.41 kB / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.01141, allocations: 53.25 kB / 281.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.814e-06/0.01141, allocations: 0 / 281.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.007158/0.01857, allocations: 2.624 MB / 284 MB, free: 6.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.277e-05/0.01866, allocations: 149 kB / 284.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.01882, allocations: 246.5 kB / 284.4 MB, free: 6.152 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.16e-05/0.01888, allocations: 41.7 kB / 284.4 MB, free: 6.105 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.744e-05/0.01896, allocations: 180.6 kB / 284.6 MB, free: 5.922 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.0191, allocations: 202.3 kB / 284.8 MB, free: 5.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.01927, allocations: 99.98 kB / 284.9 MB, free: 5.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.0194, allocations: 0.5117 MB / 285.4 MB, free: 5.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.01983, allocations: 317.2 kB / 285.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.02031, allocations: 432 kB / 286.1 MB, free: 4.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007853/0.02109, allocations: 0.6513 MB / 286.8 MB, free: 3.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.0211, allocations: 0 / 286.8 MB, free: 3.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001081/0.02218, allocations: 0.7785 MB / 287.6 MB, free: 2.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.02219, allocations: 4 kB / 287.6 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.0222, allocations: 7.938 kB / 287.6 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.02222, allocations: 4 kB / 287.6 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.02281, allocations: 164 kB / 287.7 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.02282, allocations: 7.938 kB / 287.8 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.0232, allocations: 75.84 kB / 287.8 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.02324, allocations: 20 kB / 287.8 MB, free: 2.57 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.0001921/0.02343, allocations: 188.4 kB / 288 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.02366, allocations: 161.7 kB / 288.2 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.382e-05/0.02375, allocations: 63.3 kB / 288.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.02376, allocations: 8 kB / 288.3 MB, free: 2.141 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.02376, allocations: 8 kB / 288.3 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.02378, allocations: 3.984 kB / 288.3 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.02578, allocations: 1.516 MB / 289.8 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.02579, allocations: 8 kB / 289.8 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003691/0.02616, allocations: 171.8 kB / 290 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.209e-05/0.02617, allocations: 16 kB / 290 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.02621, allocations: 20 kB / 290 MB, free: 192 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.02622, allocations: 23.92 kB / 290 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/0.02623, allocations: 15.94 kB / 290 MB, free: 152 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.02734, allocations: 1.217 MB / 291.2 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.02746, allocations: 95.62 kB / 291.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.02752, allocations: 24 kB / 291.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.02779, allocations: 63.94 kB / 291.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.02793, allocations: 87.58 kB / 291.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.244e-05/0.02796, allocations: 39.92 kB / 291.6 MB, free: 14.42 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.324e-05/0.02805, allocations: 173.2 kB / 291.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02805, allocations: 0 / 291.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003889/0.02843, allocations: 116 kB / 291.8 MB, free: 14.14 MB / 282.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.0001265/0.02856, allocations: 127.1 kB / 292 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008229/0.02938, allocations: 0.5861 MB / 292.5 MB, free: 13.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.02939, allocations: 4 kB / 292.5 MB, free: 13.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.02962, allocations: 170.5 kB / 292.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.03025, allocations: 142.3 kB / 292.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.03191, allocations: 1.139 MB / 294 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001081/0.03202, allocations: 130.8 kB / 294.1 MB, free: 11.6 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002761/0.03229, allocations: 87.17 kB / 294.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.03249, allocations: 36.5 kB / 294.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.03249, allocations: 0 / 294.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of Templates: time 0.01007/0.04256, allocations: 8.801 MB / 303 MB, free: 2.746 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] 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","",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.092597368173301]