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.002487/0.002487, allocations: 95.86 kB / 20.96 MB, free: 3.457 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.002808/0.002808, allocations: 145.1 kB / 24.26 MB, free: 164 kB / 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 1.472/1.472, allocations: 173.3 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.683e-06/1.683e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.262e-05/3.43e-05, allocations: 2.312 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004631/0.004665, allocations: 2.355 MB / 269.6 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.006609, allocations: 0.8104 MB / 270.4 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.006773, allocations: 11.94 kB / 270.5 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003077/0.007081, allocations: 51.56 kB / 270.5 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.00733, allocations: 79.3 kB / 270.6 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.00789, allocations: 199.5 kB / 270.8 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.008392, allocations: 403.4 kB / 271.2 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.008592, allocations: 71.84 kB / 271.2 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003568/0.008949, allocations: 239.4 kB / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002586/0.009208, allocations: 139.6 kB / 271.6 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.571e-05/0.009283, allocations: 36 kB / 271.7 MB, free: 2.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.412e-05/0.009347, allocations: 39.94 kB / 271.7 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.009498, allocations: 111.6 kB / 271.8 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.009646, allocations: 115.7 kB / 271.9 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000556/0.0102, allocations: 386.7 kB / 272.3 MB, free: 1.727 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.01021, allocations: 0 / 272.3 MB, free: 1.727 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01021, allocations: 0 / 272.3 MB, free: 1.727 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.01021, allocations: 8 kB / 272.3 MB, free: 1.719 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.001485/0.0117, allocations: 0.706 MB / 273 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.01175, allocations: 16.03 kB / 273 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.01191, allocations: 76.7 kB / 273.1 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.01237, allocations: 255.8 kB / 273.3 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000339/0.01271, allocations: 343.9 kB / 273.7 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-05/0.01278, allocations: 32.38 kB / 273.7 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.01407, allocations: 0.5508 MB / 274.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.01409, allocations: 8.141 kB / 274.3 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.01413, allocations: 16.12 kB / 274.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.01414, allocations: 8 kB / 274.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.01557, allocations: 459.5 kB / 274.7 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.01733, allocations: 1.011 MB / 275.8 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.01891, allocations: 472.5 kB / 276.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006884/0.0196, allocations: 238.7 kB / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-05/0.01965, allocations: 15.92 kB / 276.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.01969, allocations: 45.33 kB / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.993e-06/0.0197, allocations: 0 / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.0181/0.0378, allocations: 3.425 MB / 279.9 MB, free: 9.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.03794, allocations: 149 kB / 280.1 MB, free: 9.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/0.03831, allocations: 324.3 kB / 280.4 MB, free: 9.258 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.09e-05/0.03839, allocations: 37.7 kB / 280.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.03855, allocations: 208.4 kB / 280.6 MB, free: 9.004 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.0388, allocations: 202.3 kB / 280.8 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003234/0.03912, allocations: 119.9 kB / 281 MB, free: 8.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002935/0.03942, allocations: 0.5274 MB / 281.5 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.04111, allocations: 0.5674 MB / 282 MB, free: 7.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.04291, allocations: 0.6991 MB / 282.7 MB, free: 6.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003195/0.0461, allocations: 1.116 MB / 283.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.04611, allocations: 0 / 283.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003758/0.04986, allocations: 1.262 MB / 285.1 MB, free: 4.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.04988, allocations: 4 kB / 285.1 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.04989, allocations: 4 kB / 285.1 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.04992, allocations: 4 kB / 285.1 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.05122, allocations: 168 kB / 285.3 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.05124, allocations: 4 kB / 285.3 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000938/0.05217, allocations: 79.8 kB / 285.4 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.05226, allocations: 20 kB / 285.4 MB, free: 4.133 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.0003448/0.0526, allocations: 208.4 kB / 285.6 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004129/0.05301, allocations: 181.4 kB / 285.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002216/0.05324, allocations: 67.61 kB / 285.8 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.05324, allocations: 8 kB / 285.9 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.05325, allocations: 4 kB / 285.9 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.05326, allocations: 7.922 kB / 285.9 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005112/0.05837, allocations: 2.072 MB / 287.9 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.05839, allocations: 8 kB / 287.9 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007543/0.05914, allocations: 171.7 kB / 288.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.178e-05/0.05916, allocations: 20 kB / 288.1 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.862e-05/0.05922, allocations: 28.48 kB / 288.2 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.802e-05/0.05924, allocations: 15.94 kB / 288.2 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-05/0.05925, allocations: 19.94 kB / 288.2 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003551/0.0628, allocations: 1.673 MB / 289.9 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.06308, allocations: 103.6 kB / 290 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.512e-05/0.06316, allocations: 31.98 kB / 290 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005923/0.06376, allocations: 59.97 kB / 290.1 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/0.06399, allocations: 99.64 kB / 290.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.043e-05/0.06405, allocations: 35.94 kB / 290.2 MB, free: 14.9 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002265/0.06428, allocations: 213.1 kB / 290.4 MB, free: 14.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06428, allocations: 0 / 290.4 MB, free: 14.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006698/0.06495, allocations: 116 kB / 290.5 MB, free: 14.58 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.0001969/0.06514, allocations: 135 kB / 290.6 MB, free: 14.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.06813, allocations: 0.9687 MB / 291.6 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/0.06814, allocations: 4 kB / 291.6 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009503/0.06909, allocations: 302.7 kB / 291.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.07013, allocations: 176.1 kB / 292.1 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.07308, allocations: 1.296 MB / 293.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.07338, allocations: 228.6 kB / 293.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005083/0.07389, allocations: 91.2 kB / 293.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.07419, allocations: 40.5 kB / 293.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.0742, allocations: 0 / 293.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of Templates: time 0.01726/0.09145, allocations: 9.042 MB / 302.8 MB, free: 2.148 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.840344603057019]