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.001433/0.001433, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.001219/0.001219, allocations: 141.1 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 1.003/1.003, allocations: 173.3 MB / 201.1 MB, free: 9.332 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.853e-06/1.853e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.752e-05/2.938e-05, allocations: 6.25 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003741/0.003771, allocations: 2.331 MB / 270.3 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.00528, allocations: 0.7597 MB / 271.1 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.005438, allocations: 11.94 kB / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002878/0.005725, allocations: 55.52 kB / 271.1 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.005895, allocations: 63.48 kB / 271.2 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.006306, allocations: 167.5 kB / 271.4 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.00662, allocations: 383.5 kB / 271.7 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.006779, allocations: 67.86 kB / 271.8 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.006993, allocations: 215.5 kB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.007155, allocations: 143.6 kB / 272.1 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.255e-05/0.007198, allocations: 32 kB / 272.2 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.599e-05/0.007234, allocations: 36 kB / 272.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.057e-05/0.007314, allocations: 107.6 kB / 272.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.767e-05/0.007392, allocations: 99.77 kB / 272.4 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.007641, allocations: 255.1 kB / 272.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.007643, allocations: 0 / 272.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.007644, allocations: 0 / 272.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.007648, allocations: 0 / 272.7 MB, free: 1.73 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.0007354/0.008384, allocations: 0.6287 MB / 273.3 MB, free: 1.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.008416, allocations: 8.031 kB / 273.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.918e-05/0.008505, allocations: 72.75 kB / 273.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.008742, allocations: 212.6 kB / 273.6 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.008923, allocations: 343.9 kB / 273.9 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.008965, allocations: 28.38 kB / 273.9 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00061/0.009575, allocations: 460.2 kB / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.009589, allocations: 7.875 kB / 274.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.009613, allocations: 11.94 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.009623, allocations: 8 kB / 274.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003726/0.009996, allocations: 235.7 kB / 274.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008959/0.01089, allocations: 0.9252 MB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000558/0.01145, allocations: 348.5 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.01162, allocations: 154.7 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.01166, allocations: 8 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.01168, allocations: 41.39 kB / 276.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.01168, allocations: 3.938 kB / 276.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006865/0.01855, allocations: 2.629 MB / 278.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.01861, allocations: 145 kB / 278.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.01875, allocations: 241.8 kB / 279.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.307e-05/0.0188, allocations: 41.64 kB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.654e-05/0.01887, allocations: 188.5 kB / 279.3 MB, free: 10.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.01899, allocations: 194.3 kB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.01916, allocations: 99.94 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.01928, allocations: 0.5157 MB / 280.1 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.01971, allocations: 317.2 kB / 280.5 MB, free: 9.535 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004639/0.02018, allocations: 432.5 kB / 280.9 MB, free: 9.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007571/0.02093, allocations: 0.6396 MB / 281.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.02094, allocations: 0 / 281.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001189/0.02212, allocations: 0.7825 MB / 282.3 MB, free: 7.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.02214, allocations: 8.031 kB / 282.3 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.02215, allocations: 4 kB / 282.3 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.02217, allocations: 4 kB / 282.3 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006436/0.02281, allocations: 163.8 kB / 282.5 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.02282, allocations: 7.984 kB / 282.5 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.02319, allocations: 71.92 kB / 282.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.02323, allocations: 19.98 kB / 282.6 MB, free: 7.332 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.0001717/0.0234, allocations: 200.3 kB / 282.8 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002242/0.02363, allocations: 161.3 kB / 282.9 MB, free: 6.961 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.858e-05/0.02371, allocations: 59.31 kB / 283 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.02371, allocations: 11.98 kB / 283 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.02372, allocations: 4 kB / 283 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.02372, allocations: 0 / 283 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.02554, allocations: 1.5 MB / 284.5 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.02554, allocations: 12 kB / 284.5 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.0259, allocations: 167.7 kB / 284.7 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.02591, allocations: 12 kB / 284.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.02594, allocations: 28 kB / 284.7 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.108e-05/0.02595, allocations: 23.92 kB / 284.7 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.02596, allocations: 16.19 kB / 284.8 MB, free: 4.918 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009963/0.02696, allocations: 1.236 MB / 286 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.02707, allocations: 91.58 kB / 286.1 MB, free: 3.387 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.02711, allocations: 27.98 kB / 286.1 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.02737, allocations: 63.98 kB / 286.2 MB, free: 3.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.0275, allocations: 91.56 kB / 286.3 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.02753, allocations: 32 kB / 286.3 MB, free: 3.176 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.162e-05/0.0276, allocations: 164.2 kB / 286.5 MB, free: 3.016 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0276, allocations: 0 / 286.5 MB, free: 3.016 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003696/0.02797, allocations: 116 kB / 286.6 MB, free: 2.902 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.0001124/0.02808, allocations: 138.9 kB / 286.7 MB, free: 2.754 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000756/0.02884, allocations: 0.5858 MB / 287.3 MB, free: 2.168 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.02884, allocations: 0 / 287.3 MB, free: 2.168 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.02905, allocations: 170.2 kB / 287.5 MB, free: 2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000553/0.0296, allocations: 150.4 kB / 287.6 MB, free: 1.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.03095, allocations: 1.128 MB / 288.7 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.85e-05/0.03104, allocations: 130.8 kB / 288.9 MB, free: 376 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002497/0.03129, allocations: 87.17 kB / 288.9 MB, free: 292 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.0315, allocations: 40.5 kB / 289 MB, free: 252 kB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.0315, allocations: 0 / 289 MB, free: 252 kB / 266.7 MB Notification: Performance of Templates: time 0.008945/0.04044, allocations: 8.735 MB / 297.7 MB, free: 7.574 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.1466293591074646]