Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") [: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.001033/0.001033, allocations: 184 kB / 8.138 MB, free: 2.219 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.166/1.166, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009044/0.0009044, allocations: 102.8 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.651e-06/5.681e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1883, allocations: 50.39 MB / 386.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08055/0.2688, allocations: 80.1 MB / 467 MB, free: 6.789 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001634/0.269, allocations: 77.5 kB / 467.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02085/0.2899, allocations: 6.858 MB / 473.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.29, allocations: 8.844 kB / 473.9 MB, free: 15.87 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001173/0.2912, allocations: 0.5879 MB / 474.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.2912, allocations: 12.03 kB / 474.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.711e-05/0.2913, allocations: 35.62 kB / 474.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.2917, allocations: 267.1 kB / 474.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.2919, allocations: 141.6 kB / 475 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.292, allocations: 16 kB / 475 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007185/0.2927, allocations: 413.2 kB / 475.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007568/0.2935, allocations: 458.5 kB / 475.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2935, allocations: 10.28 kB / 475.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.2936, allocations: 0 / 475.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2936, allocations: 8 kB / 475.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.295, allocations: 0.9792 MB / 476.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008086/0.2959, allocations: 357.1 kB / 477.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.2961, allocations: 197.5 kB / 477.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.2962, allocations: 7.984 kB / 477.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.2962, allocations: 46.36 kB / 477.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.805e-06/0.2962, allocations: 0 / 477.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007787/0.304, allocations: 2.028 MB / 479.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/0.3041, allocations: 148.9 kB / 479.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.3043, allocations: 174.8 kB / 479.8 MB, free: 9.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.074e-05/0.3044, allocations: 25.7 kB / 479.8 MB, free: 9.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.981e-05/0.3045, allocations: 137.4 kB / 479.9 MB, free: 9.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.3046, allocations: 189.3 kB / 480.1 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.726e-05/0.3047, allocations: 4 kB / 480.1 MB, free: 9.391 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.3048, allocations: 338.8 kB / 480.5 MB, free: 9.051 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007006/0.3055, allocations: 470.2 kB / 480.9 MB, free: 8.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007599/0.3063, allocations: 0.6368 MB / 481.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.3069, allocations: 413.3 kB / 482 MB, free: 7.473 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3069, allocations: 3.938 kB / 482 MB, free: 7.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001705/0.3086, allocations: 1.055 MB / 483 MB, free: 6.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.3087, allocations: 12.06 kB / 483 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3087, allocations: 4 kB / 483 MB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.3087, allocations: 12.75 kB / 483 MB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.3101, allocations: 235.7 kB / 483.3 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.3102, allocations: 18.36 kB / 483.3 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009974/0.3112, allocations: 119.7 kB / 483.4 MB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.662e-05/0.3113, allocations: 28 kB / 483.4 MB, free: 5.988 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.0002224/0.3115, allocations: 117.7 kB / 483.6 MB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.3118, allocations: 141.1 kB / 483.7 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.3119, allocations: 43.08 kB / 483.7 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.3119, allocations: 8.188 kB / 483.7 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3119, allocations: 3.938 kB / 483.7 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.312, allocations: 7.922 kB / 483.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003509/0.3155, allocations: 1.903 MB / 485.7 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.3155, allocations: 8 kB / 485.7 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.3163, allocations: 207.8 kB / 485.9 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/0.3164, allocations: 16 kB / 485.9 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-05/0.3164, allocations: 27.89 kB / 485.9 MB, free: 3.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.188e-05/0.3164, allocations: 23.94 kB / 485.9 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.3164, allocations: 15.94 kB / 485.9 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001597/0.3181, allocations: 1.705 MB / 487.7 MB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.3182, allocations: 164.6 kB / 487.8 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.789e-05/0.3183, allocations: 15.98 kB / 487.8 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006459/0.319, allocations: 95.98 kB / 487.9 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.3192, allocations: 95.62 kB / 488 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.3192, allocations: 35.98 kB / 488.1 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001109/0.3193, allocations: 141.2 kB / 488.2 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006293/0.32, allocations: 104 kB / 488.3 MB, free: 0.5078 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.0001615/0.3202, allocations: 126.9 kB / 488.4 MB, free: 384 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.3214, allocations: 0.8263 MB / 489.2 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.3214, allocations: 4 kB / 489.2 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.3219, allocations: 223.5 kB / 489.5 MB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.3224, allocations: 104.5 kB / 489.6 MB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.3244, allocations: 0.9426 MB / 490.5 MB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006838/0.3251, allocations: 0.8663 MB / 491.4 MB, free: 13.24 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.3251, allocations: 7.938 kB / 491.4 MB, free: 13.23 MB / 378.7 MB Notification: Performance of Templates: time 0.01231/0.3374, allocations: 8.474 MB / 499.9 MB, free: 4.801 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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,subSample1.factor,super.factor,super.inferFactor,time