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.001508/0.001508, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0007958/0.0007959, allocations: 87.73 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.275e-05, allocations: 3.984 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/0.08971, allocations: 50.41 MB / 394.2 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2842/0.3739, allocations: 80.96 MB / 475.2 MB, free: 6.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.3741, allocations: 71.95 kB / 475.3 MB, free: 6.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02034/0.3945, allocations: 7.297 MB / 482.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.3945, allocations: 4 kB / 482.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.3946, allocations: 4 kB / 482.6 MB, free: 15.2 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.0009915/0.3956, allocations: 0.608 MB / 483.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3956, allocations: 8.031 kB / 483.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.706e-05/0.3957, allocations: 39.62 kB / 483.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003876/0.3961, allocations: 293.9 kB / 483.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.3963, allocations: 145.8 kB / 483.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/0.3964, allocations: 32 kB / 483.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000822/0.3972, allocations: 0.513 MB / 484.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.3972, allocations: 7.906 kB / 484.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.3973, allocations: 8 kB / 484.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3973, allocations: 8 kB / 484.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006422/0.3979, allocations: 403.8 kB / 484.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.3994, allocations: 1.046 MB / 485.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008738/0.4003, allocations: 422.8 kB / 486.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.4006, allocations: 203.8 kB / 486.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.975e-05/0.4006, allocations: 11.86 kB / 486.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.4007, allocations: 42.55 kB / 486.3 MB, free: 11.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.643e-06/0.4007, allocations: 3.938 kB / 486.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007774/0.4085, allocations: 2.124 MB / 488.5 MB, free: 9.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.4086, allocations: 149 kB / 488.6 MB, free: 8.852 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.4088, allocations: 234.9 kB / 488.8 MB, free: 8.617 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.4089, allocations: 33.7 kB / 488.9 MB, free: 8.578 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.944e-05/0.409, allocations: 149.5 kB / 489 MB, free: 8.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.4092, allocations: 193.2 kB / 489.2 MB, free: 8.234 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.596e-05/0.4093, allocations: 19.94 kB / 489.2 MB, free: 8.215 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4094, allocations: 350.8 kB / 489.6 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007441/0.4101, allocations: 477.5 kB / 490 MB, free: 7.398 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008417/0.411, allocations: 0.651 MB / 490.7 MB, free: 6.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007108/0.4117, allocations: 427.1 kB / 491.1 MB, free: 6.254 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.4117, allocations: 4 kB / 491.1 MB, free: 6.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001851/0.4136, allocations: 1.104 MB / 492.2 MB, free: 5.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.4136, allocations: 4 kB / 492.2 MB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4136, allocations: 8 kB / 492.2 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.4137, allocations: 8 kB / 492.2 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.415, allocations: 236.3 kB / 492.5 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/0.4151, allocations: 11.94 kB / 492.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009663/0.416, allocations: 123.7 kB / 492.6 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/0.4161, allocations: 28 kB / 492.6 MB, free: 4.73 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.0002334/0.4164, allocations: 156.7 kB / 492.8 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002905/0.4167, allocations: 157.1 kB / 492.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.4169, allocations: 67.39 kB / 493 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.4169, allocations: 8 kB / 493 MB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.4169, allocations: 0 / 493 MB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4169, allocations: 3.984 kB / 493 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003553/0.4205, allocations: 2.039 MB / 495 MB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.4205, allocations: 16 kB / 495.1 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/0.4213, allocations: 204.1 kB / 495.3 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.485e-05/0.4213, allocations: 16 kB / 495.3 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-05/0.4214, allocations: 28 kB / 495.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-05/0.4214, allocations: 19.92 kB / 495.3 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/0.4214, allocations: 15.94 kB / 495.3 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.424, allocations: 1.756 MB / 497.1 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/0.4243, allocations: 184.5 kB / 497.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.4245, allocations: 28.09 kB / 497.3 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.4256, allocations: 103.9 kB / 497.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002988/0.4259, allocations: 103.7 kB / 497.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.33e-05/0.426, allocations: 35.94 kB / 497.5 MB, free: 15.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003155/0.4264, allocations: 191.1 kB / 497.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4264, allocations: 0 / 497.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001168/0.4276, allocations: 128 kB / 497.8 MB, free: 14.86 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 () * 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.0002582/0.4278, allocations: 146.9 kB / 498 MB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.4301, allocations: 0.8608 MB / 498.8 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.4301, allocations: 4 kB / 498.9 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007281/0.4308, allocations: 233.7 kB / 499.1 MB, free: 13.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009753/0.4318, allocations: 133.9 kB / 499.2 MB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.4345, allocations: 1.023 MB / 0.4885 GB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.435, allocations: 0.8405 MB / 0.4893 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001028/0.4361, allocations: 92.14 kB / 0.4894 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004432/0.4365, allocations: 39.44 kB / 0.4895 GB, free: 11.3 MB / 378.7 MB Notification: Performance of SimCode: time 7.62e-07/0.4366, allocations: 0 / 0.4895 GB, free: 11.3 MB / 378.7 MB Notification: Performance of Templates: time 0.02062/0.4572, allocations: 7.539 MB / 0.4968 GB, free: 3.777 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