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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [: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.001183/0.001183, allocations: 181.5 kB / 8.134 MB, free: 2.215 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.121/1.121, 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.0008796/0.0008796, allocations: 88.62 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09091/0.09182, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1761/0.2679, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0784/0.3464, allocations: 80.23 MB / 467.2 MB, free: 6.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.3466, allocations: 71.97 kB / 467.3 MB, free: 6.496 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.02079/0.3674, allocations: 7.548 MB / 474.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.3674, allocations: 8 kB / 474.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.3675, allocations: 47.53 kB / 474.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.3679, allocations: 294 kB / 475.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.3681, allocations: 135.2 kB / 475.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.3681, allocations: 19.91 kB / 475.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007015/0.3688, allocations: 417.2 kB / 475.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00073/0.3696, allocations: 462.5 kB / 476.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3696, allocations: 3.906 kB / 476.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.3696, allocations: 0 / 476.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.3697, allocations: 8 kB / 476.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.3711, allocations: 0.9948 MB / 477.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008625/0.372, allocations: 361.2 kB / 477.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.3723, allocations: 198.7 kB / 477.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.474e-05/0.3723, allocations: 7.938 kB / 477.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.3723, allocations: 42.42 kB / 477.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.3724, allocations: 4 kB / 477.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.009054/0.3814, allocations: 2.078 MB / 479.9 MB, free: 9.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.3815, allocations: 137.9 kB / 480 MB, free: 9.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.3817, allocations: 225.1 kB / 480.2 MB, free: 9.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.026e-05/0.3818, allocations: 25.7 kB / 480.3 MB, free: 9.254 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/0.3819, allocations: 138.4 kB / 480.4 MB, free: 9.117 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.382, allocations: 185.2 kB / 480.6 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-05/0.3821, allocations: 0 / 480.6 MB, free: 8.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.799e-05/0.3822, allocations: 350.8 kB / 480.9 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006623/0.3829, allocations: 469.5 kB / 481.4 MB, free: 8.125 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007647/0.3836, allocations: 0.6329 MB / 482 MB, free: 7.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006112/0.3843, allocations: 421.3 kB / 482.4 MB, free: 7.004 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3843, allocations: 0 / 482.4 MB, free: 7.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001689/0.386, allocations: 1.062 MB / 483.5 MB, free: 5.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.386, allocations: 4.844 kB / 483.5 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.386, allocations: 8 kB / 483.5 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.386, allocations: 8 kB / 483.5 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.3875, allocations: 240 kB / 483.7 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.3875, allocations: 15.98 kB / 483.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009991/0.3885, allocations: 115.7 kB / 483.9 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.4e-05/0.3886, allocations: 27.98 kB / 483.9 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.0002098/0.3888, allocations: 128.8 kB / 484 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002805/0.3891, allocations: 149 kB / 484.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.3893, allocations: 47.39 kB / 484.2 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.3893, allocations: 8 kB / 484.2 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3893, allocations: 8 kB / 484.2 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3893, allocations: 3.984 kB / 484.2 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003535/0.3928, allocations: 1.915 MB / 486.1 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.3929, allocations: 12 kB / 486.2 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008152/0.3937, allocations: 211.9 kB / 486.4 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/0.3937, allocations: 20 kB / 486.4 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.77e-05/0.3938, allocations: 15.98 kB / 486.4 MB, free: 2.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.389e-05/0.3938, allocations: 23.84 kB / 486.4 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/0.3938, allocations: 11.94 kB / 486.4 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001639/0.3954, allocations: 1.716 MB / 488.2 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002036/0.3975, allocations: 2.359 MB / 490.5 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.3977, allocations: 184.5 kB / 490.7 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.25e-05/0.3978, allocations: 19.98 kB / 490.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006585/0.3985, allocations: 91.92 kB / 490.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.3987, allocations: 99.62 kB / 490.9 MB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.3987, allocations: 32 kB / 490.9 MB, free: 13.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001524/0.3989, allocations: 177.2 kB / 491.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001278/0.4002, allocations: 108.2 kB / 491.2 MB, free: 13.16 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.0001599/0.4003, allocations: 126.9 kB / 491.3 MB, free: 13.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.4016, allocations: 0.8351 MB / 492.2 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4016, allocations: 0 / 492.2 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004017/0.402, allocations: 221.6 kB / 492.4 MB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006083/0.4026, allocations: 122.7 kB / 492.5 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.4046, allocations: 0.9868 MB / 493.5 MB, free: 10.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007183/0.4053, allocations: 0.8965 MB / 494.4 MB, free: 9.805 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4053, allocations: 0 / 494.4 MB, free: 9.805 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1)