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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 198.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 94.47 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.306e-05/1.283e-05, allocations: 0 / 343.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 51.48 MB / 395.2 MB, free: 4.812 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.4378, allocations: 79.5 MB / 474.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.4381, allocations: 75.69 kB / 474.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01498/0.4531, allocations: 5.64 MB / 480.4 MB, free: 8.906 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4531, allocations: 192 / 480.4 MB, free: 8.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.4532, allocations: 7.938 kB / 480.4 MB, free: 8.898 MB / 346.7 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.0008456/0.454, allocations: 0.5421 MB / 480.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.4541, allocations: 8.031 kB / 480.9 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.621e-05/0.4541, allocations: 31.72 kB / 481 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.4544, allocations: 243.6 kB / 481.2 MB, free: 8.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.4546, allocations: 129.8 kB / 481.3 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/0.4546, allocations: 16 kB / 481.3 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005334/0.4552, allocations: 380.4 kB / 481.7 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00041/0.4556, allocations: 278.7 kB / 482 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4556, allocations: 3.984 kB / 482 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/0.4557, allocations: 0 / 482 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.4557, allocations: 4 kB / 482 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.4571, allocations: 0.9814 MB / 483 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/0.4576, allocations: 244.8 kB / 483.2 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.4578, allocations: 118.5 kB / 483.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.4579, allocations: 0 / 483.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.458e-05/0.4579, allocations: 42.19 kB / 483.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.272e-06/0.4579, allocations: 3.375 kB / 483.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.006332/0.4642, allocations: 2.971 MB / 486.3 MB, free: 3.887 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.309e-05/0.4643, allocations: 55.84 kB / 486.4 MB, free: 3.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.4644, allocations: 178 kB / 486.6 MB, free: 3.664 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.551e-05/0.4645, allocations: 29.08 kB / 486.6 MB, free: 3.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.89e-05/0.4645, allocations: 147.2 kB / 486.7 MB, free: 3.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.833e-05/0.4646, allocations: 169.5 kB / 486.9 MB, free: 3.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/0.4647, allocations: 0 / 486.9 MB, free: 3.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.774e-05/0.4648, allocations: 345 kB / 487.2 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.4651, allocations: 316.2 kB / 487.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003821/0.4655, allocations: 373.5 kB / 487.9 MB, free: 2.645 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.4658, allocations: 251.5 kB / 488.2 MB, free: 2.508 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4658, allocations: 4 kB / 488.2 MB, free: 2.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008445/0.4667, allocations: 0.6739 MB / 488.8 MB, free: 2.078 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4667, allocations: 11.95 kB / 488.9 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.4667, allocations: 0 / 488.9 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.4668, allocations: 4 kB / 488.9 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009625/0.4677, allocations: 187.3 kB / 489 MB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4678, allocations: 4 kB / 489 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006862/0.4685, allocations: 102.9 kB / 489.1 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.4685, allocations: 19.06 kB / 489.2 MB, free: 1.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001371/0.4687, allocations: 116 kB / 489.3 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.014e-05/0.4687, allocations: 23.72 kB / 489.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.4688, allocations: 48.16 kB / 489.4 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4689, allocations: 8 kB / 489.4 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4689, allocations: 0 / 489.4 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4689, allocations: 3.984 kB / 489.4 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002452/0.4713, allocations: 1.617 MB / 491 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4714, allocations: 8 kB / 491 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006445/0.472, allocations: 167.5 kB / 491.2 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.295e-05/0.472, allocations: 12 kB / 491.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.4721, allocations: 12 kB / 491.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-05/0.4721, allocations: 17.81 kB / 491.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.4721, allocations: 11.94 kB / 491.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.4734, allocations: 1.292 MB / 492.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.4736, allocations: 145.1 kB / 492.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.4737, allocations: 16 kB / 492.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005678/0.4743, allocations: 87.91 kB / 492.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.4745, allocations: 97.31 kB / 492.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.4745, allocations: 27.56 kB / 492.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001151/0.4746, allocations: 142.5 kB / 493 MB, free: 14.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4746, allocations: 0 / 493 MB, free: 14.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000469/0.4751, allocations: 80 kB / 493.1 MB, free: 13.99 MB / 362.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001989/0.4753, allocations: 122.5 kB / 493.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008425/0.4762, allocations: 0.5869 MB / 493.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.4762, allocations: 256 / 493.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003465/0.4765, allocations: 208.2 kB / 494 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.477, allocations: 43.12 kB / 494 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.4786, allocations: 0.8085 MB / 494.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.479, allocations: 0.7921 MB / 495.6 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004809/0.4795, allocations: 79.23 kB / 495.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.4797, allocations: 31.44 kB / 495.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4797, allocations: 0 / 495.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of Templates: time 0.008657/0.4883, allocations: 4.972 MB / 0.489 GB, free: 6.695 MB / 362.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches