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.0008535/0.0008535, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0008559/0.0008559, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.8724/0.8724, allocations: 173.4 MB / 202.3 MB, free: 8.273 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.262e-06/1.262e-06, allocations: 0 / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.077e-06/1.034e-05, allocations: 2.312 kB / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002501/0.002511, allocations: 2.365 MB / 271.5 MB, free: 7.426 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.003553, allocations: 0.8152 MB / 272.4 MB, free: 6.609 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.003692, allocations: 11.88 kB / 272.4 MB, free: 6.598 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.003928, allocations: 59.45 kB / 272.4 MB, free: 6.539 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.004105, allocations: 67.48 kB / 272.5 MB, free: 6.473 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.004501, allocations: 209.2 kB / 272.7 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.004811, allocations: 400.2 kB / 273.1 MB, free: 5.879 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.004942, allocations: 67.8 kB / 273.2 MB, free: 5.812 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.005175, allocations: 237.1 kB / 273.4 MB, free: 5.582 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.005331, allocations: 147.5 kB / 273.5 MB, free: 5.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.005373, allocations: 35.98 kB / 273.6 MB, free: 5.402 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.208e-05/0.005405, allocations: 36 kB / 273.6 MB, free: 5.367 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.233e-05/0.005487, allocations: 116.4 kB / 273.7 MB, free: 5.254 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.599e-05/0.005563, allocations: 107.7 kB / 273.8 MB, free: 5.148 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.005806, allocations: 280.1 kB / 274.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.005808, allocations: 0 / 274.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.005808, allocations: 0 / 274.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.005812, allocations: 0.6562 kB / 274.1 MB, free: 4.875 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.000719/0.006531, allocations: 0.6971 MB / 274.8 MB, free: 4.145 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.793e-05/0.006559, allocations: 11.97 kB / 274.8 MB, free: 4.133 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.899e-05/0.006638, allocations: 76.7 kB / 274.9 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.006882, allocations: 251.9 kB / 275.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.00705, allocations: 343.9 kB / 275.5 MB, free: 3.383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.007093, allocations: 32.31 kB / 275.5 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.007552, allocations: 438.7 kB / 275.9 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.007566, allocations: 8.141 kB / 275.9 MB, free: 2.879 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.007588, allocations: 12.12 kB / 275.9 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.007594, allocations: 12 kB / 275.9 MB, free: 2.855 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.007869, allocations: 192.2 kB / 276.1 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007525/0.008622, allocations: 0.9138 MB / 277 MB, free: 1.703 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004466/0.009068, allocations: 316.7 kB / 277.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.009201, allocations: 130.8 kB / 277.5 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.009231, allocations: 8 kB / 277.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.009252, allocations: 49.33 kB / 277.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.009255, allocations: 3.984 kB / 277.5 MB, free: 1.129 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.006541/0.0158, allocations: 2.407 MB / 280 MB, free: 14.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.01586, allocations: 149 kB / 280.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.01601, allocations: 304.1 kB / 280.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.01606, allocations: 37.7 kB / 280.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.87e-05/0.01613, allocations: 192.5 kB / 280.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.01625, allocations: 194.3 kB / 280.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.01643, allocations: 107.9 kB / 280.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.01654, allocations: 0.5157 MB / 281.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.01682, allocations: 253.2 kB / 281.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.01715, allocations: 360.4 kB / 282 MB, free: 12.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005663/0.01772, allocations: 0.5497 MB / 282.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01772, allocations: 0 / 282.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007984/0.01852, allocations: 0.6651 MB / 283.2 MB, free: 11.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.01853, allocations: 8 kB / 283.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.01853, allocations: 0 / 283.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.346e-06/0.01854, allocations: 8 kB / 283.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.01912, allocations: 160 kB / 283.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.01913, allocations: 12.3 kB / 283.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.0195, allocations: 75.81 kB / 283.5 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.01954, allocations: 15.98 kB / 283.5 MB, free: 10.98 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.0001612/0.0197, allocations: 196.3 kB / 283.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.01989, allocations: 153.3 kB / 283.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.257e-05/0.01996, allocations: 67.61 kB / 283.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.01997, allocations: 8 kB / 283.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.01997, allocations: 0 / 283.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.01998, allocations: 11.98 kB / 283.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.02184, allocations: 1.46 MB / 285.4 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.02184, allocations: 13 kB / 285.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003429/0.02219, allocations: 171.7 kB / 285.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.0222, allocations: 16 kB / 285.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.02222, allocations: 24 kB / 285.6 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.709e-06/0.02223, allocations: 19.92 kB / 285.6 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.02224, allocations: 15.94 kB / 285.7 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007415/0.02298, allocations: 1.054 MB / 286.7 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.02311, allocations: 103.6 kB / 286.8 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.02315, allocations: 27.98 kB / 286.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.02342, allocations: 55.94 kB / 286.9 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.02352, allocations: 91.64 kB / 287 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.02355, allocations: 24 kB / 287 MB, free: 7.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.958e-05/0.02363, allocations: 193.1 kB / 287.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02363, allocations: 4.031 kB / 287.2 MB, free: 6.863 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000377/0.02401, allocations: 120 kB / 287.3 MB, free: 6.746 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 9.585e-05/0.0241, allocations: 146.9 kB / 287.5 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005666/0.02467, allocations: 0.4963 MB / 288 MB, free: 6.098 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.02467, allocations: 4.062 kB / 288 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.02485, allocations: 162 kB / 288.1 MB, free: 5.934 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.02539, allocations: 152.5 kB / 288.3 MB, free: 5.785 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.02661, allocations: 1.179 MB / 289.4 MB, free: 4.387 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.648e-05/0.02671, allocations: 142.6 kB / 289.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002577/0.02697, allocations: 75.23 kB / 289.7 MB, free: 4.156 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.02728, allocations: 142.2 kB / 289.8 MB, free: 4.016 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02729, allocations: 0 / 289.8 MB, free: 4.016 MB / 266.7 MB Notification: Performance of Templates: time 0.01027/0.03755, allocations: 9.922 MB / 299.7 MB, free: 10.18 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","",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.898012977093458]