Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.0009762/0.0009762, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.001285/0.001285, allocations: 145.2 kB / 25.6 MB, free: 8.93 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.9462/0.9462, allocations: 173.4 MB / 202.2 MB, free: 8.27 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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 269.2 MB, free: 9.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.303e-05/1.431e-05, allocations: 2.312 kB / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002686/0.0027, allocations: 2.314 MB / 271.5 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.00382, allocations: 0.7558 MB / 272.2 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.003958, allocations: 7.938 kB / 272.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.004217, allocations: 47.62 kB / 272.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.00438, allocations: 68.28 kB / 272.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.004706, allocations: 177.1 kB / 272.5 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003008/0.005006, allocations: 376.1 kB / 272.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.005143, allocations: 68.72 kB / 273 MB, free: 6.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.005365, allocations: 223.5 kB / 273.2 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.005527, allocations: 140.3 kB / 273.3 MB, free: 5.66 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.005568, allocations: 32 kB / 273.3 MB, free: 5.629 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.339e-05/0.005602, allocations: 36.56 kB / 273.4 MB, free: 5.594 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.074e-05/0.005683, allocations: 100.5 kB / 273.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.502e-05/0.005758, allocations: 103.7 kB / 273.6 MB, free: 5.395 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.005991, allocations: 244.7 kB / 273.8 MB, free: 5.156 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.005993, allocations: 0 / 273.8 MB, free: 5.156 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.005994, allocations: 4 kB / 273.8 MB, free: 5.152 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.005998, allocations: 0 / 273.8 MB, free: 5.152 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0006875/0.006685, allocations: 0.6432 MB / 274.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.006715, allocations: 8.031 kB / 274.5 MB, free: 4.469 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.65e-05/0.006791, allocations: 68.75 kB / 274.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.007008, allocations: 212.6 kB / 274.8 MB, free: 4.168 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.007178, allocations: 339.9 kB / 275.1 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.007217, allocations: 28.38 kB / 275.1 MB, free: 3.742 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004857/0.007703, allocations: 428.1 kB / 275.5 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.007717, allocations: 7.922 kB / 275.5 MB, free: 3.281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.007741, allocations: 12 kB / 275.6 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.007747, allocations: 11.94 kB / 275.6 MB, free: 3.258 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.008028, allocations: 195 kB / 275.8 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008146/0.008843, allocations: 0.8906 MB / 276.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005191/0.009362, allocations: 324.6 kB / 277 MB, free: 1.758 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.009559, allocations: 130.7 kB / 277.1 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.071e-05/0.009599, allocations: 8 kB / 277.1 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.00963, allocations: 45.33 kB / 277.1 MB, free: 1.551 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.009632, allocations: 0 / 277.1 MB, free: 1.551 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.01033/0.01996, allocations: 2.412 MB / 279.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/0.02006, allocations: 145 kB / 279.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.02024, allocations: 229.8 kB / 279.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.475e-05/0.02031, allocations: 37.7 kB / 280 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.02042, allocations: 196.4 kB / 280.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.02061, allocations: 202.3 kB / 280.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.0209, allocations: 103.9 kB / 280.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.02106, allocations: 0.5117 MB / 281 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004481/0.02151, allocations: 253.1 kB / 281.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005105/0.02202, allocations: 364.4 kB / 281.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000871/0.02289, allocations: 0.5419 MB / 282.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.0229, allocations: 0 / 282.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001251/0.02415, allocations: 0.6613 MB / 282.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.02417, allocations: 4 kB / 282.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.02418, allocations: 4 kB / 282.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.02419, allocations: 4 kB / 282.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009252/0.02512, allocations: 163.7 kB / 282.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.02512, allocations: 8.25 kB / 282.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005636/0.02569, allocations: 72.11 kB / 283 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.021e-05/0.02576, allocations: 15.98 kB / 283 MB, free: 11.49 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.0002488/0.02601, allocations: 196.3 kB / 283.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.0263, allocations: 149.4 kB / 283.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.02642, allocations: 63.3 kB / 283.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.02643, allocations: 8 kB / 283.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.02643, allocations: 4 kB / 283.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.02644, allocations: 7.984 kB / 283.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.02907, allocations: 1.449 MB / 284.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.02908, allocations: 12 kB / 284.9 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005691/0.02965, allocations: 171.7 kB / 285.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-05/0.02966, allocations: 12 kB / 285.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.717e-05/0.02971, allocations: 24.56 kB / 285.1 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.705e-05/0.02973, allocations: 27.92 kB / 285.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.517e-06/0.02974, allocations: 11.94 kB / 285.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.03088, allocations: 1.05 MB / 286.2 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.03104, allocations: 91.62 kB / 286.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.03111, allocations: 32.02 kB / 286.3 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/0.03153, allocations: 55.95 kB / 286.4 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.0317, allocations: 91.62 kB / 286.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.03175, allocations: 24 kB / 286.5 MB, free: 7.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.984e-05/0.03184, allocations: 168.7 kB / 286.7 MB, free: 7.434 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03184, allocations: 0 / 286.7 MB, free: 7.434 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006423/0.03248, allocations: 116 kB / 286.8 MB, free: 7.32 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.0001582/0.03264, allocations: 150.9 kB / 286.9 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008664/0.0335, allocations: 499.9 kB / 287.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.03351, allocations: 4 kB / 287.4 MB, free: 6.664 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.03378, allocations: 161.4 kB / 287.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008947/0.03467, allocations: 133.1 kB / 287.7 MB, free: 6.379 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.03642, allocations: 1.131 MB / 288.8 MB, free: 5.031 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.03668, allocations: 130.7 kB / 289 MB, free: 4.887 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000409/0.03709, allocations: 75.2 kB / 289 MB, free: 4.816 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004298/0.03752, allocations: 138.2 kB / 289.2 MB, free: 4.68 MB / 266.7 MB Notification: Performance of SimCode: time 1.332e-06/0.03752, allocations: 0 / 289.2 MB, free: 4.68 MB / 266.7 MB Notification: Performance of Templates: time 0.01447/0.05199, allocations: 9.574 MB / 298.7 MB, free: 11.18 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.913354203104973]