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.001065/0.001066, allocations: 205.6 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008188/0.0008186, allocations: 104.1 kB / 297.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003132, allocations: 4 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3078, allocations: 51.29 MB / 409.4 MB, free: 27.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.449, allocations: 81.8 MB / 491.2 MB, free: 9.738 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.4493, allocations: 71.95 kB / 491.2 MB, free: 9.668 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02972/0.4791, allocations: 7.36 MB / 498.6 MB, free: 2.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4791, allocations: 0 / 498.6 MB, free: 2.305 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.61e-05/0.4792, allocations: 8 kB / 498.6 MB, free: 2.297 MB / 362.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.00182/0.481, allocations: 0.6353 MB / 499.2 MB, free: 1.609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.4811, allocations: 12.03 kB / 499.2 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.4813, allocations: 48.47 kB / 499.3 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006317/0.4819, allocations: 307.1 kB / 499.6 MB, free: 1.211 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002959/0.4822, allocations: 146.3 kB / 499.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.4824, allocations: 36.28 kB / 499.8 MB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.4842, allocations: 0.5739 MB / 0.4886 GB, free: 428 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.573e-05/0.4843, allocations: 7.938 kB / 0.4886 GB, free: 420 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.984e-05/0.4843, allocations: 12 kB / 0.4886 GB, free: 408 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.4844, allocations: 8 kB / 0.4886 GB, free: 400 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002193/0.4866, allocations: 0.5465 MB / 0.4892 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.4889, allocations: 1.029 MB / 0.4902 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.491, allocations: 0.5033 MB / 0.4907 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000984/0.4921, allocations: 283.2 kB / 0.4909 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.266e-05/0.4921, allocations: 12.14 kB / 0.491 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.4922, allocations: 42.56 kB / 0.491 GB, free: 13.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 4.398e-06/0.4922, allocations: 0 / 0.491 GB, free: 13.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.05581/0.548, allocations: 6.803 MB / 0.4976 GB, free: 7.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/0.5482, allocations: 148.9 kB / 0.4978 GB, free: 6.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005396/0.5488, allocations: 274.4 kB / 0.498 GB, free: 6.578 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.549, allocations: 41.7 kB / 0.4981 GB, free: 6.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.5491, allocations: 141.5 kB / 0.4982 GB, free: 6.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000327/0.5495, allocations: 193.3 kB / 0.4984 GB, free: 6.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.66e-05/0.5496, allocations: 12 kB / 0.4984 GB, free: 6.188 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.5498, allocations: 347.2 kB / 0.4987 GB, free: 5.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00258/0.5524, allocations: 0.6578 MB / 0.4994 GB, free: 5.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002768/0.5551, allocations: 0.8356 MB / 0.5002 GB, free: 4.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005087/0.5603, allocations: 1.339 MB / 0.5015 GB, free: 2.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.5603, allocations: 7.938 kB / 0.5015 GB, free: 2.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.005725/0.566, allocations: 1.475 MB / 0.503 GB, free: 1.367 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.5661, allocations: 8 kB / 0.503 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.5661, allocations: 4 kB / 0.503 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.3e-05/0.5662, allocations: 12 kB / 0.503 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002069/0.5682, allocations: 227.8 kB / 0.5032 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.058e-05/0.5683, allocations: 15.92 kB / 0.5032 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.5698, allocations: 127.7 kB / 0.5033 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.5699, allocations: 31.98 kB / 0.5034 GB, free: 0.9492 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004736/0.5704, allocations: 189.6 kB / 0.5036 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005293/0.571, allocations: 161.1 kB / 0.5037 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.5712, allocations: 67.61 kB / 0.5038 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5712, allocations: 8 kB / 0.5038 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.5713, allocations: 11.88 kB / 0.5038 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.5713, allocations: 3.984 kB / 0.5038 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.234/0.8053, allocations: 2.317 MB / 0.5061 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.8053, allocations: 11 kB / 0.5061 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007769/0.8061, allocations: 203.7 kB / 0.5063 GB, free: 97.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.655e-05/0.8061, allocations: 14.22 kB / 0.5063 GB, free: 97.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.082e-05/0.8062, allocations: 30.47 kB / 0.5063 GB, free: 97.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.585e-05/0.8062, allocations: 20.02 kB / 0.5063 GB, free: 97.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.8062, allocations: 16.75 kB / 0.5063 GB, free: 97.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003114/0.8093, allocations: 1.683 MB / 0.508 GB, free: 97.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.8096, allocations: 183.2 kB / 0.5082 GB, free: 97.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/0.8097, allocations: 28.34 kB / 0.5082 GB, free: 97.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006019/0.8103, allocations: 96.52 kB / 0.5083 GB, free: 97.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.8106, allocations: 113.7 kB / 0.5084 GB, free: 97.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.406e-05/0.8107, allocations: 31.56 kB / 0.5084 GB, free: 97.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001957/0.8109, allocations: 189.7 kB / 0.5086 GB, free: 97.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8109, allocations: 0 / 0.5086 GB, free: 97.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007391/0.8116, allocations: 132.9 kB / 0.5087 GB, free: 97.08 MB / 378.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 (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.0001907/0.8118, allocations: 139 kB / 0.5089 GB, free: 96.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.8145, allocations: 1.21 MB / 0.51 GB, free: 96.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.8145, allocations: 3.281 kB / 0.51 GB, free: 96.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008601/0.8154, allocations: 386 kB / 0.5104 GB, free: 96.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.8165, allocations: 156.5 kB / 0.5106 GB, free: 96.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.8185, allocations: 1.411 MB / 0.5119 GB, free: 95.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.8188, allocations: 0.8324 MB / 0.5127 GB, free: 94.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005878/0.8194, allocations: 92.14 kB / 0.5128 GB, free: 94.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.8196, allocations: 42.59 kB / 0.5129 GB, free: 94.79 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.8196, allocations: 3.938 kB / 0.5129 GB, free: 94.79 MB / 378.7 MB Notification: Performance of Templates: time 0.009772/0.8294, allocations: 7.578 MB / 0.5203 GB, free: 90.84 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/jenkins1/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