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.000911/0.000911, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008492/0.0008492, allocations: 143 kB / 24.89 MB, free: 8.789 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.9262/0.9262, allocations: 173.4 MB / 201.5 MB, free: 8.742 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.312e-06/1.312e-06, allocations: 0 / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.742e-05, allocations: 5.969 kB / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002483/0.002501, allocations: 2.357 MB / 270.9 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.003532, allocations: 0.779 MB / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.003653, allocations: 7.938 kB / 271.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.003887, allocations: 43.58 kB / 271.7 MB, free: 2.785 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.004052, allocations: 63.5 kB / 271.7 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.004394, allocations: 175.5 kB / 271.9 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.004759, allocations: 379.5 kB / 272.3 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.004883, allocations: 66.48 kB / 272.4 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.005122, allocations: 227.5 kB / 272.6 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.005273, allocations: 139.6 kB / 272.7 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.864e-05/0.005312, allocations: 36 kB / 272.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.054e-05/0.005342, allocations: 32 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.005413, allocations: 107.7 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.538e-05/0.005478, allocations: 99.72 kB / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.005701, allocations: 247.2 kB / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.005703, allocations: 0 / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.005703, allocations: 0 / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.005709, allocations: 3.984 kB / 273.2 MB, free: 1.238 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.0005964/0.006305, allocations: 0.5079 MB / 273.7 MB, free: 0.707 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.666e-05/0.006332, allocations: 11.97 kB / 273.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.579e-05/0.006398, allocations: 60.89 kB / 273.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.006593, allocations: 185.8 kB / 274 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.006749, allocations: 339.9 kB / 274.3 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.58e-05/0.006785, allocations: 32.31 kB / 274.3 MB, free: 0 / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004492/0.007234, allocations: 418.9 kB / 274.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.007246, allocations: 3.938 kB / 274.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.007265, allocations: 12 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.007273, allocations: 8 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/0.007523, allocations: 170.6 kB / 274.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006732/0.008196, allocations: 0.647 MB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.008617, allocations: 326.8 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.008728, allocations: 103.5 kB / 276 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.008759, allocations: 8.406 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.008781, allocations: 46.44 kB / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.523e-06/0.008783, allocations: 0 / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005582/0.01436, allocations: 2.235 MB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.01443, allocations: 157 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.01453, allocations: 182.5 kB / 278.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.01458, allocations: 37.7 kB / 278.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.983e-05/0.01463, allocations: 141.6 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.01474, allocations: 202.3 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.01491, allocations: 86.31 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.01508, allocations: 342.7 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002491/0.01533, allocations: 208.1 kB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.01561, allocations: 294.7 kB / 279.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005166/0.01613, allocations: 495 kB / 280.4 MB, free: 9.676 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.01613, allocations: 0 / 280.4 MB, free: 9.676 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006186/0.01675, allocations: 0.5363 MB / 280.9 MB, free: 9.133 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.01676, allocations: 8 kB / 280.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.01677, allocations: 0 / 280.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.01678, allocations: 7.938 kB / 281 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005571/0.01734, allocations: 167.8 kB / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.01735, allocations: 7.938 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.01765, allocations: 80.08 kB / 281.2 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.01769, allocations: 12 kB / 281.2 MB, free: 8.855 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.0001427/0.01783, allocations: 148.5 kB / 281.4 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.01798, allocations: 125.5 kB / 281.5 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.444e-05/0.01805, allocations: 59.3 kB / 281.5 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.01805, allocations: 8 kB / 281.5 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.01806, allocations: 4 kB / 281.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.01806, allocations: 3.984 kB / 281.6 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.01944, allocations: 1.188 MB / 282.7 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.01945, allocations: 8 kB / 282.8 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.01977, allocations: 176.5 kB / 282.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.01978, allocations: 16 kB / 282.9 MB, free: 6.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.01981, allocations: 28 kB / 283 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/0.01983, allocations: 19.92 kB / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.874e-06/0.01983, allocations: 15.94 kB / 283 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005962/0.02043, allocations: 0.8469 MB / 283.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.644e-05/0.02052, allocations: 55.73 kB / 283.9 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.02056, allocations: 31.98 kB / 283.9 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.02079, allocations: 63.94 kB / 284 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.0209, allocations: 87.64 kB / 284.1 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.02093, allocations: 27.94 kB / 284.1 MB, free: 5.633 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.682e-05/0.02096, allocations: 45.86 kB / 284.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02096, allocations: 3.938 kB / 284.2 MB, free: 5.582 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000323/0.02129, allocations: 120 kB / 284.3 MB, free: 5.465 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.0001006/0.02139, allocations: 124.1 kB / 284.4 MB, free: 5.336 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005028/0.02189, allocations: 469.1 kB / 284.9 MB, free: 4.867 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.0219, allocations: 4 kB / 284.9 MB, free: 4.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.02206, allocations: 151.9 kB / 285 MB, free: 4.715 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.0225, allocations: 144.3 kB / 285.1 MB, free: 4.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.02373, allocations: 0.9849 MB / 286.1 MB, free: 3.426 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.936e-05/0.02382, allocations: 130.8 kB / 286.3 MB, free: 3.281 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.00024/0.02406, allocations: 75.2 kB / 286.3 MB, free: 3.207 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.02434, allocations: 111.4 kB / 286.4 MB, free: 3.098 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02434, allocations: 0 / 286.4 MB, free: 3.098 MB / 266.7 MB Notification: Performance of Templates: time 0.1031/0.1274, allocations: 9.298 MB / 295.7 MB, free: 29.02 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 -s gbode -gbm=radauIIA3 -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.592561240773648]