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") [: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.001469/0.00147, allocations: 182.6 kB / 8.134 MB, free: 2.207 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.185/1.185, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008772/0.0008771, allocations: 88.61 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.693e-06/7.073e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1862, allocations: 50.38 MB / 386.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08401/0.2702, allocations: 79.95 MB / 466.8 MB, free: 6.945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.2705, allocations: 72.42 kB / 466.9 MB, free: 6.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01858/0.2891, allocations: 6.177 MB / 473.1 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.2891, allocations: 8 kB / 473.1 MB, free: 0.7148 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.0009692/0.2901, allocations: 0.5801 MB / 473.7 MB, free: 92 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2902, allocations: 8.031 kB / 473.7 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.284e-05/0.2902, allocations: 35.62 kB / 473.7 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.2906, allocations: 272.7 kB / 474 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.2908, allocations: 125.7 kB / 474.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.2908, allocations: 19.94 kB / 474.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006877/0.2915, allocations: 409.2 kB / 474.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007296/0.2923, allocations: 445.4 kB / 475 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.2923, allocations: 8 kB / 475 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.2923, allocations: 3.984 kB / 475 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.2924, allocations: 8 kB / 475 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.2938, allocations: 0.9712 MB / 476 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.2946, allocations: 369.1 kB / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002862/0.2949, allocations: 198.7 kB / 476.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.295, allocations: 11.92 kB / 476.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.295, allocations: 46.5 kB / 476.6 MB, free: 13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.295, allocations: 0.8438 kB / 476.6 MB, free: 13 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.00794/0.303, allocations: 2.024 MB / 478.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.3031, allocations: 141.8 kB / 478.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.3032, allocations: 173.8 kB / 478.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.45e-05/0.3033, allocations: 29.69 kB / 478.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.3034, allocations: 129.5 kB / 479.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.3036, allocations: 185.3 kB / 479.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/0.3036, allocations: 8 kB / 479.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3038, allocations: 342.8 kB / 479.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007134/0.3045, allocations: 465.5 kB / 480 MB, free: 9.477 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008046/0.3053, allocations: 0.633 MB / 480.7 MB, free: 8.766 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006216/0.3059, allocations: 421.2 kB / 481.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3059, allocations: 0 / 481.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001691/0.3076, allocations: 1.066 MB / 482.1 MB, free: 7.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.3077, allocations: 4 kB / 482.1 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3077, allocations: 4 kB / 482.2 MB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.3077, allocations: 12 kB / 482.2 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.3092, allocations: 236.3 kB / 482.4 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.3092, allocations: 11.94 kB / 482.4 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009913/0.3102, allocations: 123.7 kB / 482.5 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.722e-05/0.3103, allocations: 24 kB / 482.5 MB, free: 6.863 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.0002127/0.3105, allocations: 124.7 kB / 482.7 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002796/0.3108, allocations: 145.1 kB / 482.8 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.333e-05/0.3109, allocations: 39.08 kB / 482.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-06/0.3109, allocations: 12 kB / 482.9 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3109, allocations: 0 / 482.9 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3109, allocations: 3.984 kB / 482.9 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/0.3146, allocations: 1.911 MB / 484.8 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.3146, allocations: 15.94 kB / 484.8 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008205/0.3155, allocations: 204.2 kB / 485 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.489e-05/0.3155, allocations: 16 kB / 485 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.923e-05/0.3156, allocations: 15.98 kB / 485 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.3156, allocations: 19.94 kB / 485 MB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/0.3156, allocations: 15.88 kB / 485.1 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001693/0.3173, allocations: 1.709 MB / 486.8 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.3175, allocations: 164.6 kB / 486.9 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.963e-05/0.3176, allocations: 16.05 kB / 486.9 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006749/0.3183, allocations: 91.92 kB / 487 MB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3185, allocations: 103.6 kB / 487.1 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-05/0.3185, allocations: 28 kB / 487.2 MB, free: 1.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001315/0.3187, allocations: 140.3 kB / 487.3 MB, free: 1.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006451/0.3193, allocations: 103.9 kB / 487.4 MB, free: 1.379 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.0001798/0.3195, allocations: 127.1 kB / 487.5 MB, free: 1.246 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.3208, allocations: 0.8315 MB / 488.4 MB, free: 428 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3208, allocations: 4.125 kB / 488.4 MB, free: 424 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.3212, allocations: 217.8 kB / 488.6 MB, free: 208 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005829/0.3218, allocations: 112.1 kB / 488.7 MB, free: 100 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.3238, allocations: 0.9386 MB / 489.6 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007325/0.3246, allocations: 0.8663 MB / 490.5 MB, free: 14.11 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3246, allocations: 0 / 490.5 MB, free: 14.11 MB / 378.7 MB Notification: Performance of Templates: time 0.01289/0.3375, allocations: 8.439 MB / 498.9 MB, free: 5.715 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