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.001075/0.001075, allocations: 176.8 kB / 8.348 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.334/1.334, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.0008301/0.0008301, allocations: 96.11 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.69e-05/1.694e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09177, allocations: 50.41 MB / 387.4 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3108/0.4026, allocations: 80.01 MB / 467.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.403, allocations: 75.95 kB / 467.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01983/0.4228, allocations: 6.501 MB / 474 MB, free: 8.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4229, allocations: 0 / 474 MB, free: 8.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.4229, allocations: 8 kB / 474 MB, free: 8.293 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.001117/0.424, allocations: 0.5691 MB / 474.6 MB, free: 7.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4241, allocations: 15.95 kB / 474.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.4242, allocations: 35.66 kB / 474.7 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005/0.4247, allocations: 261.8 kB / 474.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002284/0.425, allocations: 133.6 kB / 475 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.076e-05/0.4251, allocations: 16 kB / 475.1 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007498/0.4258, allocations: 409 kB / 475.5 MB, free: 6.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008725/0.4267, allocations: 441.8 kB / 475.9 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.4267, allocations: 0 / 475.9 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.4268, allocations: 3.984 kB / 475.9 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.4268, allocations: 8 kB / 475.9 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.4284, allocations: 0.9758 MB / 476.9 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008438/0.4293, allocations: 394.8 kB / 477.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002653/0.4296, allocations: 191.4 kB / 477.5 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.094e-05/0.4296, allocations: 11.94 kB / 477.5 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.4297, allocations: 42.56 kB / 477.5 MB, free: 4.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.784e-06/0.4297, allocations: 0 / 477.5 MB, free: 4.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.007127/0.4368, allocations: 1.989 MB / 479.5 MB, free: 2.574 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.4369, allocations: 144.9 kB / 479.6 MB, free: 2.402 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.4372, allocations: 177.7 kB / 479.8 MB, free: 2.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.535e-05/0.4372, allocations: 25.7 kB / 479.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.25e-05/0.4373, allocations: 137.5 kB / 480 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.4375, allocations: 185.3 kB / 480.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.4376, allocations: 0 / 480.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.4378, allocations: 346.8 kB / 480.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000762/0.4386, allocations: 469.5 kB / 480.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008255/0.4394, allocations: 0.6291 MB / 481.6 MB, free: 368 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.44, allocations: 414 kB / 482 MB, free: 15.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.4401, allocations: 4 kB / 482 MB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001572/0.4416, allocations: 1.034 MB / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4417, allocations: 8 kB / 483 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.4417, allocations: 11.95 kB / 483 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/0.4417, allocations: 11.98 kB / 483.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.4431, allocations: 228 kB / 483.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.4431, allocations: 12.09 kB / 483.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009449/0.4441, allocations: 115.7 kB / 483.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.903e-05/0.4442, allocations: 28 kB / 483.4 MB, free: 14.5 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.0002351/0.4444, allocations: 120.7 kB / 483.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.4447, allocations: 149.1 kB / 483.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.4449, allocations: 59.39 kB / 483.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4449, allocations: 11.95 kB / 483.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4449, allocations: 3.938 kB / 483.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.4449, allocations: 3.984 kB / 483.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003557/0.4485, allocations: 1.895 MB / 485.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.4485, allocations: 12 kB / 485.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007863/0.4493, allocations: 203.9 kB / 485.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.517e-05/0.4494, allocations: 12 kB / 485.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.977e-05/0.4494, allocations: 20 kB / 485.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.564e-05/0.4494, allocations: 19.92 kB / 485.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/0.4495, allocations: 19.89 kB / 485.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.4515, allocations: 1.706 MB / 487.6 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.4517, allocations: 156.7 kB / 487.8 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.13e-05/0.4518, allocations: 15.98 kB / 487.8 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.4525, allocations: 87.98 kB / 487.9 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.4527, allocations: 111.6 kB / 488 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/0.4527, allocations: 28 kB / 488 MB, free: 9.254 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.4529, allocations: 136.3 kB / 488.2 MB, free: 9.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4529, allocations: 192 / 488.2 MB, free: 9.121 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006743/0.4536, allocations: 103.9 kB / 488.3 MB, free: 9.02 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.000213/0.4538, allocations: 126.9 kB / 488.4 MB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.455, allocations: 0.8241 MB / 489.2 MB, free: 8.066 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4551, allocations: 0 / 489.2 MB, free: 8.066 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003831/0.4555, allocations: 213.7 kB / 489.4 MB, free: 7.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005881/0.456, allocations: 100.5 kB / 489.5 MB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.4578, allocations: 0.9404 MB / 490.5 MB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.4582, allocations: 0.8209 MB / 491.3 MB, free: 5.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005715/0.4588, allocations: 87.38 kB / 491.4 MB, free: 5.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.4591, allocations: 43.42 kB / 491.4 MB, free: 5.691 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4591, allocations: 3.938 kB / 491.4 MB, free: 5.688 MB / 362.7 MB Notification: Performance of Templates: time 0.01223/0.4713, allocations: 7.158 MB / 498.6 MB, free: 14.53 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