Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.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.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 186.2 kB / 8.136 MB, free: 2.219 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.141/1.141, allocations: 221.4 MB / 229.9 MB, free: 3.246 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.0009444/0.0009444, allocations: 92.14 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09838/0.09935, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.2891, allocations: 50.39 MB / 387 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08279/0.372, allocations: 78.2 MB / 465.2 MB, free: 8.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3722, allocations: 75.89 kB / 465.3 MB, free: 8.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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.01146/0.3837, allocations: 3.863 MB / 469.1 MB, free: 4.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3837, allocations: 12 kB / 469.1 MB, free: 4.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.355e-05/0.3838, allocations: 39.52 kB / 469.2 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3842, allocations: 303.3 kB / 469.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.3842, allocations: 4 kB / 469.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.3843, allocations: 11.98 kB / 469.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001757/0.3845, allocations: 87.45 kB / 469.6 MB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.385, allocations: 334.9 kB / 469.9 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.385, allocations: 0 / 469.9 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.385, allocations: 0 / 469.9 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.385, allocations: 4 kB / 469.9 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/0.3857, allocations: 0.4941 MB / 470.4 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.3863, allocations: 283.9 kB / 470.7 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.3865, allocations: 119.7 kB / 470.8 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.3866, allocations: 4 kB / 470.8 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.3866, allocations: 47.66 kB / 470.8 MB, free: 2.734 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.382e-06/0.3866, allocations: 0 / 470.8 MB, free: 2.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001821/0.3884, allocations: 1.072 MB / 471.9 MB, free: 1.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.058e-05/0.3885, allocations: 130.6 kB / 472 MB, free: 1.418 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.3888, allocations: 279.6 kB / 472.3 MB, free: 1.141 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.3889, allocations: 25.7 kB / 472.3 MB, free: 1.109 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.925e-05/0.3889, allocations: 104.8 kB / 472.4 MB, free: 1.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.389, allocations: 47.53 kB / 472.5 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-06/0.389, allocations: 4.031 kB / 472.5 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3891, allocations: 346.8 kB / 472.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.439e-05/0.3892, allocations: 48.88 kB / 472.9 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.3894, allocations: 269.5 kB / 473.1 MB, free: 192 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.3896, allocations: 108.7 kB / 473.2 MB, free: 84 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3896, allocations: 0 / 473.2 MB, free: 84 kB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004705/0.39, allocations: 314.6 kB / 473.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.3901, allocations: 4 kB / 473.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3901, allocations: 8 kB / 473.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.3901, allocations: 17.72 kB / 473.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.3904, allocations: 87.84 kB / 473.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.3904, allocations: 19.92 kB / 473.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.3906, allocations: 11.94 kB / 473.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.3906, allocations: 24.12 kB / 473.7 MB, free: 15.6 MB / 362.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 9.218e-05/0.3907, allocations: 128.8 kB / 473.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/0.3911, allocations: 253.1 kB / 474.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005328/0.3917, allocations: 328.3 kB / 474.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3917, allocations: 8.938 kB / 474.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.3917, allocations: 0 / 474.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3917, allocations: 7.984 kB / 474.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.392, allocations: 266 kB / 474.7 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.392, allocations: 4 kB / 474.7 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005874/0.3926, allocations: 120.5 kB / 474.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3926, allocations: 3.906 kB / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.3927, allocations: 4 kB / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3927, allocations: 0 / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3927, allocations: 5.375 kB / 474.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007481/0.3935, allocations: 0.65 MB / 475.5 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001028/0.3945, allocations: 1.148 MB / 476.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.681e-05/0.3946, allocations: 116.7 kB / 476.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.2e-05/0.3947, allocations: 11.78 kB / 476.8 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.3949, allocations: 11.92 kB / 476.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.395, allocations: 11.98 kB / 476.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.395, allocations: 12.06 kB / 476.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002106/0.3952, allocations: 223.1 kB / 477 MB, free: 12.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009689/0.3962, allocations: 48 kB / 477.1 MB, free: 12.14 MB / 362.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.0001269/0.3963, allocations: 111.1 kB / 477.2 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003657/0.3967, allocations: 233.8 kB / 477.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3967, allocations: 448 / 477.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.95e-05/0.3968, allocations: 33.06 kB / 477.4 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.3973, allocations: 171.5 kB / 477.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3984, allocations: 0.5448 MB / 478.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004281/0.3988, allocations: 0.8458 MB / 479 MB, free: 10.16 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3988, allocations: 0 / 479 MB, free: 10.16 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1)