Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.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.ReverseFlowMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",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.001599/0.001599, allocations: 187.6 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4637/0.4637, allocations: 90.85 MB / 99.07 MB, free: 14.92 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.263/1.263, allocations: 221.4 MB / 342.8 MB, free: 4.992 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.0009567/0.0009567, allocations: 95.08 kB / 415.5 MB, free: 9.688 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1681/0.169, allocations: 78.46 MB / 494 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.5402, allocations: 72.3 MB / 0.553 GB, free: 44.6 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.869/4.409, allocations: 1.854 GB / 2.407 GB, free: 205.2 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/4.409, allocations: 89.31 kB / 2.407 GB, free: 205.2 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 10.09/14.5, allocations: 2.842 GB / 5.249 GB, free: 39.37 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/14.5, allocations: 8.25 kB / 5.249 GB, free: 39.37 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0116/14.51, allocations: 1.545 MB / 5.251 GB, free: 39.2 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00851/14.52, allocations: 2.613 MB / 5.253 GB, free: 38.61 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001329/14.52, allocations: 379.8 kB / 5.254 GB, free: 38.6 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/14.52, allocations: 135 kB / 5.254 GB, free: 38.6 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005199/14.53, allocations: 2.546 MB / 5.256 GB, free: 38.59 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004269/14.53, allocations: 2.413 MB / 5.259 GB, free: 38.18 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.807e-05/14.53, allocations: 3.344 kB / 5.259 GB, free: 38.18 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/14.53, allocations: 5.812 kB / 5.259 GB, free: 38.18 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.941e-05/14.53, allocations: 88.31 kB / 5.259 GB, free: 38.17 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02426/14.56, allocations: 13.85 MB / 5.272 GB, free: 30.65 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/14.56, allocations: 1.406 MB / 5.274 GB, free: 30.43 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008263/14.56, allocations: 0.6308 MB / 5.274 GB, free: 30.41 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007467/14.56, allocations: 0.647 MB / 5.275 GB, free: 29.76 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/14.56, allocations: 49.31 kB / 5.275 GB, free: 29.72 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=110): time 3.687e-06/14.56, allocations: 0 / 5.275 GB, free: 29.72 MB / 0.7136 GB Notification: Performance of matching and sorting (n=110): time 0.004053/14.56, allocations: 1.647 MB / 5.276 GB, free: 29.55 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/14.56, allocations: 68.38 kB / 5.277 GB, free: 29.48 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/14.57, allocations: 1.569 MB / 5.278 GB, free: 29.25 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002573/14.57, allocations: 33.36 kB / 5.278 GB, free: 29.22 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006376/14.57, allocations: 0.9583 MB / 5.279 GB, free: 28.65 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003519/14.57, allocations: 369.7 kB / 5.279 GB, free: 28.41 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/14.57, allocations: 7.312 kB / 5.279 GB, free: 28.41 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001267/14.57, allocations: 369.1 kB / 5.28 GB, free: 28.1 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/14.57, allocations: 0.6944 MB / 5.28 GB, free: 28.1 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/14.57, allocations: 1.34 MB / 5.282 GB, free: 27.32 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00247/14.57, allocations: 1.228 MB / 5.283 GB, free: 27.28 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/14.57, allocations: 7.188 kB / 5.283 GB, free: 27.28 MB / 0.7136 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004841/14.58, allocations: 2.438 MB / 5.285 GB, free: 27.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001179/14.58, allocations: 5.562 MB / 5.291 GB, free: 21.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/14.58, allocations: 12.62 kB / 5.291 GB, free: 21.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.014e-05/14.58, allocations: 25.12 kB / 5.291 GB, free: 21.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003176/14.58, allocations: 0.5885 MB / 5.291 GB, free: 21.22 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/14.58, allocations: 2.412 MB / 5.294 GB, free: 18.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004172/14.59, allocations: 0.4999 MB / 5.294 GB, free: 18.78 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002732/14.59, allocations: 91.62 kB / 5.294 GB, free: 18.78 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/14.59, allocations: 3.156 kB / 5.294 GB, free: 18.78 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004359/14.59, allocations: 2.183 MB / 5.296 GB, free: 18.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.514e-05/14.59, allocations: 15.91 kB / 5.296 GB, free: 18.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.311e-05/14.59, allocations: 22.78 kB / 5.296 GB, free: 18.68 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/14.6, allocations: 0.5475 MB / 5.297 GB, free: 18.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-05/14.6, allocations: 36.44 kB / 5.297 GB, free: 18.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003667/14.6, allocations: 406 kB / 5.297 GB, free: 18.58 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002823/14.6, allocations: 92.94 kB / 5.298 GB, free: 18.58 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006953/14.6, allocations: 161.6 kB / 5.298 GB, free: 18.44 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006266/14.6, allocations: 221.1 kB / 5.298 GB, free: 18.33 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0034/14.61, allocations: 1.693 MB / 5.3 GB, free: 17.86 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/14.61, allocations: 8.094 kB / 5.3 GB, free: 17.86 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/14.61, allocations: 4.438 kB / 5.3 GB, free: 17.86 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/14.61, allocations: 3.469 kB / 5.3 GB, free: 17.86 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008683/14.61, allocations: 4.046 MB / 5.304 GB, free: 16.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/14.61, allocations: 5.844 kB / 5.304 GB, free: 16.14 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/14.62, allocations: 331.3 kB / 5.304 GB, free: 16.11 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-05/14.62, allocations: 8.75 kB / 5.304 GB, free: 16.11 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.937e-05/14.62, allocations: 15.58 kB / 5.304 GB, free: 16.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007955/14.62, allocations: 2.385 MB / 5.306 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/14.62, allocations: 9.344 kB / 5.306 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003206/14.62, allocations: 2.247 MB / 5.308 GB, free: 12.17 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004648/14.62, allocations: 3.082 MB / 5.311 GB, free: 9 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/14.63, allocations: 0.5116 MB / 5.312 GB, free: 8.547 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004318/14.63, allocations: 10.67 kB / 5.312 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/14.63, allocations: 264.3 kB / 5.312 GB, free: 8.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/14.63, allocations: 76.48 kB / 5.312 GB, free: 8.289 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001958/14.63, allocations: 65.59 kB / 5.312 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.00203/14.63, allocations: 1.155 MB / 5.313 GB, free: 7.172 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01155/14.64, allocations: 3.599 MB / 5.317 GB, free: 3.613 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01283/14.66, allocations: 8.264 MB / 5.325 GB, free: 12.03 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.007892/14.66, allocations: 2.818 MB / 5.328 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-05/14.66, allocations: 5.25 kB / 5.328 GB, free: 9.43 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/14.67, allocations: 0.6622 MB / 5.328 GB, free: 8.824 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004703/14.67, allocations: 0.707 MB / 5.329 GB, free: 8.285 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008777/14.68, allocations: 3.255 MB / 5.332 GB, free: 5.211 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/14.68, allocations: 1.972 MB / 5.334 GB, free: 3.633 MB / 0.7292 GB Notification: Performance of SimCode: time 9.92e-07/14.68, allocations: 4 kB / 5.334 GB, free: 3.629 MB / 0.7292 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)