Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001985/0.001985, allocations: 214.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 43.92 kB / 378.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2695, allocations: 53.37 MB / 432.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004287/0.2738, allocations: 2.246 MB / 434.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.2755, allocations: 0.7638 MB / 435.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.2757, allocations: 7.938 kB / 435.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.276, allocations: 51.56 kB / 435.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.2762, allocations: 67.56 kB / 435.5 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005292/0.2767, allocations: 163.7 kB / 435.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004648/0.2772, allocations: 371.6 kB / 436 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.2774, allocations: 67.59 kB / 436 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003299/0.2777, allocations: 171.5 kB / 436.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.278, allocations: 163.3 kB / 436.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.2781, allocations: 36 kB / 436.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.035e-05/0.2781, allocations: 39.94 kB / 436.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.2782, allocations: 91.73 kB / 436.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.2784, allocations: 119.5 kB / 436.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004689/0.2789, allocations: 337.7 kB / 437 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2789, allocations: 0 / 437 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.2789, allocations: 0 / 437 MB, free: 2.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.2789, allocations: 4 kB / 437 MB, free: 2.203 MB / 334.1 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.001424/0.2803, allocations: 0.5405 MB / 437.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.2803, allocations: 12.03 kB / 437.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.2805, allocations: 36.75 kB / 437.6 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/0.281, allocations: 228 kB / 437.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004034/0.2814, allocations: 347.9 kB / 438.1 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.2815, allocations: 32.33 kB / 438.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.2828, allocations: 0.5463 MB / 438.7 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.2828, allocations: 7.984 kB / 438.7 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.2828, allocations: 8 kB / 438.7 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.2828, allocations: 8 kB / 438.7 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.2844, allocations: 0.5187 MB / 439.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.286, allocations: 0.8443 MB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.2876, allocations: 462.7 kB / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006944/0.2883, allocations: 243.4 kB / 440.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.127e-05/0.2883, allocations: 11.94 kB / 440.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.196e-05/0.2884, allocations: 46.48 kB / 440.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.2884, allocations: 0 / 440.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04935/0.3377, allocations: 5.744 MB / 446.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/0.3379, allocations: 145 kB / 446.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.3383, allocations: 207.1 kB / 446.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.3384, allocations: 37.7 kB / 447 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.3386, allocations: 145.8 kB / 447.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/0.3389, allocations: 202.3 kB / 447.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004445/0.3393, allocations: 110.7 kB / 447.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.3396, allocations: 347.2 kB / 447.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002628/0.3422, allocations: 0.6227 MB / 448.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002777/0.345, allocations: 0.8003 MB / 449.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005063/0.35, allocations: 1.256 MB / 450.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/0.3501, allocations: 11.94 kB / 450.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006159/0.3562, allocations: 1.415 MB / 451.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.3563, allocations: 8 kB / 451.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/0.3563, allocations: 4 kB / 451.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.698e-05/0.3563, allocations: 12 kB / 451.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/0.3583, allocations: 203.7 kB / 452.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.06e-05/0.3584, allocations: 15.88 kB / 452.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.3598, allocations: 107.8 kB / 452.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.3599, allocations: 28 kB / 452.2 MB, free: 2.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.000522/0.3604, allocations: 181.6 kB / 452.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005151/0.361, allocations: 149.7 kB / 452.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002073/0.3612, allocations: 67.28 kB / 452.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.3612, allocations: 8 kB / 452.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.3612, allocations: 3.938 kB / 452.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.3612, allocations: 11.98 kB / 452.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007305/0.3685, allocations: 1.91 MB / 454.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-05/0.3685, allocations: 12 kB / 454.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.3697, allocations: 183.7 kB / 454.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.844e-05/0.3698, allocations: 16 kB / 454.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-05/0.3699, allocations: 24.31 kB / 454.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-05/0.3699, allocations: 27.92 kB / 454.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.792e-05/0.3699, allocations: 15.94 kB / 454.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005159/0.3751, allocations: 1.566 MB / 456.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004051/0.3755, allocations: 87.69 kB / 456.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.3756, allocations: 35.86 kB / 456.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009589/0.3765, allocations: 75.98 kB / 456.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003146/0.3769, allocations: 103.6 kB / 456.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.273e-05/0.3769, allocations: 35.98 kB / 456.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.3772, allocations: 152.3 kB / 456.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3772, allocations: 0 / 456.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001161/0.3783, allocations: 124 kB / 457 MB, free: 13.36 MB / 366.1 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.0002899/0.3786, allocations: 131 kB / 457.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004584/0.3832, allocations: 1.047 MB / 458.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.3832, allocations: 4.125 kB / 458.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.3847, allocations: 341.8 kB / 458.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.3861, allocations: 131.5 kB / 458.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.3899, allocations: 1.206 MB / 459.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.3902, allocations: 211.3 kB / 460 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004663/0.3907, allocations: 39.38 kB / 460.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3907, allocations: 4 kB / 460.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Templates: time 0.01742/0.4081, allocations: 7.317 MB / 467.4 MB, free: 2.762 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.753147467970848]