Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009384/0.0009384, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008672/0.0008672, allocations: 86 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.84e-05/1.816e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 50.43 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3389/0.4416, allocations: 80.29 MB / 467.7 MB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.442, allocations: 73.78 kB / 467.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02879/0.4708, allocations: 7.25 MB / 475.1 MB, free: 7.203 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4709, allocations: 0 / 475.1 MB, free: 7.203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.311e-05/0.4709, allocations: 8 kB / 475.1 MB, free: 7.195 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.001488/0.4724, allocations: 0.608 MB / 475.7 MB, free: 6.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.4725, allocations: 12.03 kB / 475.7 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.4726, allocations: 39.62 kB / 475.7 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.4731, allocations: 293.9 kB / 476 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/0.4734, allocations: 137.8 kB / 476.2 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.16e-05/0.4735, allocations: 16 kB / 476.2 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001045/0.4746, allocations: 413.4 kB / 476.6 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.4757, allocations: 463.8 kB / 477 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.4758, allocations: 7.906 kB / 477 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.4758, allocations: 0 / 477 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.4759, allocations: 8 kB / 477 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.478, allocations: 0.9876 MB / 478 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.4793, allocations: 388.1 kB / 478.4 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004497/0.4798, allocations: 202.4 kB / 478.6 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.706e-05/0.4799, allocations: 4 kB / 478.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/0.4799, allocations: 51.27 kB / 478.7 MB, free: 3.359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.036e-06/0.4799, allocations: 0 / 478.7 MB, free: 3.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01127/0.4912, allocations: 2.043 MB / 480.7 MB, free: 1.305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.4914, allocations: 144.9 kB / 480.8 MB, free: 1.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.4918, allocations: 222.1 kB / 481.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.4919, allocations: 29.7 kB / 481.1 MB, free: 0.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.4921, allocations: 145.5 kB / 481.2 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/0.4923, allocations: 185.2 kB / 481.4 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-05/0.4924, allocations: 96 / 481.4 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.4926, allocations: 358.7 kB / 481.8 MB, free: 192 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.4937, allocations: 465.6 kB / 482.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4949, allocations: 0.6291 MB / 482.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009863/0.4959, allocations: 418 kB / 483.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.496, allocations: 4 kB / 483.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002475/0.4984, allocations: 1.038 MB / 484.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.4985, allocations: 4 kB / 484.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.4985, allocations: 8 kB / 484.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.024e-05/0.4986, allocations: 15.89 kB / 484.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/0.5007, allocations: 232.1 kB / 484.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.121e-05/0.5007, allocations: 11.94 kB / 484.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.5022, allocations: 111.7 kB / 484.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.5023, allocations: 28 kB / 484.7 MB, free: 13.16 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.0003462/0.5027, allocations: 120.9 kB / 484.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004608/0.5032, allocations: 149.1 kB / 485 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002681/0.5035, allocations: 55.39 kB / 485 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.5035, allocations: 8 kB / 485 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/0.5035, allocations: 7.953 kB / 485 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.5035, allocations: 7.922 kB / 485 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005471/0.509, allocations: 1.907 MB / 486.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.5091, allocations: 8 kB / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.5104, allocations: 211.9 kB / 487.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.503e-05/0.5104, allocations: 12 kB / 487.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.5105, allocations: 20 kB / 487.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.411e-05/0.5105, allocations: 19.92 kB / 487.2 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-05/0.5105, allocations: 15.94 kB / 487.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.5131, allocations: 1.714 MB / 488.9 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003356/0.5135, allocations: 180.5 kB / 489.1 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.5136, allocations: 15.98 kB / 489.1 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009859/0.5146, allocations: 87.98 kB / 489.2 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.5148, allocations: 107.7 kB / 489.3 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.581e-05/0.5149, allocations: 31.98 kB / 489.4 MB, free: 7.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002537/0.5152, allocations: 178 kB / 489.5 MB, free: 7.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5152, allocations: 0 / 489.5 MB, free: 7.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001208/0.5164, allocations: 104 kB / 489.6 MB, free: 7.605 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.0002774/0.5167, allocations: 130.9 kB / 489.8 MB, free: 7.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.5187, allocations: 0.8243 MB / 490.6 MB, free: 6.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.5188, allocations: 0 / 490.6 MB, free: 6.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006138/0.5194, allocations: 213.7 kB / 490.8 MB, free: 6.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000969/0.5204, allocations: 119.3 kB / 490.9 MB, free: 6.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.523, allocations: 0.9752 MB / 491.9 MB, free: 5.188 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.5235, allocations: 0.8366 MB / 492.7 MB, free: 4.328 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009732/0.5245, allocations: 96.14 kB / 492.8 MB, free: 4.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/0.5249, allocations: 35.44 kB / 492.9 MB, free: 4.199 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5249, allocations: 0 / 492.9 MB, free: 4.199 MB / 362.7 MB Notification: Performance of Templates: time 0.01853/0.5435, allocations: 7.388 MB / 0.4885 GB, free: 12.82 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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