Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.0009833/0.0009833, 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.001066/0.001066, allocations: 161.9 kB / 24.99 MB, free: 8.336 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.9859/0.9859, allocations: 177.1 MB / 205.3 MB, free: 5.617 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.AbsoluteClocks,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.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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.369e-05/1.536e-05, allocations: 2.312 kB / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003247/0.003262, allocations: 2.401 MB / 275.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.004486, allocations: 0.8414 MB / 276.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.004668, allocations: 15.88 kB / 276.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.004982, allocations: 51.58 kB / 276.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.005191, allocations: 71.42 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004596/0.005651, allocations: 199.3 kB / 276.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.005976, allocations: 411.4 kB / 277 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.006122, allocations: 63.86 kB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.006415, allocations: 235.5 kB / 277.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.00658, allocations: 147.6 kB / 277.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.006623, allocations: 36 kB / 277.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.33e-05/0.006656, allocations: 36 kB / 277.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.789e-05/0.006744, allocations: 115.6 kB / 277.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.268e-05/0.006827, allocations: 107.7 kB / 277.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.007093, allocations: 282.9 kB / 278 MB, free: 12.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.007096, allocations: 0 / 278 MB, free: 12.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.007096, allocations: 3.938 kB / 278 MB, free: 12.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.007101, allocations: 4 kB / 278 MB, free: 12.84 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.0008228/0.007924, allocations: 0.6868 MB / 278.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.007962, allocations: 16.03 kB / 278.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.341e-05/0.008055, allocations: 72.7 kB / 278.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.008355, allocations: 259.9 kB / 279 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.008539, allocations: 339.9 kB / 279.4 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.008585, allocations: 32.31 kB / 279.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005904/0.009176, allocations: 475.3 kB / 279.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.00919, allocations: 4.188 kB / 279.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.496e-05/0.009215, allocations: 12.12 kB / 279.9 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.009225, allocations: 8 kB / 279.9 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003714/0.009596, allocations: 243.7 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008956/0.01049, allocations: 0.9525 MB / 281.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005636/0.01106, allocations: 344.6 kB / 281.4 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.01123, allocations: 142.8 kB / 281.6 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.01126, allocations: 11.94 kB / 281.6 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.01129, allocations: 49.27 kB / 281.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.01129, allocations: 0 / 281.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.007168/0.01846, allocations: 2.681 MB / 284.3 MB, free: 6.242 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.872e-05/0.01856, allocations: 152.9 kB / 284.5 MB, free: 6.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.01883, allocations: 292.3 kB / 284.7 MB, free: 5.762 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.23e-05/0.0189, allocations: 37.7 kB / 284.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.01901, allocations: 200.4 kB / 285 MB, free: 5.516 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.01919, allocations: 190.3 kB / 285.2 MB, free: 5.328 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002539/0.01945, allocations: 103.9 kB / 285.3 MB, free: 5.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.01959, allocations: 0.5196 MB / 285.8 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006225/0.02022, allocations: 317.2 kB / 286.1 MB, free: 4.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006805/0.0209, allocations: 440 kB / 286.5 MB, free: 3.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.02209, allocations: 0.6396 MB / 287.2 MB, free: 3.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.0221, allocations: 0 / 287.2 MB, free: 3.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001675/0.02377, allocations: 0.7901 MB / 287.9 MB, free: 2.438 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.073e-05/0.02382, allocations: 10.66 kB / 288 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.02384, allocations: 0 / 288 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.02385, allocations: 4 kB / 288 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006777/0.02453, allocations: 163.7 kB / 288.1 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.02454, allocations: 4 kB / 288.1 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003956/0.02494, allocations: 76.14 kB / 288.2 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/0.025, allocations: 23.98 kB / 288.2 MB, free: 2.164 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.0001887/0.02518, allocations: 192.4 kB / 288.4 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002405/0.02543, allocations: 157.4 kB / 288.6 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.943e-05/0.02551, allocations: 67.61 kB / 288.6 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.02552, allocations: 8 kB / 288.6 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.02553, allocations: 0 / 288.6 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.02553, allocations: 7.984 kB / 288.6 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.02742, allocations: 1.531 MB / 290.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.02743, allocations: 15.94 kB / 290.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.02778, allocations: 168.5 kB / 290.4 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.02779, allocations: 12 kB / 290.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.02782, allocations: 32 kB / 290.4 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.039e-05/0.02783, allocations: 19.94 kB / 290.4 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.02784, allocations: 15.92 kB / 290.4 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.02888, allocations: 1.24 MB / 291.7 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.02902, allocations: 95.69 kB / 291.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.999e-05/0.02907, allocations: 27.98 kB / 291.8 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.02934, allocations: 63.94 kB / 291.9 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.02947, allocations: 83.64 kB / 291.9 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.0295, allocations: 35.94 kB / 292 MB, free: 13.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001057/0.0296, allocations: 201.1 kB / 292.2 MB, free: 13.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0296, allocations: 0 / 292.2 MB, free: 13.78 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003875/0.02999, allocations: 120 kB / 292.3 MB, free: 13.66 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.0001183/0.03011, allocations: 139 kB / 292.4 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007848/0.03089, allocations: 0.5741 MB / 293 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.0309, allocations: 4 kB / 293 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.03111, allocations: 166.9 kB / 293.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006024/0.03171, allocations: 160.2 kB / 293.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.03317, allocations: 1.19 MB / 294.5 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.778e-05/0.03327, allocations: 138.7 kB / 294.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002827/0.03355, allocations: 87.22 kB / 294.7 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.03375, allocations: 40.5 kB / 294.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.03375, allocations: 0 / 294.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of Templates: time 0.0095/0.04325, allocations: 9.053 MB / 303.8 MB, free: 1.945 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.202496502082795]