Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00114/0.001139, allocations: 118.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001116, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3023, allocations: 50.56 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003412/0.3058, allocations: 2.128 MB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.307, allocations: 0.6899 MB / 412.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3071, allocations: 0 / 412.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003056/0.3075, allocations: 47.64 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.3076, allocations: 47.62 kB / 412.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.308, allocations: 131.8 kB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.3084, allocations: 343.2 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.3086, allocations: 72.31 kB / 412.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.3089, allocations: 155.5 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.3091, allocations: 151.4 kB / 413 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.3092, allocations: 28 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.295e-05/0.3092, allocations: 35.94 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.3093, allocations: 79.8 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.3095, allocations: 119.4 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.3098, allocations: 282.9 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3098, allocations: 8 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3098, allocations: 0 / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3098, allocations: 0 / 413.5 MB, free: 13.29 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001065/0.3109, allocations: 0.5854 MB / 414.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.3109, allocations: 8.031 kB / 414.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.035e-05/0.311, allocations: 32.66 kB / 414.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.3114, allocations: 252.1 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.3116, allocations: 134.1 kB / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.464e-05/0.3116, allocations: 31.83 kB / 414.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000745/0.3124, allocations: 371.5 kB / 414.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3124, allocations: 0 / 414.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.3125, allocations: 8 kB / 414.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-06/0.3125, allocations: 8 kB / 414.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.3137, allocations: 497.9 kB / 415.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.3153, allocations: 0.9955 MB / 416.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3163, allocations: 331.1 kB / 416.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.3168, allocations: 185.2 kB / 416.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.3169, allocations: 4.172 kB / 416.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.3169, allocations: 42.78 kB / 417 MB, free: 9.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.044e-06/0.3169, allocations: 0 / 417 MB, free: 9.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02435/0.3413, allocations: 5.794 MB / 422.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.3414, allocations: 59.84 kB / 422.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000282/0.3416, allocations: 202.2 kB / 423 MB, free: 3.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.035e-05/0.3417, allocations: 37.7 kB / 423.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.3418, allocations: 144.7 kB / 423.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.342, allocations: 173.5 kB / 423.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.3422, allocations: 94.16 kB / 423.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3424, allocations: 338.8 kB / 423.8 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3435, allocations: 468.8 kB / 424.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.3447, allocations: 0.5099 MB / 424.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.3467, allocations: 0.811 MB / 425.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3467, allocations: 0 / 425.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00244/0.3491, allocations: 0.9867 MB / 426.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3492, allocations: 11.94 kB / 426.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3492, allocations: 0 / 426.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3492, allocations: 4 kB / 426.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008865/0.3501, allocations: 167.7 kB / 426.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3501, allocations: 4 kB / 426.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005879/0.3507, allocations: 87.91 kB / 426.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/0.3508, allocations: 19.98 kB / 426.8 MB, free: 15.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002132/0.351, allocations: 161.6 kB / 427 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.3511, allocations: 31.66 kB / 427 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.3512, allocations: 47.31 kB / 427.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.3512, allocations: 4 kB / 427.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3512, allocations: 0 / 427.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3512, allocations: 7.984 kB / 427.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.3549, allocations: 1.882 MB / 429 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.3549, allocations: 8 kB / 429 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000577/0.3555, allocations: 143.8 kB / 429.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/0.3555, allocations: 19.88 kB / 429.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-05/0.3556, allocations: 20.44 kB / 429.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-05/0.3556, allocations: 19.92 kB / 429.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/0.3556, allocations: 15.94 kB / 429.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.358, allocations: 1.209 MB / 430.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.3582, allocations: 152.8 kB / 430.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.3583, allocations: 23.98 kB / 430.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004621/0.3588, allocations: 67.92 kB / 430.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.3589, allocations: 91.77 kB / 430.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.071e-05/0.359, allocations: 27.98 kB / 430.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001598/0.3592, allocations: 152.3 kB / 430.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3592, allocations: 0 / 430.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005166/0.3597, allocations: 96 kB / 431 MB, free: 11.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0002147/0.3599, allocations: 123.1 kB / 431.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.362, allocations: 0.8718 MB / 432 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.362, allocations: 256 / 432 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008363/0.3629, allocations: 333.5 kB / 432.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005833/0.3635, allocations: 55.92 kB / 432.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.3655, allocations: 1.001 MB / 433.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.3659, allocations: 0.7878 MB / 434.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003613/0.3663, allocations: 83.19 kB / 434.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001984/0.3665, allocations: 27.44 kB / 434.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3665, allocations: 4 kB / 434.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of Templates: time 0.009668/0.3762, allocations: 5.775 MB / 440.1 MB, free: 1.898 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches