Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001121/0.001121, allocations: 198.6 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009261/0.0009263, allocations: 91.94 kB / 286.3 MB, free: 5.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1038/0.1048, allocations: 56.9 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/0.1945, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2466/0.4412, allocations: 78.88 MB / 473.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.4414, allocations: 73.77 kB / 473.7 MB, free: 12.95 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.007521/0.4489, allocations: 2.909 MB / 476.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.449, allocations: 8 kB / 476.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.449, allocations: 23.72 kB / 476.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.4492, allocations: 208.7 kB / 476.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.4492, allocations: 4 kB / 476.8 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.4493, allocations: 8 kB / 476.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001453/0.4494, allocations: 60.81 kB / 476.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.4497, allocations: 219.2 kB / 477.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4497, allocations: 3.094 kB / 477.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.4498, allocations: 0 / 477.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.4498, allocations: 4 kB / 477.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.4502, allocations: 0.5632 MB / 477.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002183/0.4505, allocations: 122.7 kB / 477.8 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.213e-05/0.4505, allocations: 57.89 kB / 477.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.4506, allocations: 7.188 kB / 477.8 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.437e-05/0.4506, allocations: 42.31 kB / 477.9 MB, free: 9.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.4506, allocations: 0 / 477.9 MB, free: 9.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002442/0.4509, allocations: 103.6 kB / 478 MB, free: 9.871 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.4509, allocations: 106.8 kB / 478.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/0.451, allocations: 144.8 kB / 478.2 MB, free: 9.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.451, allocations: 25.7 kB / 478.2 MB, free: 9.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.958e-05/0.4511, allocations: 110.9 kB / 478.4 MB, free: 9.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.4511, allocations: 22.59 kB / 478.4 MB, free: 9.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.4511, allocations: 0 / 478.4 MB, free: 9.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.962e-05/0.4511, allocations: 324.6 kB / 478.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.871e-05/0.4512, allocations: 18.75 kB / 478.7 MB, free: 9.137 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.07e-05/0.4512, allocations: 123.8 kB / 478.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.628e-05/0.4513, allocations: 38.23 kB / 478.9 MB, free: 8.957 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.4513, allocations: 3.938 kB / 478.9 MB, free: 8.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001844/0.4515, allocations: 147 kB / 479 MB, free: 8.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.4515, allocations: 8 kB / 479 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4515, allocations: 4 kB / 479 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.4515, allocations: 7.422 kB / 479 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.4517, allocations: 53.58 kB / 479.1 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.4517, allocations: 4 kB / 479.1 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.4518, allocations: 23.45 kB / 479.1 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.4519, allocations: 10.44 kB / 479.1 MB, free: 8.742 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 4.798e-05/0.4519, allocations: 123.6 kB / 479.2 MB, free: 8.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.4521, allocations: 78.78 kB / 479.3 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.335e-05/0.4521, allocations: 22.44 kB / 479.3 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4521, allocations: 4 kB / 479.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.4521, allocations: 0 / 479.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4522, allocations: 0 / 479.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.4523, allocations: 187.4 kB / 479.5 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4523, allocations: 4 kB / 479.5 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.4525, allocations: 38.8 kB / 479.6 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.4526, allocations: 4 kB / 479.6 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.4526, allocations: 0 / 479.6 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.4526, allocations: 3.938 kB / 479.6 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4526, allocations: 4 kB / 479.6 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002408/0.4528, allocations: 360.9 kB / 479.9 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002951/0.4531, allocations: 0.7611 MB / 480.7 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.4532, allocations: 108.5 kB / 480.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.4532, allocations: 7.469 kB / 480.8 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.4534, allocations: 4 kB / 480.8 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.4534, allocations: 14.95 kB / 480.8 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.4535, allocations: 4 kB / 480.8 MB, free: 7.113 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.022e-05/0.4535, allocations: 117.2 kB / 481 MB, free: 7.012 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008852/0.4544, allocations: 35.69 kB / 481 MB, free: 6.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 8.692e-05/0.4545, allocations: 99.25 kB / 481.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.4546, allocations: 86.72 kB / 481.2 MB, free: 6.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4546, allocations: 4 kB / 481.2 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/0.4547, allocations: 11.38 kB / 481.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.455, allocations: 63.19 kB / 481.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000498/0.4555, allocations: 292.5 kB / 481.5 MB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.4557, allocations: 0.7498 MB / 482.3 MB, free: 5.738 MB / 346.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4558, allocations: 0 / 482.3 MB, free: 5.738 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1)