Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001123/0.001123, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009114/0.0009112, allocations: 94.72 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09652/0.09746, allocations: 56.91 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08339/0.1809, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2142/0.3951, allocations: 78.08 MB / 472.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.3953, allocations: 80.7 kB / 472.9 MB, free: 13.65 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.009916/0.4053, allocations: 3.717 MB / 476.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.4053, allocations: 8 kB / 476.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.345e-05/0.4054, allocations: 31.62 kB / 476.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.4057, allocations: 306.4 kB / 476.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.4057, allocations: 0 / 476.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.4057, allocations: 8 kB / 476.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001315/0.4059, allocations: 60.14 kB / 477 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.406, allocations: 103.3 kB / 477.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.4061, allocations: 0 / 477.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.4061, allocations: 4 kB / 477.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4061, allocations: 4 kB / 477.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006344/0.4067, allocations: 0.4962 MB / 477.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.4069, allocations: 126 kB / 477.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.246e-05/0.407, allocations: 49.81 kB / 477.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.407, allocations: 8 kB / 477.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.407, allocations: 33.88 kB / 477.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.223e-06/0.4071, allocations: 0 / 477.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001089/0.4081, allocations: 0.5654 MB / 478.4 MB, free: 9.875 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.774e-05/0.4082, allocations: 58.8 kB / 478.4 MB, free: 9.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.4084, allocations: 278.9 kB / 478.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.4085, allocations: 25.7 kB / 478.7 MB, free: 9.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.874e-05/0.4085, allocations: 126.4 kB / 478.9 MB, free: 9.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.4085, allocations: 59.53 kB / 478.9 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.4086, allocations: 3 kB / 478.9 MB, free: 9.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.521e-05/0.4086, allocations: 337.1 kB / 479.2 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.861e-05/0.4087, allocations: 58.94 kB / 479.3 MB, free: 9.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.29e-05/0.4088, allocations: 55.66 kB / 479.4 MB, free: 9.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.774e-05/0.4089, allocations: 63.48 kB / 479.4 MB, free: 9.012 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.4089, allocations: 0 / 479.4 MB, free: 9.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002639/0.4092, allocations: 200.5 kB / 479.6 MB, free: 8.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.4092, allocations: 8 kB / 479.6 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.4092, allocations: 0 / 479.6 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.4092, allocations: 0 / 479.6 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.4095, allocations: 57.89 kB / 479.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.4095, allocations: 7.938 kB / 479.7 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.4097, allocations: 11.09 kB / 479.7 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.4097, allocations: 7.062 kB / 479.7 MB, free: 8.797 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 5.242e-05/0.4098, allocations: 104.5 kB / 479.8 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.311e-05/0.4099, allocations: 27.62 kB / 479.8 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003113/0.4102, allocations: 199.9 kB / 480 MB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4102, allocations: 4 kB / 480 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.4102, allocations: 4 kB / 480 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4102, allocations: 0 / 480 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.4104, allocations: 287.7 kB / 480.3 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4105, allocations: 0 / 480.3 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003914/0.4109, allocations: 56.95 kB / 480.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4109, allocations: 0 / 480.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.4109, allocations: 8.609 kB / 480.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4109, allocations: 3.828 kB / 480.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4109, allocations: 0.7969 kB / 480.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003918/0.4113, allocations: 366 kB / 480.7 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004916/0.4118, allocations: 0.8052 MB / 481.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.696e-05/0.4119, allocations: 106.4 kB / 481.6 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.4119, allocations: 3.906 kB / 481.7 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.4121, allocations: 9.406 kB / 481.7 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.4122, allocations: 10.94 kB / 481.7 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.4122, allocations: 5.172 kB / 481.7 MB, free: 7.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002024/0.4124, allocations: 230.2 kB / 481.9 MB, free: 6.996 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000898/0.4133, allocations: 40.61 kB / 481.9 MB, free: 6.957 MB / 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.0001101/0.4134, allocations: 105.3 kB / 482 MB, free: 6.848 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002286/0.4137, allocations: 146.6 kB / 482.2 MB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4137, allocations: 0 / 482.2 MB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.4138, allocations: 77.42 kB / 482.3 MB, free: 6.703 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.4141, allocations: 27 kB / 482.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.4152, allocations: 0.5872 MB / 482.9 MB, free: 6.195 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/0.4155, allocations: 0.8099 MB / 483.7 MB, free: 5.387 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4155, allocations: 4 kB / 483.7 MB, free: 5.383 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat does not exist to compare? outputFormat=mat