Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 175.1 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.413/1.413, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.0007908/0.0007911, allocations: 99.03 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.166e-05/2.17e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08848/0.08851, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3421/0.4306, allocations: 80.67 MB / 474.9 MB, free: 6.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001864/0.4308, allocations: 75.91 kB / 475 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01864/0.4495, allocations: 6.539 MB / 481.5 MB, free: 272 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4495, allocations: 0 / 481.5 MB, free: 272 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.4496, allocations: 4 kB / 481.5 MB, free: 268 kB / 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.0009597/0.4505, allocations: 0.5692 MB / 482.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4506, allocations: 8.031 kB / 482.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.4507, allocations: 31.72 kB / 482.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.451, allocations: 274 kB / 482.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.4512, allocations: 141.6 kB / 482.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.4513, allocations: 35.98 kB / 482.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007896/0.4521, allocations: 490.9 kB / 483.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4521, allocations: 0 / 483.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.4521, allocations: 16 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.4521, allocations: 4 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006621/0.4528, allocations: 407.8 kB / 483.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.4543, allocations: 1.037 MB / 484.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008858/0.4552, allocations: 419.7 kB / 484.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/0.4555, allocations: 211.4 kB / 485.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.821e-05/0.4556, allocations: 4 kB / 485.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.4556, allocations: 42.5 kB / 485.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.4556, allocations: 0 / 485.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.008426/0.4641, allocations: 2.072 MB / 487.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.26e-05/0.4642, allocations: 152.9 kB / 487.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.4644, allocations: 177.8 kB / 487.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.766e-05/0.4644, allocations: 45.69 kB / 487.6 MB, free: 9.859 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.274e-05/0.4645, allocations: 137.5 kB / 487.8 MB, free: 9.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.4647, allocations: 197.3 kB / 487.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.069e-05/0.4648, allocations: 12 kB / 488 MB, free: 9.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4649, allocations: 350.8 kB / 488.3 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007575/0.4657, allocations: 473.5 kB / 488.8 MB, free: 8.695 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008812/0.4666, allocations: 0.6501 MB / 489.4 MB, free: 7.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007159/0.4673, allocations: 435 kB / 489.8 MB, free: 7.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.4673, allocations: 8 kB / 489.8 MB, free: 7.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001887/0.4692, allocations: 1.104 MB / 490.9 MB, free: 6.426 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.4693, allocations: 8 kB / 491 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.4693, allocations: 8 kB / 491 MB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.4693, allocations: 8 kB / 491 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.4707, allocations: 227.7 kB / 491.2 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.4707, allocations: 15.98 kB / 491.2 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009414/0.4717, allocations: 123.7 kB / 491.3 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.189e-05/0.4718, allocations: 27.98 kB / 491.4 MB, free: 6.016 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.0002376/0.472, allocations: 148.7 kB / 491.5 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/0.4724, allocations: 161.2 kB / 491.7 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001957/0.4726, allocations: 59.09 kB / 491.7 MB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.4726, allocations: 12 kB / 491.7 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4726, allocations: 3.938 kB / 491.7 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4726, allocations: 7.984 kB / 491.7 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/0.4762, allocations: 2.012 MB / 493.8 MB, free: 3.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.4762, allocations: 16.25 kB / 493.8 MB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007661/0.477, allocations: 199.7 kB / 494 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.587e-05/0.477, allocations: 24 kB / 494 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/0.4771, allocations: 24 kB / 494 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.396e-05/0.4771, allocations: 19.92 kB / 494 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/0.4771, allocations: 15.94 kB / 494 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.4789, allocations: 1.753 MB / 495.8 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.4791, allocations: 164.7 kB / 496 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.84e-05/0.4791, allocations: 27.95 kB / 496 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/0.4797, allocations: 104 kB / 496.1 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.4799, allocations: 103.7 kB / 496.2 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/0.48, allocations: 31.98 kB / 496.2 MB, free: 0.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001131/0.4801, allocations: 148.3 kB / 496.4 MB, free: 364 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4801, allocations: 0 / 496.4 MB, free: 364 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.000598/0.4807, allocations: 127.9 kB / 496.5 MB, free: 236 kB / 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.0001626/0.4809, allocations: 131 kB / 496.6 MB, free: 96 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.4822, allocations: 0.8716 MB / 497.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4822, allocations: 0 / 497.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.4826, allocations: 242.5 kB / 497.7 MB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.4832, allocations: 118.1 kB / 497.8 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.4849, allocations: 0.9651 MB / 498.8 MB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.4852, allocations: 0.8171 MB / 499.6 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005681/0.4858, allocations: 103.3 kB / 499.7 MB, free: 12.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.4861, allocations: 39.42 kB / 499.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4861, allocations: 3.938 kB / 499.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of Templates: time 0.0109/0.497, allocations: 7.281 MB / 0.4952 GB, free: 5.496 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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