Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_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.00298/0.00298, allocations: 182.9 kB / 7.46 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6849/0.6849, allocations: 133.5 MB / 141.4 MB, free: 15.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 221.3 MB / 395 MB, free: 10.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 95.41 kB / 477.8 MB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4475/0.4489, allocations: 88.43 MB / 0.5529 GB, free: 88.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.652, allocations: 82.31 MB / 0.6333 GB, free: 14.07 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.972, allocations: 380.9 MB / 1.005 GB, free: 253.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/1.973, allocations: 96.94 kB / 1.005 GB, free: 253.7 MB / 0.6823 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.3/3.273, allocations: 444.1 MB / 1.439 GB, free: 79.49 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/3.273, allocations: 8 kB / 1.439 GB, free: 79.48 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008326/3.274, allocations: 130.5 kB / 1.439 GB, free: 79.36 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03115/3.305, allocations: 13.01 MB / 1.452 GB, free: 66.33 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.131e-05/3.305, allocations: 24 kB / 1.452 GB, free: 66.31 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003035/3.305, allocations: 44 kB / 1.452 GB, free: 66.27 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001413/3.307, allocations: 451.9 kB / 1.452 GB, free: 65.82 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/3.308, allocations: 0.6306 MB / 1.453 GB, free: 65.16 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.226e-05/3.308, allocations: 3.938 kB / 1.453 GB, free: 65.15 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/3.308, allocations: 0 / 1.453 GB, free: 65.15 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.904e-05/3.308, allocations: 24 kB / 1.453 GB, free: 65.13 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005186/3.314, allocations: 3.539 MB / 1.457 GB, free: 61.43 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/3.314, allocations: 202.3 kB / 1.457 GB, free: 61.23 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/3.314, allocations: 145.4 kB / 1.457 GB, free: 61.09 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004604/3.315, allocations: 0.6644 MB / 1.458 GB, free: 60.28 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/3.315, allocations: 50.48 kB / 1.458 GB, free: 60.22 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=31): time 2.304e-06/3.315, allocations: 0 / 1.458 GB, free: 60.22 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31): time 0.0009492/3.316, allocations: 352.4 kB / 1.458 GB, free: 59.87 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/3.316, allocations: 55.39 kB / 1.458 GB, free: 59.8 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009332/3.317, allocations: 0.6376 MB / 1.459 GB, free: 59.16 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/3.317, allocations: 25.7 kB / 1.459 GB, free: 59.13 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/3.317, allocations: 382.9 kB / 1.459 GB, free: 58.75 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/3.317, allocations: 106.4 kB / 1.459 GB, free: 58.64 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/3.317, allocations: 7.938 kB / 1.459 GB, free: 58.63 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.77e-05/3.317, allocations: 322 kB / 1.459 GB, free: 58.31 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/3.318, allocations: 121 kB / 1.459 GB, free: 58.19 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/3.318, allocations: 325.8 kB / 1.46 GB, free: 57.78 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/3.318, allocations: 189.5 kB / 1.46 GB, free: 57.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/3.318, allocations: 3.938 kB / 1.46 GB, free: 57.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0008984/3.319, allocations: 499.8 kB / 1.46 GB, free: 57.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/3.319, allocations: 4 kB / 1.46 GB, free: 57.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/3.319, allocations: 8.688 kB / 1.46 GB, free: 57.09 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/3.319, allocations: 11.94 kB / 1.46 GB, free: 57.07 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004095/3.32, allocations: 123.8 kB / 1.461 GB, free: 56.95 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/3.32, allocations: 4 kB / 1.461 GB, free: 56.95 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007257/3.32, allocations: 87.39 kB / 1.461 GB, free: 56.86 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/3.321, allocations: 27.98 kB / 1.461 GB, free: 56.84 MB / 0.6823 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.0001205/3.321, allocations: 120.1 kB / 1.461 GB, free: 56.71 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/3.321, allocations: 82.97 kB / 1.461 GB, free: 56.63 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008243/3.322, allocations: 445.8 kB / 1.461 GB, free: 56.19 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/3.322, allocations: 4 kB / 1.461 GB, free: 56.18 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/3.322, allocations: 4 kB / 1.461 GB, free: 56.18 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005089/3.322, allocations: 405.9 kB / 1.462 GB, free: 55.75 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/3.324, allocations: 1.218 MB / 1.463 GB, free: 54.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/3.324, allocations: 0 / 1.463 GB, free: 54.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/3.324, allocations: 92.03 kB / 1.463 GB, free: 54.39 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/3.324, allocations: 7.906 kB / 1.463 GB, free: 54.38 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/3.324, allocations: 4 kB / 1.463 GB, free: 54.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/3.324, allocations: 0 / 1.463 GB, free: 54.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/3.324, allocations: 7.938 kB / 1.463 GB, free: 54.37 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008874/3.325, allocations: 0.7556 MB / 1.464 GB, free: 53.55 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001303/3.326, allocations: 1.355 MB / 1.465 GB, free: 52.14 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003477/3.327, allocations: 235.8 kB / 1.465 GB, free: 51.89 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/3.327, allocations: 4 kB / 1.465 GB, free: 51.88 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005469/3.328, allocations: 55.92 kB / 1.465 GB, free: 51.83 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.116e-05/3.328, allocations: 27.95 kB / 1.465 GB, free: 51.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/3.328, allocations: 19.92 kB / 1.465 GB, free: 51.78 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0005636/3.328, allocations: 0.4913 MB / 1.466 GB, free: 51.29 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00196/3.33, allocations: 443.1 kB / 1.466 GB, free: 50.86 MB / 0.6823 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.001038/3.331, allocations: 0.5596 MB / 1.467 GB, free: 50.34 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005475/3.332, allocations: 335.7 kB / 1.467 GB, free: 50.01 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/3.332, allocations: 1.375 kB / 1.467 GB, free: 50.01 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/3.332, allocations: 163.8 kB / 1.467 GB, free: 49.85 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/3.334, allocations: 458.9 kB / 1.468 GB, free: 49.41 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/3.336, allocations: 1.18 MB / 1.469 GB, free: 48.18 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006339/3.337, allocations: 1.152 MB / 1.47 GB, free: 47.01 MB / 0.6823 GB Notification: Performance of SimCode: time 4.31e-07/3.337, allocations: 0 / 1.47 GB, free: 47.01 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)