Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000989/0.000989, allocations: 98.67 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.741e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 51.49 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3354/0.4428, allocations: 80.82 MB / 476 MB, free: 11.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.443, allocations: 70.97 kB / 476.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0172/0.4602, allocations: 6.558 MB / 482.6 MB, free: 6.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4603, allocations: 0 / 482.6 MB, free: 6.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.4603, allocations: 4 kB / 482.6 MB, free: 6.879 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0008725/0.4612, allocations: 0.5777 MB / 483.2 MB, free: 6.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.4612, allocations: 12.03 kB / 483.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.574e-05/0.4613, allocations: 31.72 kB / 483.2 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.4616, allocations: 266.9 kB / 483.5 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.4618, allocations: 138 kB / 483.6 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.003e-05/0.4619, allocations: 20 kB / 483.7 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005495/0.4624, allocations: 403.5 kB / 484 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.4631, allocations: 438.2 kB / 484.5 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.4631, allocations: 4 kB / 484.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.4631, allocations: 0 / 484.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.4631, allocations: 4 kB / 484.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.4644, allocations: 0.9722 MB / 485.5 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000735/0.4651, allocations: 398.8 kB / 485.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.4653, allocations: 187.1 kB / 486 MB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.4654, allocations: 16.12 kB / 486 MB, free: 3.844 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.4654, allocations: 41.56 kB / 486.1 MB, free: 3.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.593e-06/0.4654, allocations: 0 / 486.1 MB, free: 3.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.006598/0.472, allocations: 1.992 MB / 488.1 MB, free: 2.367 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.4721, allocations: 148.8 kB / 488.2 MB, free: 2.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.4723, allocations: 176.5 kB / 488.4 MB, free: 2.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.948e-05/0.4723, allocations: 25.7 kB / 488.4 MB, free: 2.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.658e-05/0.4724, allocations: 144 kB / 488.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.4725, allocations: 182.3 kB / 488.7 MB, free: 1.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/0.4726, allocations: 0 / 488.7 MB, free: 1.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.177e-05/0.4727, allocations: 344.8 kB / 489.1 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000525/0.4732, allocations: 467.3 kB / 489.5 MB, free: 1.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006069/0.4738, allocations: 0.6263 MB / 490.2 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004849/0.4743, allocations: 422.3 kB / 490.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4743, allocations: 0 / 490.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001382/0.4757, allocations: 1.038 MB / 491.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.4757, allocations: 8 kB / 491.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.4757, allocations: 4 kB / 491.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.4758, allocations: 12 kB / 491.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.4771, allocations: 228 kB / 491.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.4772, allocations: 15.92 kB / 491.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009478/0.4781, allocations: 111.7 kB / 492 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.76e-05/0.4782, allocations: 29.98 kB / 492 MB, free: 15.47 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.0002133/0.4784, allocations: 124.2 kB / 492.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.4787, allocations: 150 kB / 492.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.4788, allocations: 48.41 kB / 492.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.4789, allocations: 8 kB / 492.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4789, allocations: 0 / 492.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.4789, allocations: 7.984 kB / 492.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.4822, allocations: 1.89 MB / 494.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.4822, allocations: 15.95 kB / 494.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007727/0.483, allocations: 203.3 kB / 494.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/0.483, allocations: 16.09 kB / 494.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.392e-05/0.4831, allocations: 17.77 kB / 494.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.748e-05/0.4831, allocations: 23.92 kB / 494.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.497e-05/0.4831, allocations: 15.94 kB / 494.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.4847, allocations: 1.7 MB / 496.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.4848, allocations: 161.8 kB / 496.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.512e-05/0.4849, allocations: 16 kB / 496.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/0.4855, allocations: 90.09 kB / 496.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.4857, allocations: 109 kB / 496.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.4858, allocations: 31.88 kB / 496.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.4859, allocations: 139.2 kB / 496.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4859, allocations: 0 / 496.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006195/0.4866, allocations: 104 kB / 496.8 MB, free: 10.82 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.0001683/0.4867, allocations: 132.5 kB / 497 MB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.4878, allocations: 0.8227 MB / 497.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4878, allocations: 4 kB / 497.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.4882, allocations: 211.5 kB / 498 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005582/0.4888, allocations: 105.8 kB / 498.1 MB, free: 10 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.4904, allocations: 0.9329 MB / 499 MB, free: 9.031 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.4908, allocations: 0.8208 MB / 499.9 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000566/0.4914, allocations: 95.36 kB / 500 MB, free: 8.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/0.4917, allocations: 37.22 kB / 500 MB, free: 8.066 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4917, allocations: 0 / 500 MB, free: 8.066 MB / 362.7 MB Notification: Performance of Templates: time 0.01198/0.5037, allocations: 7.152 MB / 0.4953 GB, free: 0.9648 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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,super.factor,super.inferFactor,time