Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9874/0.9874, allocations: 177 MB / 205.2 MB, free: 5.059 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.908e-05, allocations: 2.312 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00323/0.003259, allocations: 2.382 MB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.004986, allocations: 0.8723 MB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.005164, allocations: 7.938 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003014/0.005465, allocations: 55.55 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.00568, allocations: 71.42 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.006179, allocations: 203.4 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000387/0.006566, allocations: 399.5 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.006728, allocations: 78.34 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003757/0.007104, allocations: 243.5 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.00729, allocations: 143.6 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.007338, allocations: 36 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.381e-05/0.007372, allocations: 32 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.531e-05/0.007467, allocations: 115.6 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.818e-05/0.007546, allocations: 111.7 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.007826, allocations: 286.9 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.00783, allocations: 0 / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.007831, allocations: 3.938 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.007837, allocations: 0 / 278.4 MB, free: 12.07 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.000717/0.008554, allocations: 0.5699 MB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.008589, allocations: 15.98 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.999e-05/0.008659, allocations: 60.89 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.008915, allocations: 221.1 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.009102, allocations: 343.9 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.455e-05/0.009147, allocations: 32.38 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004774/0.009624, allocations: 415.7 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.00964, allocations: 12.08 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.009663, allocations: 20.11 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.00967, allocations: 8 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.009923, allocations: 178.6 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007449/0.01067, allocations: 0.6313 MB / 280.8 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.01113, allocations: 330.6 kB / 281.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.01124, allocations: 103.5 kB / 281.3 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.713e-05/0.01128, allocations: 15.98 kB / 281.3 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.0113, allocations: 46.5 kB / 281.3 MB, free: 8.855 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.185e-06/0.01131, allocations: 0 / 281.3 MB, free: 8.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005537/0.01684, allocations: 2.24 MB / 283.6 MB, free: 6.605 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.01692, allocations: 153.4 kB / 283.7 MB, free: 6.426 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.01707, allocations: 232.9 kB / 283.9 MB, free: 6.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.74e-05/0.01713, allocations: 37.64 kB / 284 MB, free: 6.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.364e-05/0.01718, allocations: 137.7 kB / 284.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.0173, allocations: 198.3 kB / 284.3 MB, free: 5.809 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.01746, allocations: 106.2 kB / 284.4 MB, free: 5.699 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.604e-05/0.01754, allocations: 334.8 kB / 284.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.01778, allocations: 204.1 kB / 284.9 MB, free: 5.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.01804, allocations: 294.7 kB / 285.2 MB, free: 4.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.0185, allocations: 499 kB / 285.7 MB, free: 4.332 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.01851, allocations: 3.938 kB / 285.7 MB, free: 4.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000612/0.01912, allocations: 0.5324 MB / 286.2 MB, free: 3.789 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.01914, allocations: 8 kB / 286.3 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.01915, allocations: 0 / 286.3 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.01917, allocations: 8 kB / 286.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005202/0.01969, allocations: 164 kB / 286.4 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.0197, allocations: 11.98 kB / 286.4 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.02001, allocations: 63.92 kB / 286.5 MB, free: 3.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.02004, allocations: 19.98 kB / 286.5 MB, free: 3.52 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.0001932/0.02024, allocations: 152.4 kB / 286.7 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.02041, allocations: 117.6 kB / 286.8 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.834e-05/0.02049, allocations: 63.62 kB / 286.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.0205, allocations: 15.92 kB / 286.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.0205, allocations: 7.984 kB / 286.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.02051, allocations: 4 kB / 286.9 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.02207, allocations: 1.204 MB / 288.1 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.02208, allocations: 8 kB / 288.1 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.02242, allocations: 171.8 kB / 288.3 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.02243, allocations: 15.98 kB / 288.3 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.02246, allocations: 28 kB / 288.3 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.221e-05/0.02247, allocations: 23.92 kB / 288.3 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.02248, allocations: 15.94 kB / 288.3 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006833/0.02316, allocations: 0.8395 MB / 289.2 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.02331, allocations: 71.66 kB / 289.2 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.02335, allocations: 27.98 kB / 289.3 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.0236, allocations: 63.94 kB / 289.3 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.02371, allocations: 91.64 kB / 289.4 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.02374, allocations: 24 kB / 289.4 MB, free: 268 kB / 266.7 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.0238, allocations: 74.78 kB / 289.5 MB, free: 188 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0238, allocations: 4.031 kB / 289.5 MB, free: 184 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003704/0.02417, allocations: 120 kB / 289.6 MB, free: 64 kB / 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.1266/0.1508, allocations: 114.5 kB / 289.8 MB, free: 24.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008339/0.1516, allocations: 463.4 kB / 290.2 MB, free: 24.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.799e-05/0.1516, allocations: 4.812 kB / 290.2 MB, free: 24.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.1518, allocations: 159.1 kB / 290.4 MB, free: 24.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006438/0.1525, allocations: 146.6 kB / 290.5 MB, free: 24.94 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.154, allocations: 1.044 MB / 291.6 MB, free: 24.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.1542, allocations: 135.8 kB / 291.7 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003069/0.1545, allocations: 75.88 kB / 291.8 MB, free: 24.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002942/0.1548, allocations: 119 kB / 291.9 MB, free: 24.15 MB / 266.7 MB Notification: Performance of SimCode: time 1.313e-06/0.1548, allocations: 0 / 291.9 MB, free: 24.15 MB / 266.7 MB Notification: Performance of Templates: time 0.01196/0.1667, allocations: 9.618 MB / 301.5 MB, free: 21.36 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.9878644719719887]