Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EntropyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EntropyFlowRate",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/BuildingSystems 2.0.0-master/package.mo): time 0.7198/0.7198, allocations: 141.8 MB / 149.1 MB, free: 12.36 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 186.4 kB / 181.9 MB, free: 9.059 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.3 MB / 436 MB, free: 1.16 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 97.44 kB / 0.507 GB, free: 10.05 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001753/0.001752, allocations: 260.5 kB / 0.5884 GB, free: 6.883 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1934/0.1952, allocations: 89.65 MB / 0.676 GB, free: 13.14 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.5652, allocations: 82.77 MB / 0.7568 GB, free: 138 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.277/3.842, allocations: 1.829 GB / 2.585 GB, free: 202.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/3.842, allocations: 96.55 kB / 2.585 GB, free: 202.8 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.9447/4.787, allocations: 306.9 MB / 2.885 GB, free: 164.7 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/4.787, allocations: 8 kB / 2.885 GB, free: 164.7 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/4.788, allocations: 143.3 kB / 2.885 GB, free: 164.5 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/4.789, allocations: 333.9 kB / 2.886 GB, free: 164.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.974e-05/4.789, allocations: 38.36 kB / 2.886 GB, free: 164.1 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/4.789, allocations: 19.94 kB / 2.886 GB, free: 164.1 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003848/4.79, allocations: 217.2 kB / 2.886 GB, free: 163.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/4.79, allocations: 302 kB / 2.886 GB, free: 163.6 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/4.79, allocations: 0 / 2.886 GB, free: 163.6 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/4.79, allocations: 4 kB / 2.886 GB, free: 163.6 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/4.79, allocations: 4 kB / 2.886 GB, free: 163.6 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/4.792, allocations: 1.413 MB / 2.888 GB, free: 162.1 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/4.792, allocations: 174.5 kB / 2.888 GB, free: 161.9 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/4.792, allocations: 96.81 kB / 2.888 GB, free: 161.8 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008077/4.793, allocations: 0.4999 MB / 2.888 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/4.793, allocations: 34.56 kB / 2.888 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/4.793, allocations: 0 / 2.888 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=15): time 0.0009861/4.794, allocations: 285.2 kB / 2.889 GB, free: 160.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/4.794, allocations: 55.41 kB / 2.889 GB, free: 160.8 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/4.794, allocations: 193.3 kB / 2.889 GB, free: 160.6 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/4.794, allocations: 25.7 kB / 2.889 GB, free: 160.6 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 7.669e-05/4.794, allocations: 168 kB / 2.889 GB, free: 160.4 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 3.618e-05/4.794, allocations: 59.08 kB / 2.889 GB, free: 160.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/4.794, allocations: 0 / 2.889 GB, free: 160.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.889e-05/4.794, allocations: 334.8 kB / 2.889 GB, free: 160 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/4.794, allocations: 67.97 kB / 2.889 GB, free: 159.9 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/4.795, allocations: 139.7 kB / 2.89 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/4.795, allocations: 135.9 kB / 2.89 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/4.795, allocations: 0 / 2.89 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007281/4.796, allocations: 285.1 kB / 2.89 GB, free: 159.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/4.796, allocations: 6.656 kB / 2.89 GB, free: 159.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/4.796, allocations: 4 kB / 2.89 GB, free: 159.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/4.796, allocations: 4.188 kB / 2.89 GB, free: 159.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/4.796, allocations: 47.91 kB / 2.89 GB, free: 159.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/4.796, allocations: 4 kB / 2.89 GB, free: 159.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/4.796, allocations: 39.67 kB / 2.89 GB, free: 159.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.013e-05/4.796, allocations: 11.98 kB / 2.89 GB, free: 159.3 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.748e-05/4.797, allocations: 112.9 kB / 2.89 GB, free: 159.1 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/4.797, allocations: 19.72 kB / 2.89 GB, free: 159.1 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007771/4.797, allocations: 318.7 kB / 2.891 GB, free: 158.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/4.797, allocations: 3.984 kB / 2.891 GB, free: 158.8 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/4.797, allocations: 8.062 kB / 2.891 GB, free: 158.8 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/4.797, allocations: 7.891 kB / 2.891 GB, free: 158.8 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/4.8, allocations: 1.242 MB / 2.892 GB, free: 157.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/4.8, allocations: 0 / 2.892 GB, free: 157.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/4.8, allocations: 48.25 kB / 2.892 GB, free: 157.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/4.8, allocations: 4 kB / 2.892 GB, free: 157.3 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/4.8, allocations: 4 kB / 2.892 GB, free: 157.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/4.8, allocations: 4 kB / 2.892 GB, free: 157.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/4.8, allocations: 7.938 kB / 2.892 GB, free: 157.3 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006317/4.8, allocations: 0.5266 MB / 2.892 GB, free: 156.7 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008729/4.801, allocations: 0.9644 MB / 2.893 GB, free: 155.6 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/4.801, allocations: 124.8 kB / 2.893 GB, free: 155.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/4.802, allocations: 4 kB / 2.893 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/4.802, allocations: 39.81 kB / 2.893 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/4.802, allocations: 19.98 kB / 2.893 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/4.802, allocations: 8 kB / 2.893 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of sort global known variables: time 9.714e-05/4.802, allocations: 153.2 kB / 2.894 GB, free: 155.2 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00168/4.804, allocations: 351.6 kB / 2.894 GB, free: 154.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.001883/4.806, allocations: 1.406 MB / 2.895 GB, free: 153.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003063/4.806, allocations: 183.8 kB / 2.895 GB, free: 153.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/4.806, allocations: 0 / 2.895 GB, free: 153.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/4.806, allocations: 96.77 kB / 2.896 GB, free: 153.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/4.807, allocations: 95.62 kB / 2.896 GB, free: 153.2 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008388/4.808, allocations: 438.2 kB / 2.896 GB, free: 152.8 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003613/4.808, allocations: 0.8255 MB / 2.897 GB, free: 151.9 MB / 0.6982 GB Notification: Performance of SimCode: time 2.61e-07/4.808, allocations: 0 / 2.897 GB, free: 151.9 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EntropyFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EntropyFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EntropyFlowRate.pipe 2>&1)