Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008514/0.0008516, allocations: 95.59 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.451e-05/1.454e-05, allocations: 0 / 343.7 MB, free: 8.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 51.47 MB / 395.2 MB, free: 4.727 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3269/0.4341, allocations: 80.99 MB / 476.1 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.4343, allocations: 70.86 kB / 476.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01868/0.453, allocations: 7.239 MB / 483.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4531, allocations: 0 / 483.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.4531, allocations: 4 kB / 483.5 MB, free: 6.141 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.0009277/0.454, allocations: 0.5869 MB / 484 MB, free: 5.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.4541, allocations: 8.031 kB / 484.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.509e-05/0.4541, allocations: 39.61 kB / 484.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.4545, allocations: 260.4 kB / 484.3 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.4546, allocations: 137.2 kB / 484.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.4547, allocations: 26.86 kB / 484.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006019/0.4553, allocations: 411.2 kB / 484.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.456, allocations: 459.1 kB / 485.4 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.456, allocations: 3.984 kB / 485.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.4561, allocations: 0 / 485.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.4561, allocations: 8 kB / 485.4 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.4573, allocations: 0.9662 MB / 486.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007413/0.4581, allocations: 393.6 kB / 486.7 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.4583, allocations: 199.3 kB / 486.9 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.4584, allocations: 8.141 kB / 486.9 MB, free: 3.078 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.4584, allocations: 42.5 kB / 487 MB, free: 3.031 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.753e-06/0.4584, allocations: 0 / 487 MB, free: 3.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.006639/0.465, allocations: 1.983 MB / 488.9 MB, free: 1.613 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.4652, allocations: 145 kB / 489.1 MB, free: 1.438 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.4653, allocations: 185.5 kB / 489.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.314e-05/0.4654, allocations: 25.7 kB / 489.3 MB, free: 1.242 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.4655, allocations: 135.5 kB / 489.4 MB, free: 1.121 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.4657, allocations: 188.5 kB / 489.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.4657, allocations: 0 / 489.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.969e-05/0.4658, allocations: 348.7 kB / 489.9 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005624/0.4664, allocations: 466.4 kB / 490.4 MB, free: 420 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006836/0.4671, allocations: 0.6304 MB / 491 MB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006032/0.4677, allocations: 418.2 kB / 491.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4677, allocations: 0 / 491.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001796/0.4695, allocations: 1.037 MB / 492.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.4696, allocations: 8 kB / 492.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.4696, allocations: 8 kB / 492.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.4696, allocations: 12.08 kB / 492.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.471, allocations: 234.5 kB / 492.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.471, allocations: 9.688 kB / 492.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009137/0.4719, allocations: 119.6 kB / 492.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.416e-05/0.472, allocations: 27.62 kB / 492.9 MB, free: 14.71 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.0002367/0.4723, allocations: 120.2 kB / 493 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000275/0.4725, allocations: 139.4 kB / 493.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001853/0.4727, allocations: 58.33 kB / 493.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.4728, allocations: 8 kB / 493.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.4728, allocations: 4 kB / 493.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.4728, allocations: 8.641 kB / 493.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003507/0.4763, allocations: 1.892 MB / 495.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.4763, allocations: 12 kB / 495.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007795/0.4771, allocations: 199.8 kB / 495.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.865e-05/0.4772, allocations: 19.95 kB / 495.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.554e-05/0.4772, allocations: 20.86 kB / 495.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.568e-05/0.4772, allocations: 19.94 kB / 495.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-05/0.4773, allocations: 11.94 kB / 495.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.4789, allocations: 1.707 MB / 497.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.4791, allocations: 160.7 kB / 497.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.271e-05/0.4792, allocations: 19.98 kB / 497.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006204/0.4798, allocations: 85.11 kB / 497.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.48, allocations: 110.3 kB / 497.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.48, allocations: 31.5 kB / 497.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001258/0.4802, allocations: 144.4 kB / 497.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4802, allocations: 0 / 497.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006548/0.4808, allocations: 102 kB / 497.7 MB, free: 10.05 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.000203/0.4811, allocations: 130.5 kB / 497.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.4822, allocations: 0.8218 MB / 498.7 MB, free: 9.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4822, allocations: 0 / 498.7 MB, free: 9.477 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003618/0.4826, allocations: 216 kB / 498.9 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.4832, allocations: 111.7 kB / 499 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.4849, allocations: 0.9224 MB / 499.9 MB, free: 8.273 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.4853, allocations: 0.8238 MB / 0.489 GB, free: 7.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005948/0.4859, allocations: 91.36 kB / 0.4891 GB, free: 7.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002778/0.4862, allocations: 38.75 kB / 0.4891 GB, free: 7.309 MB / 362.7 MB Notification: Performance of SimCode: time 2.013e-06/0.4862, allocations: 8 kB / 0.4891 GB, free: 7.301 MB / 362.7 MB Notification: Performance of Templates: time 0.01178/0.498, allocations: 7.211 MB / 0.4962 GB, free: 148 kB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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