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.000974/0.000974, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 227.2 MB / 245 MB, free: 5.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008399/0.0008399, allocations: 98.84 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002542, allocations: 8 kB / 357.9 MB, free: 9.344 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1786, allocations: 51.47 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08508/0.2637, allocations: 81.84 MB / 491.2 MB, free: 8.762 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.2639, allocations: 71.95 kB / 491.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01945/0.2834, allocations: 7.363 MB / 498.7 MB, free: 1.324 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2834, allocations: 4 kB / 498.7 MB, free: 1.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.2835, allocations: 4 kB / 498.7 MB, free: 1.316 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.0009925/0.2845, allocations: 0.6468 MB / 499.3 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.2845, allocations: 11.97 kB / 499.3 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.299e-05/0.2846, allocations: 43.53 kB / 499.4 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.285, allocations: 297.9 kB / 499.7 MB, free: 236 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.2851, allocations: 145.7 kB / 499.8 MB, free: 72 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.2852, allocations: 32 kB / 499.8 MB, free: 40 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.2863, allocations: 0.5661 MB / 0.4887 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.2863, allocations: 7.984 kB / 0.4887 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.2864, allocations: 16 kB / 0.4887 GB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.2864, allocations: 8 kB / 0.4887 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.2876, allocations: 0.5464 MB / 0.4893 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.289, allocations: 1.03 MB / 0.4903 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.2904, allocations: 0.5066 MB / 0.4908 GB, free: 13.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.2904, allocations: 12.17 kB / 0.4908 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.2905, allocations: 50.44 kB / 0.4908 GB, free: 13.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.532e-06/0.2905, allocations: 0 / 0.4908 GB, free: 13.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03917/0.3296, allocations: 6.8 MB / 0.4975 GB, free: 6.344 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/0.3298, allocations: 156.9 kB / 0.4976 GB, free: 6.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/0.33, allocations: 241.6 kB / 0.4978 GB, free: 5.922 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.679e-05/0.3301, allocations: 37.7 kB / 0.4979 GB, free: 5.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.3302, allocations: 145.6 kB / 0.498 GB, free: 5.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.3304, allocations: 189.3 kB / 0.4982 GB, free: 5.543 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.3304, allocations: 16 kB / 0.4982 GB, free: 5.527 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3306, allocations: 342.8 kB / 0.4985 GB, free: 5.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.332, allocations: 0.6617 MB / 0.4992 GB, free: 4.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.3336, allocations: 0.8355 MB / 0.5 GB, free: 3.605 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.335, allocations: 0.6112 MB / 0.5006 GB, free: 2.992 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.335, allocations: 4 kB / 0.5006 GB, free: 2.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003256/0.3383, allocations: 1.483 MB / 0.502 GB, free: 1.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3383, allocations: 8 kB / 0.502 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3384, allocations: 4.375 kB / 0.5021 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3384, allocations: 16.12 kB / 0.5021 GB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.3397, allocations: 219.7 kB / 0.5023 GB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.3397, allocations: 15.94 kB / 0.5023 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009323/0.3406, allocations: 135.6 kB / 0.5024 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.01e-05/0.3407, allocations: 32.3 kB / 0.5025 GB, free: 1.078 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.0002935/0.341, allocations: 189.6 kB / 0.5026 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/0.3413, allocations: 161 kB / 0.5028 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.3415, allocations: 67.61 kB / 0.5028 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3415, allocations: 8 kB / 0.5029 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.3415, allocations: 4 kB / 0.5029 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3415, allocations: 7.922 kB / 0.5029 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1529/0.4945, allocations: 2.317 MB / 0.5051 GB, free: 96.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.233e-05/0.4946, allocations: 10.92 kB / 0.5051 GB, free: 96.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007985/0.4954, allocations: 205.6 kB / 0.5053 GB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.032e-05/0.4954, allocations: 15.09 kB / 0.5054 GB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.894e-05/0.4955, allocations: 25.3 kB / 0.5054 GB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.494e-05/0.4955, allocations: 23.56 kB / 0.5054 GB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/0.4955, allocations: 18.38 kB / 0.5054 GB, free: 96.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00311/0.4986, allocations: 2.196 MB / 0.5076 GB, free: 95.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.4989, allocations: 184 kB / 0.5077 GB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/0.4989, allocations: 26.98 kB / 0.5078 GB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005989/0.4996, allocations: 101.4 kB / 0.5079 GB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.4998, allocations: 102.8 kB / 0.508 GB, free: 95.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.168e-05/0.4998, allocations: 30.31 kB / 0.508 GB, free: 95.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001664/0.5, allocations: 194 kB / 0.5082 GB, free: 95.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5, allocations: 1.875 kB / 0.5082 GB, free: 95.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006723/0.5007, allocations: 128.9 kB / 0.5083 GB, free: 95.43 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.0001543/0.5008, allocations: 143.4 kB / 0.5084 GB, free: 95.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.5036, allocations: 1.204 MB / 0.5096 GB, free: 95.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.5036, allocations: 2.594 kB / 0.5096 GB, free: 95.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008542/0.5045, allocations: 384.8 kB / 0.51 GB, free: 94.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005844/0.5051, allocations: 138 kB / 0.5101 GB, free: 94.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.507, allocations: 1.412 MB / 0.5115 GB, free: 93.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.5072, allocations: 0.8429 MB / 0.5123 GB, free: 93.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005623/0.5078, allocations: 85.08 kB / 0.5124 GB, free: 93.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.5081, allocations: 48.47 kB / 0.5124 GB, free: 93.16 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5081, allocations: 0 / 0.5124 GB, free: 93.16 MB / 378.7 MB Notification: Performance of Templates: time 0.009892/0.518, allocations: 7.547 MB / 0.5198 GB, free: 89.52 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