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.001281/0.001281, allocations: 177.1 kB / 8.35 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.364/1.364, 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.0008888/0.0008886, allocations: 103 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.178e-05/1.181e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09546, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4205/0.516, allocations: 80.17 MB / 467.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.5164, allocations: 71.95 kB / 467.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03456/0.5509, allocations: 7.181 MB / 474.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.551, allocations: 0 / 474.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.551, allocations: 8 kB / 474.9 MB, free: 7.438 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001606/0.5526, allocations: 0.5807 MB / 475.5 MB, free: 6.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.5527, allocations: 8.031 kB / 475.5 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.5529, allocations: 43.62 kB / 475.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/0.5534, allocations: 271.1 kB / 475.8 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002925/0.5537, allocations: 133.8 kB / 475.9 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.5538, allocations: 16 kB / 475.9 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001081/0.5549, allocations: 413.4 kB / 476.3 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.556, allocations: 463.8 kB / 476.8 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.556, allocations: 0 / 476.8 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.5561, allocations: 0 / 476.8 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.5561, allocations: 8 kB / 476.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.5584, allocations: 0.9642 MB / 477.8 MB, free: 4.363 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.5598, allocations: 404 kB / 478.1 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004623/0.5603, allocations: 199.9 kB / 478.3 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-05/0.5604, allocations: 4 kB / 478.3 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/0.5604, allocations: 46.42 kB / 478.4 MB, free: 3.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.306e-06/0.5605, allocations: 0 / 478.4 MB, free: 3.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01184/0.5723, allocations: 1.995 MB / 480.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.5725, allocations: 145 kB / 480.5 MB, free: 1.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.5728, allocations: 170.7 kB / 480.7 MB, free: 1.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.5729, allocations: 26.45 kB / 480.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.5731, allocations: 145.4 kB / 480.9 MB, free: 1.145 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002713/0.5733, allocations: 189.3 kB / 481 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.5735, allocations: 0 / 481 MB, free: 0.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.5736, allocations: 346.7 kB / 481.4 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.5748, allocations: 469.5 kB / 481.8 MB, free: 156 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.5762, allocations: 0.6292 MB / 482.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.5772, allocations: 418 kB / 482.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.5772, allocations: 96 / 482.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002717/0.58, allocations: 1.045 MB / 483.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.58, allocations: 8 kB / 483.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.58, allocations: 4 kB / 483.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.461e-05/0.5801, allocations: 11.95 kB / 484 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00204/0.5821, allocations: 231.9 kB / 484.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.5822, allocations: 8 kB / 484.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.5838, allocations: 111.7 kB / 484.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.5839, allocations: 32 kB / 484.3 MB, free: 13.58 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.0003584/0.5843, allocations: 120.7 kB / 484.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005107/0.5848, allocations: 137.2 kB / 484.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.5851, allocations: 59.39 kB / 484.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.5851, allocations: 8 kB / 484.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.5851, allocations: 3.953 kB / 484.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.5852, allocations: 7.984 kB / 484.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005838/0.591, allocations: 1.888 MB / 486.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/0.5911, allocations: 12 kB / 486.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001319/0.5924, allocations: 203.7 kB / 486.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.669e-05/0.5925, allocations: 16 kB / 486.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-05/0.5925, allocations: 12 kB / 486.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-05/0.5926, allocations: 19.94 kB / 486.8 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-05/0.5926, allocations: 19.94 kB / 486.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.5952, allocations: 1.713 MB / 488.5 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.5956, allocations: 164.8 kB / 488.7 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.5957, allocations: 15.98 kB / 488.7 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009945/0.5967, allocations: 91.91 kB / 488.8 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002793/0.597, allocations: 103.8 kB / 488.9 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.224e-05/0.5971, allocations: 39.98 kB / 488.9 MB, free: 8.344 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001806/0.5973, allocations: 141.2 kB / 489.1 MB, free: 8.207 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5973, allocations: 0 / 489.1 MB, free: 8.207 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001121/0.5984, allocations: 100 kB / 489.2 MB, free: 8.109 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.0002585/0.5987, allocations: 130.9 kB / 489.3 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.6008, allocations: 0.8209 MB / 490.1 MB, free: 7.152 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/0.6008, allocations: 4.062 kB / 490.1 MB, free: 7.148 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007213/0.6016, allocations: 221.6 kB / 490.3 MB, free: 6.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.6026, allocations: 97.61 kB / 490.4 MB, free: 6.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.606, allocations: 0.9288 MB / 491.4 MB, free: 5.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006561/0.6067, allocations: 0.8132 MB / 492.2 MB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00117/0.6078, allocations: 95.36 kB / 492.3 MB, free: 4.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004413/0.6083, allocations: 39.44 kB / 492.3 MB, free: 4.781 MB / 362.7 MB Notification: Performance of SimCode: time 1.193e-06/0.6083, allocations: 0 / 492.3 MB, free: 4.781 MB / 362.7 MB Notification: Performance of Templates: time 0.02128/0.6296, allocations: 7.2 MB / 499.5 MB, free: 13.59 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