Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.001484/0.001484, allocations: 188.8 kB / 7.806 MB, free: 2.23 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4634/0.4634, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 221.4 MB / 342.8 MB, free: 5.109 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 107.1 kB / 415.5 MB, free: 6.406 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1614/0.1626, allocations: 78.44 MB / 494 MB, free: 7.945 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.5021, allocations: 72.3 MB / 0.553 GB, free: 73.43 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5733/1.075, allocations: 371.2 MB / 0.9155 GB, free: 3.523 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/1.076, allocations: 91.19 kB / 0.9156 GB, free: 3.48 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 1.39/2.466, allocations: 445.6 MB / 1.351 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/2.466, allocations: 14.78 kB / 1.351 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007449/2.466, allocations: 130.5 kB / 1.351 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0294/2.496, allocations: 13 MB / 1.364 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/2.496, allocations: 31.92 kB / 1.364 GB, free: 44.68 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/2.496, allocations: 48 kB / 1.364 GB, free: 44.63 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0011/2.497, allocations: 451.9 kB / 1.364 GB, free: 44.19 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/2.499, allocations: 0.6305 MB / 1.365 GB, free: 43.52 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/2.499, allocations: 3.938 kB / 1.365 GB, free: 43.52 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.581e-05/2.499, allocations: 4 kB / 1.365 GB, free: 43.51 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.134e-05/2.499, allocations: 31.89 kB / 1.365 GB, free: 43.48 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004866/2.504, allocations: 3.54 MB / 1.368 GB, free: 39.79 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/2.504, allocations: 197.8 kB / 1.368 GB, free: 39.59 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/2.504, allocations: 148.8 kB / 1.369 GB, free: 39.44 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005156/2.505, allocations: 0.6606 MB / 1.369 GB, free: 38.63 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/2.505, allocations: 42.41 kB / 1.369 GB, free: 38.58 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=31): time 2.726e-06/2.505, allocations: 4 kB / 1.369 GB, free: 38.58 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31): time 0.001034/2.506, allocations: 357 kB / 1.37 GB, free: 38.22 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.252e-05/2.506, allocations: 55.41 kB / 1.37 GB, free: 38.16 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/2.507, allocations: 0.6415 MB / 1.37 GB, free: 37.51 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.916e-05/2.507, allocations: 25.7 kB / 1.37 GB, free: 37.48 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/2.507, allocations: 378.9 kB / 1.371 GB, free: 37.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/2.508, allocations: 106.4 kB / 1.371 GB, free: 37 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/2.508, allocations: 0 / 1.371 GB, free: 37 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.705e-05/2.508, allocations: 330 kB / 1.371 GB, free: 36.67 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/2.508, allocations: 117 kB / 1.371 GB, free: 36.55 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/2.508, allocations: 328.9 kB / 1.371 GB, free: 36.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004291/2.509, allocations: 193.8 kB / 1.372 GB, free: 35.96 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/2.509, allocations: 0 / 1.372 GB, free: 35.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0008854/2.51, allocations: 495.9 kB / 1.372 GB, free: 35.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/2.51, allocations: 4 kB / 1.372 GB, free: 35.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/2.51, allocations: 8 kB / 1.372 GB, free: 35.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/2.51, allocations: 8 kB / 1.372 GB, free: 35.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004056/2.51, allocations: 120.5 kB / 1.372 GB, free: 35.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/2.51, allocations: 8 kB / 1.372 GB, free: 35.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007342/2.511, allocations: 87.38 kB / 1.372 GB, free: 35.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-05/2.511, allocations: 24 kB / 1.372 GB, free: 35.21 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * 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 0.0001048/2.511, allocations: 124.7 kB / 1.372 GB, free: 35.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/2.511, allocations: 86.97 kB / 1.373 GB, free: 35 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008266/2.512, allocations: 440.1 kB / 1.373 GB, free: 34.55 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/2.512, allocations: 4 kB / 1.373 GB, free: 34.55 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/2.512, allocations: 0 / 1.373 GB, free: 34.55 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005053/2.512, allocations: 409.9 kB / 1.373 GB, free: 34.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/2.514, allocations: 1.22 MB / 1.375 GB, free: 32.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/2.514, allocations: 0 / 1.375 GB, free: 32.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/2.515, allocations: 91.95 kB / 1.375 GB, free: 32.75 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/2.515, allocations: 4 kB / 1.375 GB, free: 32.75 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/2.515, allocations: 3.938 kB / 1.375 GB, free: 32.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/2.515, allocations: 6.5 kB / 1.375 GB, free: 32.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/2.515, allocations: 7.984 kB / 1.375 GB, free: 32.73 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009058/2.516, allocations: 0.7552 MB / 1.375 GB, free: 31.91 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001153/2.517, allocations: 1.362 MB / 1.377 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003333/2.517, allocations: 227.9 kB / 1.377 GB, free: 30.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/2.517, allocations: 0 / 1.377 GB, free: 30.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/2.518, allocations: 59.86 kB / 1.377 GB, free: 30.19 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/2.518, allocations: 27.95 kB / 1.377 GB, free: 30.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/2.518, allocations: 19.98 kB / 1.377 GB, free: 30.14 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0005255/2.519, allocations: 499.1 kB / 1.378 GB, free: 29.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00187/2.52, allocations: 443.1 kB / 1.378 GB, free: 29.23 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0009645/2.521, allocations: 0.5523 MB / 1.378 GB, free: 28.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004897/2.522, allocations: 331.5 kB / 1.379 GB, free: 28.39 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/2.522, allocations: 0 / 1.379 GB, free: 28.39 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002162/2.522, allocations: 169.4 kB / 1.379 GB, free: 28.22 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/2.524, allocations: 469.6 kB / 1.379 GB, free: 27.78 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/2.526, allocations: 1.182 MB / 1.381 GB, free: 26.56 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006569/2.527, allocations: 1.144 MB / 1.382 GB, free: 25.39 MB / 0.6042 GB Notification: Performance of SimCode: time 4.31e-07/2.527, allocations: 4 kB / 1.382 GB, free: 25.39 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)