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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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 trunk/package.mo): time 0.001419/0.001419, allocations: 195.7 kB / 8.539 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.291/1.291, 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.0009564/0.0009565, allocations: 96.64 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1199/0.1209, allocations: 56.89 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.2315, allocations: 51.48 MB / 394.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.5214, allocations: 80.91 MB / 475.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.5217, allocations: 71.64 kB / 475.7 MB, free: 11.7 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.02059/0.5423, allocations: 7.508 MB / 483.2 MB, free: 6.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.5423, allocations: 8 kB / 483.2 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.587e-05/0.5424, allocations: 43.61 kB / 483.3 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.5427, allocations: 262.4 kB / 483.5 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/0.5429, allocations: 138.1 kB / 483.6 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/0.543, allocations: 16 kB / 483.7 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006388/0.5436, allocations: 415.8 kB / 484.1 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.5443, allocations: 454.4 kB / 484.5 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.5443, allocations: 9.094 kB / 484.5 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.5444, allocations: 0 / 484.5 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.5444, allocations: 8 kB / 484.5 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.5457, allocations: 0.978 MB / 485.5 MB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000771/0.5465, allocations: 367.3 kB / 485.9 MB, free: 3.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.5467, allocations: 191.2 kB / 486 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.205e-05/0.5468, allocations: 19.25 kB / 486.1 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.5468, allocations: 37.56 kB / 486.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.633e-06/0.5468, allocations: 3.938 kB / 486.1 MB, free: 3.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.008014/0.5548, allocations: 2.015 MB / 488.1 MB, free: 2.266 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.5549, allocations: 140.9 kB / 488.3 MB, free: 2.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.5551, allocations: 181 kB / 488.4 MB, free: 1.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.834e-05/0.5552, allocations: 29.7 kB / 488.5 MB, free: 1.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/0.5552, allocations: 135.4 kB / 488.6 MB, free: 1.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.5554, allocations: 183.2 kB / 488.8 MB, free: 1.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/0.5555, allocations: 3.938 kB / 488.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.527e-05/0.5555, allocations: 345.4 kB / 489.1 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006533/0.5562, allocations: 466.4 kB / 489.6 MB, free: 1.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006892/0.5569, allocations: 0.6355 MB / 490.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.5575, allocations: 417.7 kB / 490.6 MB, free: 392 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5575, allocations: 0 / 490.6 MB, free: 392 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001671/0.5592, allocations: 1.05 MB / 491.7 MB, free: 15.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.5592, allocations: 11.84 kB / 491.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.5592, allocations: 4 kB / 491.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.5593, allocations: 17.81 kB / 491.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.5608, allocations: 235.4 kB / 491.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.5608, allocations: 11.94 kB / 491.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.562, allocations: 119.7 kB / 492.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.5621, allocations: 35.19 kB / 492.1 MB, free: 15.33 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.0002508/0.5623, allocations: 120.7 kB / 492.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003771/0.5627, allocations: 145.4 kB / 492.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.5629, allocations: 37.27 kB / 492.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.5629, allocations: 8 kB / 492.4 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.5629, allocations: 4 kB / 492.4 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.5629, allocations: 3.984 kB / 492.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.5667, allocations: 1.913 MB / 494.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.5667, allocations: 12.97 kB / 494.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000873/0.5676, allocations: 207.1 kB / 494.5 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.129e-05/0.5676, allocations: 19.91 kB / 494.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.5677, allocations: 18.92 kB / 494.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.366e-05/0.5677, allocations: 15.94 kB / 494.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-05/0.5678, allocations: 15.94 kB / 494.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002043/0.5698, allocations: 1.717 MB / 496.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002358/0.5722, allocations: 2.357 MB / 498.7 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.5725, allocations: 166.8 kB / 498.8 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.066e-05/0.5726, allocations: 15.98 kB / 498.9 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007509/0.5733, allocations: 95.97 kB / 498.9 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.5735, allocations: 101.5 kB / 499 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.507e-05/0.5736, allocations: 27.31 kB / 499.1 MB, free: 8.547 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001387/0.5738, allocations: 144.3 kB / 499.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001339/0.5751, allocations: 108 kB / 499.3 MB, free: 8.32 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.0002045/0.5753, allocations: 127.2 kB / 499.4 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.5767, allocations: 0.8296 MB / 0.4885 GB, free: 7.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5767, allocations: 0 / 0.4885 GB, free: 7.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004541/0.5772, allocations: 218.1 kB / 0.4888 GB, free: 7.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006463/0.5778, allocations: 108.3 kB / 0.4889 GB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.58, allocations: 0.9431 MB / 0.4898 GB, free: 6.496 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007553/0.5808, allocations: 0.8759 MB / 0.4906 GB, free: 5.602 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5808, allocations: 0 / 0.4906 GB, free: 5.602 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1)