Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 85.36 kB / 20.68 MB, free: 1.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 164.7 kB / 23.96 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 325 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.831e-05/3.012e-05, allocations: 5.375 kB / 325 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00353/0.00356, allocations: 2.083 MB / 327.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.005129, allocations: 0.6701 MB / 327.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.005267, allocations: 7.156 kB / 327.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003036/0.00557, allocations: 46.73 kB / 327.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.005759, allocations: 57.22 kB / 327.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.006215, allocations: 124.8 kB / 328 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004802/0.006696, allocations: 344.7 kB / 328.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.006863, allocations: 46.94 kB / 328.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004242/0.007287, allocations: 212.2 kB / 328.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.007524, allocations: 132.4 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.007583, allocations: 29.72 kB / 328.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.694e-05/0.00764, allocations: 30.5 kB / 328.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.007772, allocations: 90.23 kB / 328.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.007899, allocations: 90.16 kB / 329 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.00838, allocations: 308.6 kB / 329.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.008383, allocations: 4 kB / 329.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.008385, allocations: 1.281 kB / 329.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.008391, allocations: 0 / 329.3 MB, free: 14.03 MB / 302.1 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.001301/0.009693, allocations: 0.5009 MB / 329.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.009736, allocations: 9.719 kB / 329.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.009834, allocations: 36.67 kB / 329.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.01019, allocations: 192.8 kB / 330 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003711/0.01056, allocations: 352.7 kB / 330.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.761e-05/0.01062, allocations: 19.72 kB / 330.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009989/0.01162, allocations: 377.8 kB / 330.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.01164, allocations: 4.984 kB / 330.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.01168, allocations: 10.66 kB / 330.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.01169, allocations: 5.219 kB / 330.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.01321, allocations: 498.1 kB / 331.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.015, allocations: 0.8631 MB / 332.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.01615, allocations: 306 kB / 332.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005878/0.01674, allocations: 173.6 kB / 332.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.01678, allocations: 3.25 kB / 332.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.01681, allocations: 32.97 kB / 332.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 6.092e-06/0.01682, allocations: 3.984 kB / 332.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.02973/0.04654, allocations: 5.677 MB / 338.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.04661, allocations: 59.91 kB / 338.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.04692, allocations: 206.8 kB / 338.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.837e-05/0.04698, allocations: 37.7 kB / 338.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.0471, allocations: 153 kB / 338.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.04728, allocations: 186.4 kB / 338.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.04751, allocations: 86.34 kB / 339 MB, free: 6.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.04767, allocations: 338.8 kB / 339.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.04912, allocations: 476.9 kB / 339.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.05062, allocations: 0.5302 MB / 340.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.05328, allocations: 0.8103 MB / 341.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.05328, allocations: 0 / 341.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003242/0.05653, allocations: 0.9969 MB / 342.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.05655, allocations: 8 kB / 342.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.05656, allocations: 4.125 kB / 342.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.05659, allocations: 8 kB / 342.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.05767, allocations: 171.7 kB / 342.3 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.05769, allocations: 4 kB / 342.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007929/0.05848, allocations: 83.83 kB / 342.4 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.412e-05/0.05856, allocations: 24 kB / 342.4 MB, free: 3.453 MB / 302.1 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.0002813/0.05884, allocations: 162.4 kB / 342.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.05894, allocations: 27.81 kB / 342.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.05909, allocations: 55.28 kB / 342.7 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.05909, allocations: 4 kB / 342.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.0591, allocations: 0 / 342.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.05911, allocations: 4 kB / 342.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00447/0.06358, allocations: 1.698 MB / 344.4 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.06359, allocations: 8 kB / 344.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006703/0.06426, allocations: 143.8 kB / 344.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.06427, allocations: 12 kB / 344.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.648e-05/0.06432, allocations: 20.41 kB / 344.6 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.681e-05/0.06435, allocations: 23.92 kB / 344.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/0.06436, allocations: 11.94 kB / 344.6 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003126/0.06748, allocations: 1.228 MB / 345.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.06768, allocations: 63.84 kB / 345.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.318e-05/0.06775, allocations: 20 kB / 345.9 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005703/0.06832, allocations: 79.91 kB / 346 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.06855, allocations: 91.64 kB / 346.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/0.06859, allocations: 24 kB / 346.1 MB, free: 15.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000191/0.06878, allocations: 148.3 kB / 346.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06878, allocations: 4 kB / 346.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.06929, allocations: 96 kB / 346.3 MB, free: 15.26 MB / 318.1 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.0001872/0.06947, allocations: 131 kB / 346.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.07204, allocations: 0.7946 MB / 347.3 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.07205, allocations: 4 kB / 347.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.07312, allocations: 332.2 kB / 347.6 MB, free: 14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000682/0.0738, allocations: 74.45 kB / 347.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.07613, allocations: 0.9516 MB / 348.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.07633, allocations: 176.1 kB / 348.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003955/0.07672, allocations: 86.88 kB / 348.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.07695, allocations: 28.5 kB / 348.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of SimCode: time 7.22e-07/0.07696, allocations: 0 / 348.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of Templates: time 0.01196/0.08891, allocations: 6.082 MB / 355 MB, free: 6.539 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.5491952411830425]