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.001051/0.001051, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001132/0.002183, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009579/0.0009579, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00138/0.002338, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.89/0.89, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1412/1.031, allocations: 52.49 MB / 238.5 MB, free: 7.637 MB / 234.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.102e-06/1.102e-06, allocations: 0 / 239.7 MB, free: 6.395 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.327e-05/1.437e-05, allocations: 5.828 kB / 239.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002317/0.002331, allocations: 2.372 MB / 242.1 MB, free: 4.016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009086/0.00324, allocations: 0.7796 MB / 242.9 MB, free: 3.234 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.003348, allocations: 11.94 kB / 242.9 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.003505, allocations: 43.58 kB / 242.9 MB, free: 3.18 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.003634, allocations: 60.97 kB / 243 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.003963, allocations: 180.2 kB / 243.2 MB, free: 2.945 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.004246, allocations: 364.7 kB / 243.5 MB, free: 2.59 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.004373, allocations: 70.47 kB / 243.6 MB, free: 2.52 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.004617, allocations: 242.5 kB / 243.8 MB, free: 2.285 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.004774, allocations: 139.6 kB / 244 MB, free: 2.148 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.453e-05/0.004819, allocations: 36 kB / 244 MB, free: 2.113 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.358e-05/0.004852, allocations: 32 kB / 244 MB, free: 2.082 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.102e-05/0.004923, allocations: 75.78 kB / 244.1 MB, free: 2.008 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.249e-05/0.004986, allocations: 75.81 kB / 244.2 MB, free: 1.934 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.005192, allocations: 219.2 kB / 244.4 MB, free: 1.719 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.0052, allocations: 0 / 244.4 MB, free: 1.719 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.0052, allocations: 0 / 244.4 MB, free: 1.719 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.005211, allocations: 1.281 kB / 244.4 MB, free: 1.719 MB / 234.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.0006666/0.005877, allocations: 0.5623 MB / 245 MB, free: 1.133 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.647e-05/0.005904, allocations: 15.98 kB / 245 MB, free: 1.117 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.629e-05/0.00597, allocations: 60.89 kB / 245 MB, free: 1.059 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.006172, allocations: 182.7 kB / 245.2 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.006336, allocations: 343.9 kB / 245.5 MB, free: 464 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.006377, allocations: 29.27 kB / 245.6 MB, free: 436 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.006945, allocations: 416 kB / 246 MB, free: 15.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.006962, allocations: 12.55 kB / 246 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.006983, allocations: 12 kB / 246 MB, free: 15.97 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.006992, allocations: 13.97 kB / 246 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.007241, allocations: 171.1 kB / 246.2 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.007891, allocations: 0.6429 MB / 246.8 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.008328, allocations: 324.2 kB / 247.1 MB, free: 14.76 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.008438, allocations: 107.5 kB / 247.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.008467, allocations: 8.625 kB / 247.3 MB, free: 14.63 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.008491, allocations: 51.02 kB / 247.3 MB, free: 14.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.473e-06/0.008492, allocations: 0 / 247.3 MB, free: 14.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005483/0.01397, allocations: 2.252 MB / 249.6 MB, free: 12.32 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.01403, allocations: 149.4 kB / 249.7 MB, free: 12.15 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/0.01413, allocations: 182.9 kB / 249.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.59e-05/0.01419, allocations: 41.7 kB / 249.9 MB, free: 11.91 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.01423, allocations: 133.7 kB / 250.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.01435, allocations: 202.2 kB / 250.2 MB, free: 11.58 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.0145, allocations: 90.3 kB / 250.3 MB, free: 11.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.01457, allocations: 342.7 kB / 250.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.0148, allocations: 212.1 kB / 250.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.01506, allocations: 290.7 kB / 251.2 MB, free: 10.62 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004778/0.01554, allocations: 0.4907 MB / 251.7 MB, free: 10.1 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01554, allocations: 0 / 251.7 MB, free: 10.1 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005853/0.01613, allocations: 0.5324 MB / 252.2 MB, free: 9.566 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.01614, allocations: 4 kB / 252.2 MB, free: 9.562 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.01615, allocations: 4 kB / 252.2 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.01616, allocations: 8.219 kB / 252.2 MB, free: 9.551 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005959/0.01676, allocations: 175.7 kB / 252.4 MB, free: 9.379 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.01677, allocations: 11.98 kB / 252.4 MB, free: 9.367 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.01707, allocations: 67.92 kB / 252.5 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.01711, allocations: 23.92 kB / 252.5 MB, free: 9.277 MB / 250.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.0001539/0.01727, allocations: 144.5 kB / 252.6 MB, free: 9.125 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.01742, allocations: 121.5 kB / 252.7 MB, free: 9 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.659e-05/0.01749, allocations: 67.28 kB / 252.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.0175, allocations: 8 kB / 252.8 MB, free: 8.922 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.0175, allocations: 3.938 kB / 252.8 MB, free: 8.918 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.01751, allocations: 3.984 kB / 252.8 MB, free: 8.914 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.01907, allocations: 1.193 MB / 254 MB, free: 7.566 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.01908, allocations: 12 kB / 254 MB, free: 7.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.01944, allocations: 179.7 kB / 254.2 MB, free: 7.379 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.946e-05/0.01953, allocations: 67.66 kB / 254.3 MB, free: 7.312 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.01954, allocations: 12 kB / 254.3 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.01957, allocations: 24 kB / 254.3 MB, free: 7.277 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.799e-06/0.01957, allocations: 23.94 kB / 254.3 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.01958, allocations: 11.94 kB / 254.3 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005948/0.02018, allocations: 0.8553 MB / 255.2 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.02022, allocations: 20 kB / 255.2 MB, free: 6.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.02045, allocations: 59.94 kB / 255.3 MB, free: 6.148 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.02056, allocations: 95.67 kB / 255.4 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.02059, allocations: 31.92 kB / 255.4 MB, free: 6.023 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.897e-05/0.02063, allocations: 49.86 kB / 255.4 MB, free: 5.973 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02063, allocations: 0 / 255.4 MB, free: 5.973 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003208/0.02095, allocations: 116 kB / 255.6 MB, free: 5.859 MB / 250.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.0001019/0.02105, allocations: 116.1 kB / 255.7 MB, free: 5.738 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.02157, allocations: 473.6 kB / 256.1 MB, free: 5.27 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/0.02158, allocations: 4 kB / 256.1 MB, free: 5.266 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.02179, allocations: 196.1 kB / 256.3 MB, free: 5.074 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.02234, allocations: 365.4 kB / 256.7 MB, free: 4.68 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.02463, allocations: 1.122 MB / 257.8 MB, free: 3.391 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.905e-05/0.02472, allocations: 130.7 kB / 257.9 MB, free: 3.242 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.00025/0.02497, allocations: 75.2 kB / 258 MB, free: 3.164 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.02528, allocations: 115.4 kB / 258.1 MB, free: 3.051 MB / 250.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02528, allocations: 0 / 258.1 MB, free: 3.051 MB / 250.7 MB Notification: Performance of Templates: time 0.009977/0.03526, allocations: 9.332 MB / 267.4 MB, free: 9.785 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5448360173031688]