Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001065/0.001065, allocations: 85.05 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.0009554/0.0009554, allocations: 145.7 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.8789/0.8789, allocations: 173.4 MB / 201.5 MB, free: 8.277 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.AbsoluteClocks,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.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.272e-05, allocations: 5.906 kB / 268.5 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002775/0.002797, allocations: 2.422 MB / 270.9 MB, free: 7.355 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.004016, allocations: 0.833 MB / 271.8 MB, free: 6.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.004169, allocations: 7.938 kB / 271.8 MB, free: 6.512 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.004418, allocations: 52.09 kB / 271.8 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.004618, allocations: 80.05 kB / 271.9 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.005062, allocations: 197.7 kB / 272.1 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003172/0.00538, allocations: 403.5 kB / 272.5 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.005512, allocations: 71.19 kB / 272.5 MB, free: 5.727 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.005778, allocations: 231.5 kB / 272.8 MB, free: 5.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.005954, allocations: 148.5 kB / 272.9 MB, free: 5.355 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.256e-05/0.005996, allocations: 36 kB / 273 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.625e-05/0.006032, allocations: 36.5 kB / 273 MB, free: 5.285 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.006117, allocations: 115.6 kB / 273.1 MB, free: 5.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.613e-05/0.006193, allocations: 108.2 kB / 273.2 MB, free: 5.066 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.006458, allocations: 286.9 kB / 273.5 MB, free: 4.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.00646, allocations: 0 / 273.5 MB, free: 4.785 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.006461, allocations: 0 / 273.5 MB, free: 4.785 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.006466, allocations: 0 / 273.5 MB, free: 4.785 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0006789/0.007144, allocations: 0.5738 MB / 274.1 MB, free: 4.188 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.007175, allocations: 8.031 kB / 274.1 MB, free: 4.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.921e-05/0.007244, allocations: 64.89 kB / 274.1 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.007518, allocations: 221.1 kB / 274.3 MB, free: 3.875 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.007752, allocations: 343.9 kB / 274.7 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.007798, allocations: 36.33 kB / 274.7 MB, free: 3.438 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005068/0.008305, allocations: 421.7 kB / 275.1 MB, free: 3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.00832, allocations: 192 / 275.1 MB, free: 3 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.008343, allocations: 24.11 kB / 275.2 MB, free: 2.977 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.008351, allocations: 8 kB / 275.2 MB, free: 2.969 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.00863, allocations: 175.1 kB / 275.3 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009634/0.009594, allocations: 0.647 MB / 276 MB, free: 2.113 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004934/0.01009, allocations: 322.7 kB / 276.3 MB, free: 1.758 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.01022, allocations: 107.5 kB / 276.4 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.01026, allocations: 8 kB / 276.4 MB, free: 1.633 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.01029, allocations: 42.56 kB / 276.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.01029, allocations: 0 / 276.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005843/0.01613, allocations: 2.247 MB / 278.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.0162, allocations: 145 kB / 278.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.01634, allocations: 228.9 kB / 279.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/0.0164, allocations: 37.7 kB / 279.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.01646, allocations: 141.7 kB / 279.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.01659, allocations: 202.3 kB / 279.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.01675, allocations: 94.27 kB / 279.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.01685, allocations: 346.7 kB / 279.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002484/0.0171, allocations: 204.1 kB / 280.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.01737, allocations: 290.6 kB / 280.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007162/0.01809, allocations: 0.4912 MB / 280.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.01809, allocations: 3.938 kB / 280.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006369/0.01873, allocations: 0.5324 MB / 281.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.01875, allocations: 8 kB / 281.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.01875, allocations: 0 / 281.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.01877, allocations: 4 kB / 281.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/0.01937, allocations: 179.9 kB / 281.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.01937, allocations: 4 kB / 281.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.0197, allocations: 79.8 kB / 281.6 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.994e-05/0.01974, allocations: 12 kB / 281.7 MB, free: 12.23 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.0001654/0.0199, allocations: 144.5 kB / 281.8 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.02008, allocations: 129.9 kB / 281.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.734e-05/0.02015, allocations: 63.61 kB / 282 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.02016, allocations: 11.98 kB / 282 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.02017, allocations: 8 kB / 282 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.02017, allocations: 3.984 kB / 282 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.02174, allocations: 1.2 MB / 283.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.02175, allocations: 12 kB / 283.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/0.02212, allocations: 183.8 kB / 283.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.02213, allocations: 16 kB / 283.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.02216, allocations: 20 kB / 283.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/0.02217, allocations: 19.94 kB / 283.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.02218, allocations: 15.94 kB / 283.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006876/0.02287, allocations: 0.8549 MB / 284.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.02299, allocations: 79.61 kB / 284.4 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.02303, allocations: 24 kB / 284.4 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.02327, allocations: 55.94 kB / 284.5 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.0234, allocations: 91.64 kB / 284.6 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.02342, allocations: 24 kB / 284.6 MB, free: 8.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.281e-05/0.02349, allocations: 82.8 kB / 284.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02349, allocations: 0 / 284.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003543/0.02384, allocations: 119.9 kB / 284.8 MB, free: 8.762 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 0.0001257/0.02397, allocations: 120.1 kB / 284.9 MB, free: 8.637 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.02452, allocations: 469.5 kB / 285.4 MB, free: 8.176 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.02453, allocations: 4 kB / 285.4 MB, free: 8.172 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.0247, allocations: 155.7 kB / 285.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.02524, allocations: 147.9 kB / 285.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.02657, allocations: 1.048 MB / 286.7 MB, free: 6.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.938e-05/0.02667, allocations: 134.8 kB / 286.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002767/0.02695, allocations: 79.23 kB / 286.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.02726, allocations: 123.3 kB / 287 MB, free: 6.309 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02726, allocations: 0 / 287 MB, free: 6.309 MB / 266.7 MB Notification: Performance of Templates: time 0.01149/0.03875, allocations: 9.661 MB / 296.7 MB, free: 12.73 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.568040037062019]