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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 194.9 kB / 8.539 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008472/0.0008471, allocations: 93.64 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.703e-06/6.823e-06, allocations: 0 / 343.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2984/0.4102, allocations: 80.76 MB / 475.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.4105, allocations: 70.33 kB / 475.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01747/0.428, allocations: 6.232 MB / 481.7 MB, free: 7.336 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.4281, allocations: 4 kB / 481.7 MB, free: 7.332 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.001006/0.4291, allocations: 0.5893 MB / 482.3 MB, free: 6.715 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.4291, allocations: 8.031 kB / 482.3 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.4292, allocations: 35.62 kB / 482.3 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.4296, allocations: 264.9 kB / 482.6 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.4298, allocations: 134.2 kB / 482.7 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-05/0.4299, allocations: 16 kB / 482.7 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006259/0.4305, allocations: 413.7 kB / 483.1 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006345/0.4311, allocations: 441.1 kB / 483.5 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.4312, allocations: 0 / 483.5 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.4312, allocations: 4 kB / 483.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.4312, allocations: 8.844 kB / 483.5 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.4325, allocations: 0.986 MB / 484.5 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007931/0.4333, allocations: 357.9 kB / 484.9 MB, free: 4.434 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/0.4336, allocations: 194.6 kB / 485.1 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.941e-05/0.4337, allocations: 11.94 kB / 485.1 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.4337, allocations: 34.38 kB / 485.1 MB, free: 4.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 2.094e-06/0.4337, allocations: 0 / 485.1 MB, free: 4.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.007557/0.4413, allocations: 2.024 MB / 487.1 MB, free: 2.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.4414, allocations: 145 kB / 487.3 MB, free: 2.609 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.4415, allocations: 181.9 kB / 487.5 MB, free: 2.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.107e-05/0.4416, allocations: 25.7 kB / 487.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.4417, allocations: 131.8 kB / 487.6 MB, free: 2.289 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.4418, allocations: 178.8 kB / 487.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.929e-05/0.4419, allocations: 2.344 kB / 487.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.127e-05/0.442, allocations: 348.2 kB / 488.1 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006053/0.4426, allocations: 467.4 kB / 488.6 MB, free: 1.586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006721/0.4433, allocations: 0.6355 MB / 489.2 MB, free: 1.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005522/0.4438, allocations: 417.7 kB / 489.6 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4438, allocations: 0 / 489.6 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001544/0.4454, allocations: 1.063 MB / 490.7 MB, free: 268 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.4454, allocations: 4 kB / 490.7 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.4454, allocations: 4 kB / 490.7 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.4455, allocations: 12 kB / 490.7 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.4468, allocations: 237.2 kB / 490.9 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.4469, allocations: 8 kB / 491 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.4479, allocations: 119.7 kB / 491.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.448, allocations: 33.56 kB / 491.1 MB, free: 15.86 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.0002509/0.4483, allocations: 131.5 kB / 491.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/0.4486, allocations: 133.6 kB / 491.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.4487, allocations: 40.2 kB / 491.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.4487, allocations: 8 kB / 491.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.4487, allocations: 9.188 kB / 491.4 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.4487, allocations: 3.984 kB / 491.4 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.4524, allocations: 1.909 MB / 493.3 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.4524, allocations: 12 kB / 493.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008562/0.4533, allocations: 206.8 kB / 493.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.601e-05/0.4533, allocations: 16 kB / 493.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/0.4534, allocations: 16 kB / 493.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.531e-05/0.4534, allocations: 19.92 kB / 493.6 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.4534, allocations: 17.5 kB / 493.6 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001948/0.4554, allocations: 1.709 MB / 495.3 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.4556, allocations: 167.8 kB / 495.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.393e-05/0.4557, allocations: 12 kB / 495.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000697/0.4564, allocations: 99.95 kB / 495.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.4566, allocations: 106.4 kB / 495.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.727e-05/0.4567, allocations: 27.31 kB / 495.7 MB, free: 11.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001365/0.4568, allocations: 145.8 kB / 495.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007876/0.4576, allocations: 100 kB / 496 MB, free: 11.18 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.0002075/0.4578, allocations: 122.2 kB / 496.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.4592, allocations: 0.8287 MB / 496.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.4593, allocations: 4 kB / 496.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004425/0.4597, allocations: 217.9 kB / 497.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006585/0.4604, allocations: 107.5 kB / 497.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.4627, allocations: 0.9303 MB / 498.2 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000829/0.4635, allocations: 0.8687 MB / 499 MB, free: 8.5 MB / 362.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4635, allocations: 0 / 499 MB, free: 8.5 MB / 362.7 MB Notification: Performance of Templates: time 0.01498/0.4785, allocations: 8.424 MB / 0.4956 GB, free: 144 kB / 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