Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00105/0.00105, allocations: 194.3 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008962/0.000896, allocations: 89.45 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.525e-05/1.526e-05, allocations: 0 / 343.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 51.48 MB / 394.6 MB, free: 5.207 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2941/0.4079, allocations: 80.91 MB / 475.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.4083, allocations: 67.27 kB / 475.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02018/0.4284, allocations: 6.911 MB / 482.5 MB, free: 6.547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.4285, allocations: 11.98 kB / 482.5 MB, free: 6.535 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001038/0.4296, allocations: 0.5841 MB / 483.1 MB, free: 5.926 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.4296, allocations: 12.03 kB / 483.1 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.177e-05/0.4297, allocations: 43.31 kB / 483.1 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.4301, allocations: 260.6 kB / 483.4 MB, free: 5.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.4303, allocations: 133.6 kB / 483.5 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.914e-05/0.4304, allocations: 20 kB / 483.6 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006541/0.431, allocations: 416.2 kB / 484 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007406/0.4318, allocations: 467.2 kB / 484.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.4318, allocations: 9.344 kB / 484.4 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.4319, allocations: 3.938 kB / 484.4 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.4319, allocations: 4 kB / 484.4 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.4332, allocations: 0.9631 MB / 485.4 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008232/0.4341, allocations: 365.2 kB / 485.7 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.4343, allocations: 190 kB / 485.9 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.053e-05/0.4344, allocations: 20.12 kB / 486 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.4344, allocations: 42.38 kB / 486 MB, free: 3.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 2.023e-06/0.4345, allocations: 0 / 486 MB, free: 3.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.007931/0.4424, allocations: 2.017 MB / 488 MB, free: 1.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.4425, allocations: 140.9 kB / 488.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.4427, allocations: 182.2 kB / 488.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.249e-05/0.4428, allocations: 29.64 kB / 488.4 MB, free: 1.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.4428, allocations: 137.3 kB / 488.5 MB, free: 1.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.443, allocations: 187.9 kB / 488.7 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.531e-05/0.443, allocations: 0 / 488.7 MB, free: 1.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/0.4431, allocations: 342.1 kB / 489 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.4437, allocations: 467.2 kB / 489.5 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006841/0.4444, allocations: 0.6317 MB / 490.1 MB, free: 328 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000549/0.445, allocations: 417.2 kB / 490.5 MB, free: 104 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.445, allocations: 4 kB / 490.5 MB, free: 100 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001756/0.4467, allocations: 1.054 MB / 491.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.4468, allocations: 4 kB / 491.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.4468, allocations: 8.719 kB / 491.6 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.4468, allocations: 8 kB / 491.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.4484, allocations: 242.6 kB / 491.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/0.4484, allocations: 13.66 kB / 491.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.4495, allocations: 119.7 kB / 492 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.974e-05/0.4496, allocations: 27.56 kB / 492 MB, free: 15.05 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.0002846/0.4499, allocations: 131.4 kB / 492.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003377/0.4502, allocations: 132.1 kB / 492.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001356/0.4504, allocations: 47.64 kB / 492.3 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.4504, allocations: 8.094 kB / 492.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.4504, allocations: 0 / 492.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4504, allocations: 11.97 kB / 492.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003841/0.4543, allocations: 1.905 MB / 494.2 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/0.4543, allocations: 10 kB / 494.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008773/0.4552, allocations: 210.8 kB / 494.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-05/0.4553, allocations: 19.91 kB / 494.4 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.206e-05/0.4553, allocations: 19.98 kB / 494.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.247e-05/0.4554, allocations: 18.56 kB / 494.5 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.451e-05/0.4554, allocations: 19.88 kB / 494.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002138/0.4575, allocations: 1.712 MB / 496.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.4578, allocations: 164 kB / 496.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.167e-05/0.4579, allocations: 15.98 kB / 496.4 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006906/0.4586, allocations: 91.98 kB / 496.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.4588, allocations: 99.5 kB / 496.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.406e-05/0.4588, allocations: 27.44 kB / 496.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001443/0.459, allocations: 147.3 kB / 496.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007422/0.4597, allocations: 104 kB / 496.8 MB, free: 10.36 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.0002192/0.46, allocations: 124.3 kB / 497 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.4614, allocations: 0.8305 MB / 497.8 MB, free: 9.777 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.4614, allocations: 4 kB / 497.8 MB, free: 9.773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004395/0.4619, allocations: 221.2 kB / 498 MB, free: 9.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006607/0.4625, allocations: 105 kB / 498.1 MB, free: 9.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.4648, allocations: 0.9461 MB / 499.1 MB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007976/0.4656, allocations: 0.8686 MB / 499.9 MB, free: 7.668 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4656, allocations: 0 / 499.9 MB, free: 7.668 MB / 362.7 MB Notification: Performance of Templates: time 0.01462/0.4802, allocations: 8.474 MB / 0.4965 GB, free: 15.26 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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