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.001428/0.001428, allocations: 81.58 kB / 20.68 MB, free: 1.012 MB / 14.72 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.001998/0.001998, allocations: 146.7 kB / 23.94 MB, free: 4.266 MB / 14.72 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.445/1.445, allocations: 173.4 MB / 200.4 MB, free: 12.87 MB / 190.1 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.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 2.675e-06/2.675e-06, allocations: 1.094 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.875e-05/3.143e-05, allocations: 2.281 kB / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003531/0.003563, allocations: 2.057 MB / 321 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.004668, allocations: 0.6248 MB / 321.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.004784, allocations: 2.812 kB / 321.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002824/0.005066, allocations: 47.33 kB / 321.6 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.005225, allocations: 60.95 kB / 321.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.005622, allocations: 129.3 kB / 321.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.006005, allocations: 343.9 kB / 322.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.006167, allocations: 53.22 kB / 322.2 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002901/0.006457, allocations: 203.9 kB / 322.4 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.006668, allocations: 129.9 kB / 322.5 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.613e-05/0.006724, allocations: 33.31 kB / 322.6 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.512e-05/0.006779, allocations: 30.06 kB / 322.6 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.006915, allocations: 89.81 kB / 322.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.007069, allocations: 91.59 kB / 322.8 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004689/0.007538, allocations: 313 kB / 323.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.007541, allocations: 3.938 kB / 323.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.007542, allocations: 0 / 323.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.007549, allocations: 0 / 323.1 MB, free: 1.07 MB / 286.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.001183/0.008732, allocations: 0.5095 MB / 323.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.00878, allocations: 9.688 kB / 323.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.458e-05/0.008864, allocations: 31.92 kB / 323.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.009216, allocations: 189.2 kB / 323.8 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.009467, allocations: 346.4 kB / 324.2 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.986e-05/0.009527, allocations: 24 kB / 324.2 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009006/0.01043, allocations: 377.6 kB / 324.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.01045, allocations: 1.828 kB / 324.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.01048, allocations: 6.281 kB / 324.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.01049, allocations: 5.344 kB / 324.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.01199, allocations: 0.4931 MB / 325 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.01389, allocations: 0.8674 MB / 325.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.01507, allocations: 299.5 kB / 326.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006171/0.01568, allocations: 174 kB / 326.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.494e-05/0.01573, allocations: 3.031 kB / 326.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.01577, allocations: 40.81 kB / 326.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.375e-06/0.01577, allocations: 5.094 kB / 326.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.03009/0.04586, allocations: 5.67 MB / 332.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.04592, allocations: 58.25 kB / 332.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.04621, allocations: 208.8 kB / 332.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.405e-05/0.04628, allocations: 32.45 kB / 332.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.0464, allocations: 150.4 kB / 332.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.04658, allocations: 182.9 kB / 332.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002299/0.04681, allocations: 94.05 kB / 332.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.04698, allocations: 341.6 kB / 333.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001456/0.04844, allocations: 471.9 kB / 333.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.04995, allocations: 0.5205 MB / 334.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002633/0.05259, allocations: 0.8115 MB / 334.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.05259, allocations: 1.438 kB / 334.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003114/0.0557, allocations: 1.006 MB / 335.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.05572, allocations: 8 kB / 335.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.05573, allocations: 0 / 335.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.05575, allocations: 4 kB / 336 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.0568, allocations: 167.7 kB / 336.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.05681, allocations: 8.031 kB / 336.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007887/0.0576, allocations: 91.75 kB / 336.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.124e-05/0.05766, allocations: 16 kB / 336.2 MB, free: 10.05 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.0002697/0.05793, allocations: 165.6 kB / 336.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.115e-05/0.05802, allocations: 23.86 kB / 336.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.05816, allocations: 51.31 kB / 336.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.05817, allocations: 4 kB / 336.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.05818, allocations: 4 kB / 336.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.05818, allocations: 7.984 kB / 336.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/0.06276, allocations: 1.702 MB / 338.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.06277, allocations: 8 kB / 338.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006859/0.06346, allocations: 143.9 kB / 338.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.227e-05/0.06347, allocations: 12 kB / 338.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.826e-05/0.06352, allocations: 23.98 kB / 338.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.783e-05/0.06354, allocations: 19.92 kB / 338.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/0.06355, allocations: 11.94 kB / 338.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003222/0.06678, allocations: 1.236 MB / 339.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.06696, allocations: 67.81 kB / 339.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.06704, allocations: 23.98 kB / 339.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.06761, allocations: 71.91 kB / 339.8 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.06783, allocations: 91.66 kB / 339.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.06787, allocations: 24 kB / 339.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001987/0.06807, allocations: 156.8 kB / 340.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06807, allocations: 4 kB / 340.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.06859, allocations: 96 kB / 340.2 MB, free: 5.836 MB / 302.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.06878, allocations: 123.1 kB / 340.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002585/0.07136, allocations: 0.7946 MB / 341.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.07137, allocations: 4 kB / 341.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.07249, allocations: 329.6 kB / 341.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007535/0.07325, allocations: 66.59 kB / 341.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.07572, allocations: 0.9555 MB / 342.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.07593, allocations: 180.2 kB / 342.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.07632, allocations: 82.81 kB / 342.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.07656, allocations: 36.5 kB / 342.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.07656, allocations: 0 / 342.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of Templates: time 0.01205/0.0886, allocations: 6.082 MB / 348.8 MB, free: 13.12 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.523057375103235]