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.001156/0.001156, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.001696/0.001696, allocations: 145.1 kB / 24.54 MB, free: 32 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.028/1.028, allocations: 173.4 MB / 201.2 MB, free: 9.336 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.854e-06/1.854e-06, allocations: 3.938 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.732e-05, allocations: 6.25 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003004/0.003031, allocations: 2.152 MB / 270.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.004122, allocations: 0.6431 MB / 270.8 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.004243, allocations: 7.938 kB / 270.8 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.004513, allocations: 43.64 kB / 270.8 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.004668, allocations: 63.55 kB / 270.9 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000555/0.005223, allocations: 123.8 kB / 271 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003632/0.005586, allocations: 343.1 kB / 271.3 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.005735, allocations: 56.48 kB / 271.4 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/0.005981, allocations: 191.6 kB / 271.6 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.006167, allocations: 127.7 kB / 271.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.21e-05/0.006219, allocations: 32 kB / 271.7 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.129e-05/0.00626, allocations: 32 kB / 271.8 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.618e-05/0.006347, allocations: 95.69 kB / 271.9 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.543e-05/0.006432, allocations: 87.78 kB / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.006704, allocations: 223.2 kB / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.006706, allocations: 0 / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.006707, allocations: 0 / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.006712, allocations: 0 / 272.2 MB, free: 2.238 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.0008411/0.007553, allocations: 0.5972 MB / 272.8 MB, free: 1.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.007591, allocations: 15.97 kB / 272.8 MB, free: 1.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.399e-05/0.007685, allocations: 52.8 kB / 272.8 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.007973, allocations: 191.8 kB / 273 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.008214, allocations: 335.8 kB / 273.3 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.696e-05/0.008271, allocations: 28.38 kB / 273.4 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005775/0.008849, allocations: 285.3 kB / 273.6 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.008868, allocations: 3.938 kB / 273.7 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.008901, allocations: 8 kB / 273.7 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.008915, allocations: 8 kB / 273.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005305/0.009445, allocations: 218.8 kB / 273.9 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.0109, allocations: 0.8862 MB / 274.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.01141, allocations: 182.1 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.01158, allocations: 75.64 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.01161, allocations: 8 kB / 275 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.01164, allocations: 37.39 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.053e-06/0.01164, allocations: 0 / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.00764/0.01928, allocations: 2.837 MB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.01932, allocations: 59.89 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.01949, allocations: 241.8 kB / 278.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.01953, allocations: 33.7 kB / 278.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.464e-05/0.01961, allocations: 203.6 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.01975, allocations: 186.3 kB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.01993, allocations: 96 kB / 278.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.02007, allocations: 0.5078 MB / 279.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003703/0.02044, allocations: 213.2 kB / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004375/0.02087, allocations: 293.3 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007232/0.0216, allocations: 408.3 kB / 280.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.0216, allocations: 0 / 280.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001094/0.02269, allocations: 0.552 MB / 280.7 MB, free: 9.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.02271, allocations: 4.125 kB / 280.7 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.02272, allocations: 4 kB / 280.7 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.02274, allocations: 4 kB / 280.7 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006899/0.02343, allocations: 151.8 kB / 280.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.02344, allocations: 7.938 kB / 280.8 MB, free: 9.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.02385, allocations: 75.84 kB / 280.9 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.0239, allocations: 16 kB / 280.9 MB, free: 9.102 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.0001651/0.02406, allocations: 184.5 kB / 281.1 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.02417, allocations: 47.81 kB / 281.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.02423, allocations: 47.3 kB / 281.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.02424, allocations: 8 kB / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.02425, allocations: 0 / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.02425, allocations: 0 / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.02619, allocations: 1.322 MB / 282.5 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.0262, allocations: 8 kB / 282.5 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003943/0.02659, allocations: 132.6 kB / 282.7 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.02661, allocations: 12 kB / 282.7 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.27e-05/0.02665, allocations: 20 kB / 282.7 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-05/0.02667, allocations: 19.92 kB / 282.7 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/0.02668, allocations: 11.94 kB / 282.7 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.02786, allocations: 0.8797 MB / 283.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.02802, allocations: 71.77 kB / 283.7 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/0.02808, allocations: 23.98 kB / 283.7 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003943/0.02848, allocations: 51.94 kB / 283.7 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.02867, allocations: 79.66 kB / 283.8 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.02871, allocations: 24 kB / 283.8 MB, free: 5.797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001259/0.02884, allocations: 176.2 kB / 284 MB, free: 5.625 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.02884, allocations: 0 / 284 MB, free: 5.625 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005002/0.02934, allocations: 99.94 kB / 284.1 MB, free: 5.527 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.0001552/0.02949, allocations: 127.1 kB / 284.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000747/0.03024, allocations: 419 kB / 284.6 MB, free: 4.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.03024, allocations: 4 kB / 284.6 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.0305, allocations: 161.4 kB / 284.8 MB, free: 4.816 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.03106, allocations: 83.89 kB / 284.9 MB, free: 4.734 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.03265, allocations: 0.9663 MB / 285.9 MB, free: 3.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.03276, allocations: 109.6 kB / 286 MB, free: 3.465 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003685/0.03313, allocations: 78.88 kB / 286 MB, free: 3.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.03336, allocations: 32.5 kB / 286.1 MB, free: 3.359 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/0.03336, allocations: 0 / 286.1 MB, free: 3.359 MB / 266.7 MB Notification: Performance of Templates: time 0.01044/0.0438, allocations: 6.507 MB / 292.6 MB, free: 12.93 MB / 282.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: 3.2251904201693833]