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.0007505/0.0007505, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001089/0.001839, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.000619/0.000619, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008508/0.00147, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8239/0.8239, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1322/0.9562, allocations: 52.48 MB / 238.5 MB, free: 7.637 MB / 234.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.222e-06/1.222e-06, allocations: 0 / 239.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.937e-06/1.016e-05, allocations: 2.312 kB / 239.7 MB, free: 6.387 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002258/0.002268, allocations: 2.426 MB / 242.2 MB, free: 3.965 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008845/0.003153, allocations: 0.8349 MB / 243 MB, free: 3.125 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.003266, allocations: 16.69 kB / 243 MB, free: 3.109 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.003429, allocations: 47.58 kB / 243 MB, free: 3.062 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.00357, allocations: 72.52 kB / 243.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000324/0.003894, allocations: 206.5 kB / 243.3 MB, free: 2.793 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.004173, allocations: 391.5 kB / 243.7 MB, free: 2.41 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.00429, allocations: 74.48 kB / 243.8 MB, free: 2.336 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.004513, allocations: 251.4 kB / 244 MB, free: 2.09 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.004783, allocations: 144.8 kB / 244.2 MB, free: 1.949 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.004828, allocations: 36 kB / 244.2 MB, free: 1.914 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.616e-05/0.004865, allocations: 39.94 kB / 244.2 MB, free: 1.875 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.655e-05/0.004941, allocations: 83.78 kB / 244.3 MB, free: 1.793 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.704e-05/0.005008, allocations: 88.81 kB / 244.4 MB, free: 1.707 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.005228, allocations: 251 kB / 244.7 MB, free: 1.461 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.005236, allocations: 0 / 244.7 MB, free: 1.461 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.005236, allocations: 3 kB / 244.7 MB, free: 1.461 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.005246, allocations: 0 / 244.7 MB, free: 1.461 MB / 234.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.000689/0.005935, allocations: 0.6337 MB / 245.3 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.597e-05/0.005961, allocations: 12.03 kB / 245.3 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.00603, allocations: 61.8 kB / 245.4 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.006251, allocations: 218.9 kB / 245.6 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.006407, allocations: 347.9 kB / 245.9 MB, free: 88 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.006449, allocations: 36.98 kB / 245.9 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.006903, allocations: 430.9 kB / 246.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.006914, allocations: 192 / 246.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.006937, allocations: 16.12 kB / 246.4 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.006944, allocations: 4 kB / 246.4 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.00719, allocations: 182.6 kB / 246.6 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006496/0.00784, allocations: 0.6441 MB / 247.2 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004195/0.008259, allocations: 328.4 kB / 247.5 MB, free: 14.38 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.008372, allocations: 107.5 kB / 247.6 MB, free: 14.26 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.008407, allocations: 11.98 kB / 247.6 MB, free: 14.25 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.008429, allocations: 43.66 kB / 247.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.403e-06/0.00843, allocations: 0 / 247.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005835/0.01426, allocations: 2.262 MB / 250 MB, free: 11.93 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.01433, allocations: 145.4 kB / 250.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.01448, allocations: 232.9 kB / 250.3 MB, free: 11.52 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.01453, allocations: 33.7 kB / 250.4 MB, free: 11.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.098e-05/0.01458, allocations: 141.7 kB / 250.5 MB, free: 11.34 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.0147, allocations: 202.2 kB / 250.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.01485, allocations: 94.25 kB / 250.8 MB, free: 11.05 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.062e-05/0.01493, allocations: 346.7 kB / 251.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.01517, allocations: 208.1 kB / 251.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.01544, allocations: 286.7 kB / 251.6 MB, free: 10.18 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.01593, allocations: 498.5 kB / 252.1 MB, free: 9.668 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.01593, allocations: 3.938 kB / 252.1 MB, free: 9.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006128/0.01654, allocations: 0.5363 MB / 252.6 MB, free: 9.121 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.01656, allocations: 4 kB / 252.6 MB, free: 9.117 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.01656, allocations: 4.219 kB / 252.6 MB, free: 9.113 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.01658, allocations: 8 kB / 252.6 MB, free: 9.105 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006211/0.0172, allocations: 179.7 kB / 252.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.01721, allocations: 8 kB / 252.8 MB, free: 8.922 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.01752, allocations: 71.84 kB / 252.9 MB, free: 8.852 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.01756, allocations: 20 kB / 252.9 MB, free: 8.832 MB / 250.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.0001583/0.01772, allocations: 152.4 kB / 253.1 MB, free: 8.672 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.01792, allocations: 125.6 kB / 253.2 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.704e-05/0.01799, allocations: 67.61 kB / 253.3 MB, free: 8.473 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.018, allocations: 8 kB / 253.3 MB, free: 8.465 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.018, allocations: 0 / 253.3 MB, free: 8.465 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.01801, allocations: 3.984 kB / 253.3 MB, free: 8.461 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.0195, allocations: 1.2 MB / 254.5 MB, free: 7.109 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.01951, allocations: 8 kB / 254.5 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/0.01988, allocations: 191.7 kB / 254.7 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.01999, allocations: 75.59 kB / 254.7 MB, free: 6.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.427e-06/0.02, allocations: 16 kB / 254.8 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.02003, allocations: 24 kB / 254.8 MB, free: 6.801 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.209e-05/0.02004, allocations: 23.94 kB / 254.8 MB, free: 6.777 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.02005, allocations: 15.94 kB / 254.8 MB, free: 6.762 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006792/0.02073, allocations: 0.8589 MB / 255.7 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.02077, allocations: 31.98 kB / 255.7 MB, free: 5.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.02102, allocations: 59.98 kB / 255.8 MB, free: 5.656 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.02114, allocations: 91.62 kB / 255.9 MB, free: 5.566 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.02117, allocations: 28 kB / 255.9 MB, free: 5.539 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.702e-05/0.02122, allocations: 74.78 kB / 256 MB, free: 5.461 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02122, allocations: 0 / 256 MB, free: 5.461 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003364/0.02156, allocations: 123.9 kB / 256.1 MB, free: 5.34 MB / 250.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.0001087/0.02167, allocations: 120.1 kB / 256.2 MB, free: 5.215 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005057/0.02217, allocations: 465.7 kB / 256.7 MB, free: 4.754 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.02219, allocations: 8 kB / 256.7 MB, free: 4.746 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.02241, allocations: 192.1 kB / 256.8 MB, free: 4.559 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.023, allocations: 489.7 kB / 257.3 MB, free: 4.02 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.02548, allocations: 1.176 MB / 258.5 MB, free: 2.676 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.994e-05/0.02557, allocations: 134.8 kB / 258.6 MB, free: 2.523 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002465/0.02581, allocations: 79.23 kB / 258.7 MB, free: 2.441 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003094/0.02612, allocations: 119.3 kB / 258.8 MB, free: 2.324 MB / 250.7 MB Notification: Performance of SimCode: time 5.72e-07/0.02612, allocations: 4 kB / 258.8 MB, free: 2.32 MB / 250.7 MB Notification: Performance of Templates: time 0.01011/0.03624, allocations: 9.678 MB / 268.5 MB, free: 8.719 MB / 266.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4379629800096154]