Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.0008805/0.0008805, 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.0008369/0.0008369, allocations: 149.4 kB / 24.9 MB, free: 9.152 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.9119/0.9119, allocations: 173.4 MB / 201.5 MB, free: 9.219 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 268.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.707e-05, allocations: 2.312 kB / 268.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002262/0.002279, allocations: 2.147 MB / 270.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009219/0.003201, allocations: 0.6585 MB / 271.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.501e-05/0.003296, allocations: 4 kB / 271.2 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.003516, allocations: 43.64 kB / 271.3 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.003634, allocations: 51.62 kB / 271.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.003903, allocations: 131.7 kB / 271.5 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.004187, allocations: 347.1 kB / 271.8 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.004296, allocations: 46.53 kB / 271.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.004499, allocations: 203.5 kB / 272.1 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.004643, allocations: 131.6 kB / 272.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.004683, allocations: 36 kB / 272.2 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.936e-05/0.004712, allocations: 28 kB / 272.2 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.116e-05/0.004783, allocations: 91.77 kB / 272.3 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.381e-05/0.004847, allocations: 87.72 kB / 272.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.005062, allocations: 223.3 kB / 272.6 MB, free: 2.012 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.005064, allocations: 0 / 272.6 MB, free: 2.012 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.005064, allocations: 0 / 272.6 MB, free: 2.012 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.966e-06/0.005067, allocations: 0 / 272.6 MB, free: 2.012 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0005672/0.005635, allocations: 483.8 kB / 273.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.783e-05/0.005662, allocations: 8.031 kB / 273.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.926e-05/0.005722, allocations: 52.91 kB / 273.2 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.005909, allocations: 172.8 kB / 273.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.006078, allocations: 339.7 kB / 273.7 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/0.006117, allocations: 24.38 kB / 273.7 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.006411, allocations: 262.5 kB / 273.9 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.006423, allocations: 0 / 273.9 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.006441, allocations: 7.984 kB / 274 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.006448, allocations: 8 kB / 274 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002332/0.006681, allocations: 156.2 kB / 274.1 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007928/0.007474, allocations: 0.6279 MB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.007742, allocations: 196 kB / 274.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.934e-05/0.007821, allocations: 52.84 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.007846, allocations: 4 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.007873, allocations: 38.5 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.294e-06/0.007875, allocations: 7.984 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.006751/0.01463, allocations: 3.331 MB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.01466, allocations: 59.91 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.01477, allocations: 182.5 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.0148, allocations: 37.7 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.145e-05/0.01486, allocations: 144.9 kB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.508e-05/0.01496, allocations: 178.4 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.01508, allocations: 98.25 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.184e-05/0.01516, allocations: 346.7 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.01533, allocations: 132.1 kB / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.01552, allocations: 191.3 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.01585, allocations: 331.6 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.01585, allocations: 0 / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005116/0.01636, allocations: 393.2 kB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.01638, allocations: 8.125 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.01638, allocations: 0 / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.0164, allocations: 4 kB / 280.4 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.01683, allocations: 159.8 kB / 280.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.01683, allocations: 4 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.01707, allocations: 67.91 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.01709, allocations: 12 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001236/0.01722, allocations: 152.4 kB / 280.8 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.01728, allocations: 35.97 kB / 280.8 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.694e-05/0.01733, allocations: 47.31 kB / 280.9 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.01733, allocations: 4 kB / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.01734, allocations: 0 / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.01734, allocations: 3.984 kB / 280.9 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.01862, allocations: 1.034 MB / 281.9 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.01862, allocations: 8 kB / 281.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.01897, allocations: 124.6 kB / 282.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.01898, allocations: 16 kB / 282.1 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.01901, allocations: 20 kB / 282.1 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/0.01903, allocations: 23.86 kB / 282.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/0.01904, allocations: 11.94 kB / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007088/0.01974, allocations: 0.6813 MB / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.01985, allocations: 43.8 kB / 282.9 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.792e-05/0.01989, allocations: 27.98 kB / 282.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.02019, allocations: 55.94 kB / 282.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.02031, allocations: 75.66 kB / 283 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.02034, allocations: 23.98 kB / 283 MB, free: 7.004 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.405e-05/0.0204, allocations: 49.86 kB / 283.1 MB, free: 6.953 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0204, allocations: 0 / 283.1 MB, free: 6.953 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004119/0.02081, allocations: 96 kB / 283.2 MB, free: 6.859 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001277/0.02094, allocations: 112.2 kB / 283.3 MB, free: 6.742 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005159/0.02145, allocations: 348.2 kB / 283.6 MB, free: 6.398 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.02146, allocations: 4 kB / 283.6 MB, free: 6.395 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.02167, allocations: 150.4 kB / 283.8 MB, free: 6.246 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.02216, allocations: 83.05 kB / 283.9 MB, free: 6.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.0235, allocations: 0.8659 MB / 284.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.977e-05/0.02359, allocations: 101.7 kB / 284.8 MB, free: 5.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002878/0.02388, allocations: 70.89 kB / 284.9 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.02416, allocations: 107.4 kB / 285 MB, free: 4.871 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02416, allocations: 0 / 285 MB, free: 4.871 MB / 266.7 MB Notification: Performance of Templates: time 0.1042/0.1283, allocations: 6.555 MB / 291.6 MB, free: 30.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.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.7354022478684783]