Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",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.0009937/0.0009937, allocations: 185.7 kB / 8.137 MB, free: 2.184 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.103/1.103, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0008767/0.0008767, allocations: 101.3 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09351/0.09441, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.2876, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08293/0.3706, allocations: 77.25 MB / 464.3 MB, free: 9.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.3708, allocations: 87.89 kB / 464.3 MB, free: 9.453 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0107/0.3815, allocations: 3.65 MB / 468 MB, free: 5.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3816, allocations: 8 kB / 468 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.262e-05/0.3816, allocations: 28.19 kB / 468 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.382, allocations: 303 kB / 468.3 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.3821, allocations: 15.89 kB / 468.3 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.3821, allocations: 8 kB / 468.3 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001404/0.3822, allocations: 61.97 kB / 468.4 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.3824, allocations: 105.6 kB / 468.5 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3824, allocations: 1.812 kB / 468.5 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.3825, allocations: 0 / 468.5 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3825, allocations: 4 kB / 468.5 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007254/0.3832, allocations: 0.4967 MB / 469 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.3834, allocations: 130.6 kB / 469.1 MB, free: 4.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.3835, allocations: 44.86 kB / 469.2 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.3835, allocations: 4 kB / 469.2 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.3836, allocations: 34.75 kB / 469.2 MB, free: 4.434 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.253e-06/0.3836, allocations: 0 / 469.2 MB, free: 4.434 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001196/0.3848, allocations: 0.5759 MB / 469.8 MB, free: 3.809 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.3848, allocations: 55.41 kB / 469.9 MB, free: 3.742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.3851, allocations: 279.8 kB / 470.1 MB, free: 3.469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.3851, allocations: 25.7 kB / 470.1 MB, free: 3.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.159e-05/0.3852, allocations: 132.2 kB / 470.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.3852, allocations: 59.09 kB / 470.3 MB, free: 3.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.3853, allocations: 4 kB / 470.3 MB, free: 3.238 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.3854, allocations: 335.6 kB / 470.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.569e-05/0.3855, allocations: 52.38 kB / 470.7 MB, free: 2.852 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.3856, allocations: 56.55 kB / 470.8 MB, free: 2.797 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.3857, allocations: 61.48 kB / 470.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.3857, allocations: 0 / 470.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002903/0.386, allocations: 201.7 kB / 471 MB, free: 2.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.386, allocations: 12 kB / 471 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.386, allocations: 0 / 471 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.689e-06/0.386, allocations: 0.9375 kB / 471 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.3863, allocations: 59.95 kB / 471.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3864, allocations: 0 / 471.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.3865, allocations: 8.844 kB / 471.1 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.3865, allocations: 8 kB / 471.1 MB, free: 2.453 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 6.979e-05/0.3866, allocations: 108.9 kB / 471.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.596e-05/0.3867, allocations: 27.62 kB / 471.3 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003313/0.387, allocations: 196.3 kB / 471.4 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.387, allocations: 0 / 471.4 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.387, allocations: 4 kB / 471.4 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.387, allocations: 0.6562 kB / 471.4 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002953/0.3873, allocations: 282 kB / 471.7 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3874, allocations: 5.312 kB / 471.7 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004025/0.3878, allocations: 67.89 kB / 471.8 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3878, allocations: 0 / 471.8 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.3878, allocations: 7.984 kB / 471.8 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3878, allocations: 3.906 kB / 471.8 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3878, allocations: 3.359 kB / 471.8 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004244/0.3883, allocations: 359.6 kB / 472.2 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006015/0.3889, allocations: 0.8086 MB / 473 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.932e-05/0.3889, allocations: 101.8 kB / 473.1 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.56e-05/0.389, allocations: 7.984 kB / 473.1 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3892, allocations: 7.906 kB / 473.1 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.3893, allocations: 11.98 kB / 473.1 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3893, allocations: 11.92 kB / 473.1 MB, free: 380 kB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002042/0.3895, allocations: 227.1 kB / 473.3 MB, free: 152 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.000821/0.3903, allocations: 44 kB / 473.4 MB, free: 108 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0001412/0.3905, allocations: 111.1 kB / 473.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000248/0.3907, allocations: 139 kB / 473.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.3907, allocations: 0 / 473.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.3909, allocations: 83.83 kB / 473.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.3911, allocations: 25.09 kB / 473.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3923, allocations: 0.584 MB / 474.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003996/0.3927, allocations: 0.817 MB / 475.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3927, allocations: 0 / 475.1 MB, free: 14.29 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat does not exist to compare? outputFormat=mat