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.001137/0.001137, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009832/0.0009832, allocations: 145.5 kB / 24.54 MB, free: 32 kB / 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.9776/0.9776, allocations: 173.4 MB / 201.1 MB, free: 9.363 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 4.278e-06/4.278e-06, allocations: 3.984 kB / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.662e-05/4.09e-05, allocations: 2.312 kB / 268 MB, free: 6.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.0036/0.003641, allocations: 2.331 MB / 270.3 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.00506, allocations: 0.7636 MB / 271.1 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.005281, allocations: 7.938 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003172/0.005599, allocations: 51.58 kB / 271.1 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.00585, allocations: 63.48 kB / 271.2 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005911/0.006441, allocations: 171.5 kB / 271.4 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005315/0.006973, allocations: 383.5 kB / 271.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.007194, allocations: 63.86 kB / 271.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.007583, allocations: 223.5 kB / 272 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.00778, allocations: 139.6 kB / 272.1 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.007833, allocations: 32 kB / 272.2 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.934e-05/0.007872, allocations: 36 kB / 272.2 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.834e-05/0.007961, allocations: 111.7 kB / 272.3 MB, free: 2.102 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.606e-05/0.008047, allocations: 95.78 kB / 272.4 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.008353, allocations: 255.1 kB / 272.7 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.008356, allocations: 0 / 272.7 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.008357, allocations: 0 / 272.7 MB, free: 1.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.008363, allocations: 0 / 272.7 MB, free: 1.758 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.0008903/0.009254, allocations: 0.6287 MB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.009295, allocations: 8.031 kB / 273.3 MB, free: 1.086 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.535e-05/0.00939, allocations: 72.69 kB / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.009657, allocations: 212.6 kB / 273.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.009862, allocations: 347.8 kB / 273.9 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.009909, allocations: 32.38 kB / 274 MB, free: 352 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.01054, allocations: 451.9 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.01056, allocations: 7.938 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.01059, allocations: 12 kB / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.01059, allocations: 8 kB / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/0.01098, allocations: 235.7 kB / 274.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.01201, allocations: 0.9252 MB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006012/0.01261, allocations: 348.5 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.01279, allocations: 150.7 kB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.01283, allocations: 12 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.01286, allocations: 53.27 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.144e-06/0.01286, allocations: 0 / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00738/0.02024, allocations: 2.617 MB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/0.02032, allocations: 145.2 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.02049, allocations: 245.7 kB / 279.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.433e-05/0.02055, allocations: 37.7 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.149e-05/0.02064, allocations: 192.5 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.02078, allocations: 194.3 kB / 279.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.02096, allocations: 103.9 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.02109, allocations: 0.5117 MB / 280.2 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004208/0.02151, allocations: 321.2 kB / 280.5 MB, free: 9.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004582/0.02197, allocations: 428.1 kB / 280.9 MB, free: 9.102 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007663/0.02273, allocations: 0.6435 MB / 281.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.207e-06/0.02274, allocations: 0 / 281.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001038/0.02378, allocations: 0.7824 MB / 282.3 MB, free: 7.629 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.0238, allocations: 4 kB / 282.3 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.02381, allocations: 4 kB / 282.3 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.02382, allocations: 4 kB / 282.3 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005955/0.02442, allocations: 164 kB / 282.5 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.02443, allocations: 7.984 kB / 282.5 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.0248, allocations: 71.92 kB / 282.6 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.623e-05/0.02485, allocations: 27.92 kB / 282.6 MB, free: 7.352 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.0001998/0.02505, allocations: 184.8 kB / 282.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.02528, allocations: 165.6 kB / 282.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.966e-05/0.02536, allocations: 59.31 kB / 283 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.02536, allocations: 11.98 kB / 283 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.02537, allocations: 8 kB / 283 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.02538, allocations: 0 / 283 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.02735, allocations: 1.504 MB / 284.5 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.178e-06/0.02736, allocations: 12 kB / 284.5 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.02774, allocations: 167.8 kB / 284.7 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.365e-05/0.02776, allocations: 12 kB / 284.7 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.352e-05/0.0278, allocations: 24 kB / 284.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.592e-05/0.02782, allocations: 27.86 kB / 284.8 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.02782, allocations: 11.94 kB / 284.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.02899, allocations: 1.24 MB / 286 MB, free: 3.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.02913, allocations: 91.64 kB / 286.1 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.02918, allocations: 27.98 kB / 286.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.02944, allocations: 59.95 kB / 286.2 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.02959, allocations: 91.56 kB / 286.3 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.02962, allocations: 32 kB / 286.3 MB, free: 3.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.588e-05/0.02972, allocations: 164.2 kB / 286.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02972, allocations: 4.031 kB / 286.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004496/0.03017, allocations: 119.9 kB / 286.6 MB, free: 2.922 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.0001907/0.03036, allocations: 135 kB / 286.7 MB, free: 2.777 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008289/0.03119, allocations: 0.5822 MB / 287.3 MB, free: 2.195 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.03119, allocations: 4.125 kB / 287.3 MB, free: 2.191 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002189/0.03141, allocations: 169.9 kB / 287.5 MB, free: 2.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006385/0.03205, allocations: 144 kB / 287.6 MB, free: 1.887 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.03374, allocations: 1.127 MB / 288.7 MB, free: 0.543 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.03387, allocations: 126.8 kB / 288.9 MB, free: 408 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003064/0.03418, allocations: 87.17 kB / 288.9 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.03438, allocations: 40.5 kB / 289 MB, free: 284 kB / 266.7 MB Notification: Performance of SimCode: time 1.673e-06/0.03438, allocations: 0 / 289 MB, free: 284 kB / 266.7 MB Notification: Performance of Templates: time 0.01076/0.04515, allocations: 9.199 MB / 298.2 MB, free: 7.141 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: 3.1748772766441107]