Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009378/0.0009379, allocations: 175.5 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.298/1.298, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.0008391/0.0008391, allocations: 87.06 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.825e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08708/0.08713, allocations: 50.41 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2805/0.3677, allocations: 80.84 MB / 475.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3679, allocations: 67.97 kB / 475.1 MB, free: 6.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02109/0.389, allocations: 7.235 MB / 482.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3891, allocations: 0 / 482.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.3891, allocations: 7.984 kB / 482.4 MB, free: 15.41 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001006/0.3901, allocations: 0.5807 MB / 483 MB, free: 14.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3902, allocations: 8.031 kB / 483 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.87e-05/0.3903, allocations: 35.62 kB / 483 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.3906, allocations: 259.2 kB / 483.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.3909, allocations: 153.8 kB / 483.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.3909, allocations: 28 kB / 483.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008355/0.3918, allocations: 0.5091 MB / 483.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.3918, allocations: 0 / 483.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.3918, allocations: 12 kB / 484 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3919, allocations: 4 kB / 484 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006461/0.3925, allocations: 415.7 kB / 484.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.394, allocations: 1.034 MB / 485.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008713/0.3948, allocations: 414.8 kB / 485.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.3951, allocations: 207.8 kB / 486 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.3952, allocations: 12 kB / 486 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.3952, allocations: 50.48 kB / 486.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.3952, allocations: 0 / 486.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007768/0.403, allocations: 2.071 MB / 488.1 MB, free: 9.367 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.405e-05/0.4031, allocations: 149 kB / 488.3 MB, free: 9.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.4033, allocations: 186.6 kB / 488.5 MB, free: 9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.528e-05/0.4034, allocations: 33.7 kB / 488.5 MB, free: 8.961 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.4035, allocations: 153.4 kB / 488.7 MB, free: 8.805 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.4037, allocations: 189.3 kB / 488.8 MB, free: 8.617 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.4038, allocations: 12 kB / 488.9 MB, free: 8.605 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4039, allocations: 350.7 kB / 489.2 MB, free: 8.254 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007462/0.4046, allocations: 481.5 kB / 489.7 MB, free: 7.785 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008545/0.4055, allocations: 0.6463 MB / 490.3 MB, free: 7.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000708/0.4062, allocations: 435 kB / 490.7 MB, free: 6.637 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4062, allocations: 0 / 490.7 MB, free: 6.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001783/0.408, allocations: 1.1 MB / 491.8 MB, free: 5.531 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.408, allocations: 8 kB / 491.8 MB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.408, allocations: 4 kB / 491.8 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.4081, allocations: 12.72 kB / 491.9 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.4095, allocations: 231.6 kB / 492.1 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.4095, allocations: 8 kB / 492.1 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009709/0.4105, allocations: 127.7 kB / 492.2 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.427e-05/0.4106, allocations: 28 kB / 492.2 MB, free: 5.121 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.000226/0.4108, allocations: 156.8 kB / 492.4 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.4111, allocations: 149.2 kB / 492.5 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001933/0.4113, allocations: 63.08 kB / 492.6 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.535e-06/0.4113, allocations: 8 kB / 492.6 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4113, allocations: 0 / 492.6 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.4113, allocations: 3.984 kB / 492.6 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/0.415, allocations: 2.023 MB / 494.6 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.415, allocations: 12 kB / 494.7 MB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/0.4158, allocations: 200.2 kB / 494.8 MB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.687e-05/0.4158, allocations: 16 kB / 494.9 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.043e-05/0.4159, allocations: 27.98 kB / 494.9 MB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.606e-05/0.4159, allocations: 19.94 kB / 494.9 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/0.4159, allocations: 15.94 kB / 494.9 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.4176, allocations: 1.76 MB / 496.7 MB, free: 60 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.4178, allocations: 164.6 kB / 496.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.4179, allocations: 27.98 kB / 496.9 MB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.4185, allocations: 95.94 kB / 497 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.4187, allocations: 107.7 kB / 497.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.4188, allocations: 31.95 kB / 497.1 MB, free: 15.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.4189, allocations: 145.2 kB / 497.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4189, allocations: 0 / 497.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006097/0.4195, allocations: 124 kB / 497.4 MB, free: 15.36 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.0001657/0.4197, allocations: 142.9 kB / 497.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.421, allocations: 0.8763 MB / 498.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.421, allocations: 4.375 kB / 498.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.4215, allocations: 229.6 kB / 498.6 MB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005629/0.422, allocations: 128.8 kB / 498.7 MB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.4237, allocations: 0.9691 MB / 499.7 MB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.4241, allocations: 0.8245 MB / 0.4888 GB, free: 12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000602/0.4247, allocations: 91.36 kB / 0.4889 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/0.425, allocations: 39.44 kB / 0.4889 GB, free: 11.87 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.425, allocations: 0 / 0.4889 GB, free: 11.87 MB / 378.7 MB Notification: Performance of Templates: time 0.01153/0.4365, allocations: 7.341 MB / 0.4961 GB, free: 4.547 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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,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,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,subSample1.factor,super.factor,super.inferFactor,time