Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001955/0.001955, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.617/1.617, allocations: 225.6 MB / 234.8 MB, free: 3.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009034/0.0009034, allocations: 97.75 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.655e-05/1.664e-05, allocations: 0 / 343.7 MB, free: 8.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 51.48 MB / 395.2 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3291/0.4327, allocations: 81.11 MB / 476.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.4329, allocations: 72.28 kB / 476.3 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01791/0.4509, allocations: 7.301 MB / 483.6 MB, free: 5.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4509, allocations: 4 kB / 483.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.4509, allocations: 11.98 kB / 483.7 MB, free: 5.926 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008348/0.4518, allocations: 0.6086 MB / 484.3 MB, free: 5.301 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.4518, allocations: 8.031 kB / 484.3 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.997e-05/0.4519, allocations: 47.53 kB / 484.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.4522, allocations: 288 kB / 484.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.4524, allocations: 133.2 kB / 484.7 MB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.4524, allocations: 23.61 kB / 484.7 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005393/0.4529, allocations: 410 kB / 485.1 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005803/0.4535, allocations: 460.1 kB / 485.6 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.4536, allocations: 0 / 485.6 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.4536, allocations: 7.922 kB / 485.6 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.4536, allocations: 15.98 kB / 485.6 MB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.4547, allocations: 0.9759 MB / 486.6 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007056/0.4555, allocations: 391 kB / 487 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.4557, allocations: 197.9 kB / 487.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-05/0.4557, allocations: 8 kB / 487.2 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.4558, allocations: 38.25 kB / 487.2 MB, free: 2.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.4558, allocations: 0.5625 kB / 487.2 MB, free: 2.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.006651/0.4624, allocations: 2.038 MB / 489.3 MB, free: 1.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.4625, allocations: 144.9 kB / 489.4 MB, free: 1.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.4627, allocations: 227.4 kB / 489.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.061e-05/0.4628, allocations: 29.64 kB / 489.6 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.4629, allocations: 138.9 kB / 489.8 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.463, allocations: 195.9 kB / 490 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.4631, allocations: 4 kB / 490 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.557e-05/0.4632, allocations: 344.9 kB / 490.3 MB, free: 272 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.4637, allocations: 465.2 kB / 490.8 MB, free: 56 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007948/0.4645, allocations: 0.6226 MB / 491.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00058/0.4651, allocations: 429.1 kB / 491.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4651, allocations: 0 / 491.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001487/0.4666, allocations: 1.037 MB / 492.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.4667, allocations: 8 kB / 492.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.4667, allocations: 4 kB / 492.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.4667, allocations: 15.98 kB / 492.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.468, allocations: 227.8 kB / 493.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.468, allocations: 11.94 kB / 493.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009291/0.469, allocations: 119.1 kB / 493.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.398e-05/0.4691, allocations: 25.38 kB / 493.3 MB, free: 14.36 MB / 362.7 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.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000216/0.4693, allocations: 124 kB / 493.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002678/0.4695, allocations: 146.5 kB / 493.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001651/0.4697, allocations: 62.02 kB / 493.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.4697, allocations: 8 kB / 493.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.4698, allocations: 0 / 493.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.4698, allocations: 3.984 kB / 493.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/0.4732, allocations: 1.916 MB / 495.5 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.4732, allocations: 12.88 kB / 495.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007582/0.474, allocations: 206.9 kB / 495.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.728e-05/0.474, allocations: 19.95 kB / 495.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.591e-05/0.4741, allocations: 12 kB / 495.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.344e-05/0.4741, allocations: 19.94 kB / 495.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/0.4741, allocations: 11.94 kB / 495.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.4757, allocations: 1.716 MB / 497.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.4759, allocations: 183.2 kB / 497.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.266e-05/0.476, allocations: 16 kB / 497.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000606/0.4766, allocations: 87.97 kB / 497.8 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.4768, allocations: 104.7 kB / 497.9 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/0.4769, allocations: 27 kB / 497.9 MB, free: 9.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001488/0.477, allocations: 187.9 kB / 498.1 MB, free: 9.727 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.477, allocations: 0 / 498.1 MB, free: 9.727 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006239/0.4777, allocations: 104 kB / 498.2 MB, free: 9.625 MB / 362.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 () * 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 (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.0001696/0.4779, allocations: 124.8 kB / 498.3 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.479, allocations: 0.8254 MB / 499.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.479, allocations: 0 / 499.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003769/0.4794, allocations: 216.5 kB / 499.3 MB, free: 8.891 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.48, allocations: 128.8 kB / 499.5 MB, free: 8.793 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.4817, allocations: 0.9614 MB / 0.4887 GB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.482, allocations: 0.8449 MB / 0.4895 GB, free: 6.934 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005637/0.4826, allocations: 104.1 kB / 0.4896 GB, free: 6.832 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.4829, allocations: 39.19 kB / 0.4897 GB, free: 6.797 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4829, allocations: 0 / 0.4897 GB, free: 6.797 MB / 362.7 MB Notification: Performance of Templates: time 0.01255/0.4955, allocations: 7.399 MB / 0.4969 GB, free: 15.46 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time