Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,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.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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009633/0.0009633, allocations: 183.7 kB / 8.138 MB, free: 2.184 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.141/1.141, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0009097/0.0009098, allocations: 94.64 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.432e-06/6.472e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1949, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09104/0.286, allocations: 80.22 MB / 467.1 MB, free: 6.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.2862, allocations: 76.98 kB / 467.2 MB, free: 6.492 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03771/0.324, allocations: 6.927 MB / 474.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.324, allocations: 9.312 kB / 474.1 MB, free: 15.58 MB / 362.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.001075/0.3251, allocations: 0.6151 MB / 474.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.3252, allocations: 8.031 kB / 474.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.301e-05/0.3252, allocations: 43.53 kB / 474.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.3256, allocations: 294 kB / 475.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.3258, allocations: 133.7 kB / 475.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.036e-05/0.3259, allocations: 19.91 kB / 475.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007593/0.3267, allocations: 417.2 kB / 475.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008057/0.3275, allocations: 458.5 kB / 476.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.3275, allocations: 7.906 kB / 476.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.3276, allocations: 0 / 476.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.3276, allocations: 8 kB / 476.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.3292, allocations: 0.9987 MB / 477.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008669/0.3301, allocations: 357.2 kB / 477.4 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.3304, allocations: 198.2 kB / 477.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.212e-05/0.3305, allocations: 8 kB / 477.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.3305, allocations: 38.42 kB / 477.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.884e-06/0.3305, allocations: 4 kB / 477.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.008271/0.3388, allocations: 2.083 MB / 479.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.3389, allocations: 141.9 kB / 479.9 MB, free: 9.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.3391, allocations: 229.1 kB / 480.1 MB, free: 9.281 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.92e-05/0.3392, allocations: 25.7 kB / 480.2 MB, free: 9.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.3393, allocations: 137.5 kB / 480.3 MB, free: 9.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.3395, allocations: 185.2 kB / 480.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.3396, allocations: 0 / 480.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3397, allocations: 346.8 kB / 480.8 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007189/0.3404, allocations: 477.5 kB / 481.3 MB, free: 8.117 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008207/0.3412, allocations: 0.6252 MB / 481.9 MB, free: 7.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006695/0.3419, allocations: 425.2 kB / 482.3 MB, free: 7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3419, allocations: 0 / 482.3 MB, free: 7 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001779/0.3437, allocations: 1.059 MB / 483.4 MB, free: 5.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3437, allocations: 4 kB / 483.4 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3438, allocations: 4.656 kB / 483.4 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.3438, allocations: 12 kB / 483.4 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.3453, allocations: 239.9 kB / 483.6 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.3453, allocations: 11.98 kB / 483.6 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.3464, allocations: 119.7 kB / 483.8 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3465, allocations: 27.98 kB / 483.8 MB, free: 5.523 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.0002174/0.3467, allocations: 128.8 kB / 483.9 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/0.347, allocations: 147.4 kB / 484.1 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.3472, allocations: 47.39 kB / 484.1 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.3472, allocations: 8 kB / 484.1 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.3472, allocations: 8 kB / 484.1 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3472, allocations: 3.984 kB / 484.1 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.351, allocations: 1.919 MB / 486 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.351, allocations: 8 kB / 486 MB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008584/0.3519, allocations: 207.8 kB / 486.3 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.62e-05/0.3519, allocations: 20 kB / 486.3 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.3519, allocations: 19.98 kB / 486.3 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.381e-05/0.352, allocations: 19.84 kB / 486.3 MB, free: 2.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/0.352, allocations: 15.94 kB / 486.3 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00172/0.3537, allocations: 1.712 MB / 488 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.3539, allocations: 184.4 kB / 488.2 MB, free: 476 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.367e-05/0.354, allocations: 15.98 kB / 488.2 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006766/0.3547, allocations: 95.97 kB / 488.3 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/0.3549, allocations: 95.64 kB / 488.4 MB, free: 268 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.355, allocations: 31.98 kB / 488.5 MB, free: 236 kB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001646/0.3552, allocations: 185.2 kB / 488.6 MB, free: 52 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.000726/0.3559, allocations: 100 kB / 488.7 MB, free: 15.95 MB / 378.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.0001789/0.3561, allocations: 131.1 kB / 488.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.3574, allocations: 0.8313 MB / 489.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3574, allocations: 4 kB / 489.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004236/0.3578, allocations: 220.1 kB / 489.9 MB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.3585, allocations: 125.6 kB / 490 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3607, allocations: 0.9676 MB / 491 MB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007572/0.3614, allocations: 0.8897 MB / 491.9 MB, free: 12.61 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3614, allocations: 4 kB / 491.9 MB, free: 12.61 MB / 378.7 MB Notification: Performance of Templates: time 0.01362/0.3751, allocations: 8.659 MB / 0.4888 GB, free: 3.996 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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