Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [: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.001035/0.001035, allocations: 195.6 kB / 8.537 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000837/0.000837, allocations: 87.61 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.636e-06, allocations: 4 kB / 343.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09601, allocations: 51.47 MB / 394.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2662/0.3622, allocations: 81.03 MB / 475.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3625, allocations: 77.3 kB / 475.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01925/0.3818, allocations: 6.967 MB / 482.7 MB, free: 6.332 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.3819, allocations: 4 kB / 482.7 MB, free: 6.328 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001052/0.3829, allocations: 0.6161 MB / 483.3 MB, free: 5.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.383, allocations: 16.03 kB / 483.3 MB, free: 5.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.376e-05/0.3831, allocations: 52.72 kB / 483.4 MB, free: 5.625 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.3835, allocations: 288 kB / 483.7 MB, free: 5.324 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.3837, allocations: 129.6 kB / 483.8 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.3838, allocations: 24 kB / 483.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006612/0.3845, allocations: 419.2 kB / 484.2 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006542/0.3851, allocations: 459.3 kB / 484.7 MB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.3851, allocations: 7.219 kB / 484.7 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.3852, allocations: 0 / 484.7 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.3852, allocations: 8 kB / 484.7 MB, free: 4.504 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.3865, allocations: 0.9877 MB / 485.7 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007456/0.3873, allocations: 358.9 kB / 486 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002374/0.3875, allocations: 191.2 kB / 486.2 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.226e-05/0.3876, allocations: 15.88 kB / 486.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.3876, allocations: 39.22 kB / 486.3 MB, free: 3.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.924e-06/0.3876, allocations: 0 / 486.3 MB, free: 3.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.00778/0.3954, allocations: 2.067 MB / 488.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.3955, allocations: 137 kB / 488.5 MB, free: 1.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.3958, allocations: 235.5 kB / 488.7 MB, free: 1.285 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.3958, allocations: 29.7 kB / 488.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.3959, allocations: 131.8 kB / 488.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.396, allocations: 195.4 kB / 489 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.814e-05/0.3961, allocations: 0 / 489 MB, free: 0.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.807e-05/0.3962, allocations: 341.8 kB / 489.4 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000602/0.3968, allocations: 472.3 kB / 489.8 MB, free: 420 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007019/0.3975, allocations: 0.6236 MB / 490.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006095/0.3981, allocations: 423.6 kB / 490.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3981, allocations: 4 kB / 490.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001669/0.3998, allocations: 1.056 MB / 491.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3998, allocations: 8.719 kB / 491.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3999, allocations: 4.094 kB / 491.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.3999, allocations: 15.98 kB / 492 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.4014, allocations: 237.8 kB / 492.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.4014, allocations: 11.98 kB / 492.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.4024, allocations: 118 kB / 492.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.4026, allocations: 34.61 kB / 492.3 MB, free: 14.68 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.0002277/0.4028, allocations: 124.7 kB / 492.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000303/0.4031, allocations: 151.6 kB / 492.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.4032, allocations: 46.64 kB / 492.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.4032, allocations: 8 kB / 492.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.4033, allocations: 0 / 492.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.4033, allocations: 3.984 kB / 492.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003572/0.4068, allocations: 1.926 MB / 494.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.4069, allocations: 8 kB / 494.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008544/0.4077, allocations: 207.9 kB / 494.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.909e-05/0.4078, allocations: 16 kB / 494.8 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.777e-05/0.4078, allocations: 19.89 kB / 494.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.487e-05/0.4079, allocations: 19.94 kB / 494.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.196e-05/0.4079, allocations: 15.94 kB / 494.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001721/0.4096, allocations: 1.717 MB / 496.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.4098, allocations: 177.4 kB / 496.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.178e-05/0.4099, allocations: 19.98 kB / 496.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000747/0.4107, allocations: 100.7 kB / 496.9 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.4109, allocations: 99.88 kB / 497 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/0.411, allocations: 32.5 kB / 497 MB, free: 10.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001939/0.4112, allocations: 178.6 kB / 497.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006926/0.4119, allocations: 104 kB / 497.3 MB, free: 9.926 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.0001797/0.4121, allocations: 129.5 kB / 497.4 MB, free: 9.797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.4133, allocations: 0.821 MB / 498.2 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4134, allocations: 0 / 498.2 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.4138, allocations: 221.6 kB / 498.5 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006741/0.4145, allocations: 119.3 kB / 498.6 MB, free: 9.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.4165, allocations: 0.9944 MB / 499.6 MB, free: 8.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000753/0.4173, allocations: 0.8902 MB / 0.4887 GB, free: 7.164 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4173, allocations: 0 / 0.4887 GB, free: 7.164 MB / 362.7 MB Notification: Performance of Templates: time 0.01486/0.4322, allocations: 8.668 MB / 0.4972 GB, free: 14.57 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,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,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time