Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.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.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",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.001112/0.001112, allocations: 199.2 kB / 8.535 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.184/1.184, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008436/0.0008436, allocations: 99.2 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1001/0.101, allocations: 56.89 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.1924, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.237/0.4295, allocations: 79.01 MB / 473.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/0.4297, allocations: 68.02 kB / 473.8 MB, free: 12.92 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.01044/0.4402, allocations: 3.932 MB / 477.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.4402, allocations: 12 kB / 477.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.4403, allocations: 35.53 kB / 477.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.4406, allocations: 299.9 kB / 478 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.4406, allocations: 8 kB / 478.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.4407, allocations: 15.91 kB / 478.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001568/0.4408, allocations: 74.62 kB / 478.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.4413, allocations: 325.4 kB / 478.5 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4413, allocations: 4 kB / 478.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.4413, allocations: 3.75 kB / 478.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.4413, allocations: 8.547 kB / 478.5 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.4419, allocations: 495.8 kB / 479 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000596/0.4425, allocations: 286.6 kB / 479.2 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.4427, allocations: 122 kB / 479.4 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.4427, allocations: 8.641 kB / 479.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.261e-05/0.4428, allocations: 35.09 kB / 479.4 MB, free: 9.117 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.653e-06/0.4428, allocations: 4 kB / 479.4 MB, free: 9.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001711/0.4445, allocations: 1.072 MB / 480.5 MB, free: 8.148 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.4446, allocations: 128.2 kB / 480.6 MB, free: 8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.4448, allocations: 276.8 kB / 480.9 MB, free: 7.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.4449, allocations: 25.7 kB / 480.9 MB, free: 7.758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.972e-05/0.4449, allocations: 107.8 kB / 481 MB, free: 7.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.4449, allocations: 46.28 kB / 481.1 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/0.445, allocations: 0 / 481.1 MB, free: 7.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.508e-05/0.445, allocations: 344 kB / 481.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.183e-05/0.4451, allocations: 51.69 kB / 481.4 MB, free: 7.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.4453, allocations: 272.7 kB / 481.7 MB, free: 6.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.4454, allocations: 105.7 kB / 481.8 MB, free: 6.836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4454, allocations: 3.906 kB / 481.8 MB, free: 6.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0003948/0.4458, allocations: 307.6 kB / 482.1 MB, free: 6.566 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.4458, allocations: 12.91 kB / 482.1 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4458, allocations: 8 kB / 482.1 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.4459, allocations: 12 kB / 482.1 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.4461, allocations: 87.28 kB / 482.2 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.4461, allocations: 20.95 kB / 482.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.4464, allocations: 15.94 kB / 482.3 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.4464, allocations: 19 kB / 482.3 MB, free: 6.402 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 7.95e-05/0.4465, allocations: 123.8 kB / 482.4 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000367/0.4468, allocations: 253.9 kB / 482.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/0.4474, allocations: 330.2 kB / 483 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.4474, allocations: 7.828 kB / 483 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4474, allocations: 4 kB / 483 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4474, allocations: 3.984 kB / 483 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002934/0.4477, allocations: 270.4 kB / 483.3 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4477, allocations: 0 / 483.3 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005966/0.4483, allocations: 129.4 kB / 483.4 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.4483, allocations: 4 kB / 483.4 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.4484, allocations: 0 / 483.4 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4484, allocations: 7.938 kB / 483.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4484, allocations: 3.375 kB / 483.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006428/0.449, allocations: 0.6343 MB / 484 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007994/0.4498, allocations: 1.168 MB / 485.2 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.106e-05/0.4499, allocations: 112.6 kB / 485.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.945e-05/0.45, allocations: 7.875 kB / 485.3 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.4502, allocations: 4 kB / 485.3 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.4503, allocations: 7.984 kB / 485.3 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.4503, allocations: 11.69 kB / 485.3 MB, free: 3.746 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001989/0.4505, allocations: 227.2 kB / 485.6 MB, free: 3.574 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001049/0.4516, allocations: 48 kB / 485.6 MB, free: 3.527 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.00013/0.4517, allocations: 111.2 kB / 485.7 MB, free: 3.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.4521, allocations: 244.2 kB / 486 MB, free: 3.227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4521, allocations: 0 / 486 MB, free: 3.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.954e-05/0.4521, allocations: 23.5 kB / 486 MB, free: 3.211 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005363/0.4527, allocations: 182 kB / 486.2 MB, free: 3.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009871/0.4537, allocations: 0.5369 MB / 486.7 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003051/0.454, allocations: 0.8496 MB / 487.5 MB, free: 1.711 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.454, allocations: 2.25 kB / 487.5 MB, free: 1.711 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1)