Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001328/0.001328, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001444/0.001444, allocations: 169.6 kB / 24.91 MB, free: 8.734 MB / 18.57 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 0.9404/0.9404, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 3.984 kB / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.165e-05/1.432e-05, allocations: 2.312 kB / 273.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002516/0.002531, allocations: 2.372 MB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.003605, allocations: 0.8062 MB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.003724, allocations: 4 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002475/0.003972, allocations: 51.58 kB / 276.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001546/0.004126, allocations: 67.44 kB / 276.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.004428, allocations: 175.5 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.00471, allocations: 387.4 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.004836, allocations: 70.47 kB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.005082, allocations: 219.6 kB / 277.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.005239, allocations: 143.6 kB / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.005278, allocations: 36 kB / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.985e-05/0.005308, allocations: 32 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.204e-05/0.00538, allocations: 107.6 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.515e-05/0.005445, allocations: 99.78 kB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.005661, allocations: 255 kB / 278.3 MB, free: 12.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-06/0.005662, allocations: 0 / 278.3 MB, free: 12.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.005663, allocations: 0 / 278.3 MB, free: 12.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.005667, allocations: 0 / 278.3 MB, free: 12.47 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0006145/0.006281, allocations: 0.5079 MB / 278.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.006312, allocations: 8.031 kB / 278.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.234e-05/0.006374, allocations: 60.89 kB / 278.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.006581, allocations: 186.7 kB / 279 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.006763, allocations: 339.9 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.006802, allocations: 32.33 kB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004478/0.00725, allocations: 415.3 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.007264, allocations: 3.938 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.007286, allocations: 12 kB / 279.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.007293, allocations: 4 kB / 279.8 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.007541, allocations: 178.6 kB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.008191, allocations: 0.6392 MB / 280.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000419/0.00861, allocations: 330.7 kB / 280.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.008722, allocations: 111.4 kB / 281 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.008754, allocations: 8 kB / 281.1 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.008777, allocations: 42.5 kB / 281.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.492e-06/0.008778, allocations: 0 / 281.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00542/0.0142, allocations: 2.233 MB / 283.3 MB, free: 7.148 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.01426, allocations: 149 kB / 283.5 MB, free: 6.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.01436, allocations: 182.5 kB / 283.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.01441, allocations: 37.7 kB / 283.7 MB, free: 6.738 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.01446, allocations: 137.7 kB / 283.8 MB, free: 6.598 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.01457, allocations: 202.3 kB / 284 MB, free: 6.398 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.01472, allocations: 86.3 kB / 284.1 MB, free: 6.309 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.631e-05/0.01481, allocations: 346.7 kB / 284.4 MB, free: 5.961 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.01504, allocations: 200.2 kB / 284.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002687/0.0153, allocations: 298.6 kB / 284.9 MB, free: 5.441 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.01577, allocations: 0.4911 MB / 285.4 MB, free: 4.922 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.01578, allocations: 0 / 285.4 MB, free: 4.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005835/0.01636, allocations: 0.5324 MB / 286 MB, free: 4.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.01637, allocations: 8 kB / 286 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.01638, allocations: 224 / 286 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.01639, allocations: 8 kB / 286 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005498/0.01694, allocations: 174.4 kB / 286.1 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.01695, allocations: 7.984 kB / 286.2 MB, free: 4.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.01725, allocations: 75.81 kB / 286.2 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.01729, allocations: 15.98 kB / 286.2 MB, free: 4.102 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.0001363/0.01743, allocations: 148.5 kB / 286.4 MB, free: 3.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.01758, allocations: 117.6 kB / 286.5 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.975e-05/0.01765, allocations: 63.3 kB / 286.6 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.01766, allocations: 8 kB / 286.6 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01766, allocations: 4 kB / 286.6 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.01767, allocations: 3.984 kB / 286.6 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.01908, allocations: 1.193 MB / 287.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.01909, allocations: 12 kB / 287.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.01943, allocations: 175.7 kB / 288 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.01944, allocations: 12 kB / 288 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.01946, allocations: 24 kB / 288 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/0.01947, allocations: 19.92 kB / 288 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/0.01948, allocations: 15.94 kB / 288 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006113/0.02009, allocations: 0.8442 MB / 288.9 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.891e-05/0.02018, allocations: 63.64 kB / 288.9 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.02022, allocations: 28 kB / 289 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.02045, allocations: 59.97 kB / 289 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.02057, allocations: 91.64 kB / 289.1 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.02059, allocations: 27.94 kB / 289.1 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.517e-05/0.02063, allocations: 41.88 kB / 289.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02063, allocations: 0 / 289.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003193/0.02095, allocations: 120 kB / 289.3 MB, free: 0.7188 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 0.000105/0.02105, allocations: 120.1 kB / 289.4 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004924/0.02155, allocations: 465.5 kB / 289.9 MB, free: 140 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.02155, allocations: 4 kB / 289.9 MB, free: 136 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.02172, allocations: 159.9 kB / 290 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.02218, allocations: 146.3 kB / 290.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.02327, allocations: 0.9891 MB / 291.2 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.525e-05/0.02336, allocations: 130.8 kB / 291.3 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002333/0.02359, allocations: 75.2 kB / 291.4 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/0.02388, allocations: 115.3 kB / 291.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of SimCode: time 6.72e-07/0.02388, allocations: 3.938 kB / 291.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of Templates: time 0.009126/0.033, allocations: 9.317 MB / 300.8 MB, free: 5.082 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.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.8732568421401083]