Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.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.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u",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.001215/0.001215, allocations: 188.1 kB / 7.806 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4668/0.4668, allocations: 90.85 MB / 99.07 MB, free: 14.97 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.302/1.302, allocations: 221.4 MB / 342.7 MB, free: 5.219 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.0009171/0.0009171, allocations: 96.33 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.181/0.182, allocations: 78.44 MB / 493.9 MB, free: 7.996 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.5664, allocations: 72.3 MB / 0.553 GB, free: 73.42 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.726/4.293, allocations: 1.884 GB / 2.437 GB, free: 192.3 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/4.293, allocations: 87.95 kB / 2.437 GB, free: 192.3 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 3.66/7.953, allocations: 1.053 GB / 3.49 GB, free: 52.96 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/7.953, allocations: 8 kB / 3.49 GB, free: 52.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0048/7.958, allocations: 0.66 MB / 3.491 GB, free: 52.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004333/7.962, allocations: 1.472 MB / 3.492 GB, free: 50.8 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/7.963, allocations: 122.1 kB / 3.492 GB, free: 50.68 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003044/7.963, allocations: 76 kB / 3.492 GB, free: 50.61 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001832/7.965, allocations: 1.024 MB / 3.493 GB, free: 49.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/7.967, allocations: 1.23 MB / 3.494 GB, free: 48.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/7.967, allocations: 7.938 kB / 3.494 GB, free: 48.28 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/7.967, allocations: 0 / 3.494 GB, free: 48.28 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-05/7.967, allocations: 46.2 kB / 3.494 GB, free: 48.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007861/7.975, allocations: 6.051 MB / 3.5 GB, free: 42 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/7.976, allocations: 0.6026 MB / 3.501 GB, free: 41.39 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005863/7.976, allocations: 484.1 kB / 3.501 GB, free: 40.91 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006126/7.977, allocations: 485.2 kB / 3.502 GB, free: 40.35 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007556/7.978, allocations: 0.5398 MB / 3.502 GB, free: 39.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=87): time 3.606e-06/7.978, allocations: 4 kB / 3.502 GB, free: 39.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=94): time 0.009997/7.988, allocations: 3.098 MB / 3.505 GB, free: 36.63 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/7.988, allocations: 200.7 kB / 3.506 GB, free: 36.39 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001527/7.989, allocations: 0.9135 MB / 3.507 GB, free: 35.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001041/7.989, allocations: 25.7 kB / 3.507 GB, free: 35.44 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/7.99, allocations: 492.5 kB / 3.507 GB, free: 34.96 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/7.99, allocations: 311.4 kB / 3.507 GB, free: 34.65 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/7.99, allocations: 0 / 3.507 GB, free: 34.65 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.938e-05/7.99, allocations: 345.8 kB / 3.508 GB, free: 34.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005187/7.991, allocations: 380.6 kB / 3.508 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006484/7.991, allocations: 0.581 MB / 3.509 GB, free: 33.28 MB / 0.6198 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004051/7.995, allocations: 1.418 MB / 3.51 GB, free: 31.85 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/7.995, allocations: 0 / 3.51 GB, free: 31.85 MB / 0.6198 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.003683/7.999, allocations: 1.586 MB / 3.512 GB, free: 30.25 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002425/7.999, allocations: 1.254 MB / 3.513 GB, free: 28.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/7.999, allocations: 4 kB / 3.513 GB, free: 28.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008953/8, allocations: 385.8 kB / 3.513 GB, free: 28.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007784/8.001, allocations: 191.7 kB / 3.513 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/8.007, allocations: 6.161 MB / 3.519 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/8.008, allocations: 123.8 kB / 3.519 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/8.009, allocations: 40.05 kB / 3.519 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.764e-06/8.009, allocations: 5.406 kB / 3.519 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003363/8.012, allocations: 1.388 MB / 3.521 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/8.012, allocations: 4 kB / 3.521 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009059/8.013, allocations: 391.7 kB / 3.521 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007535/8.014, allocations: 187.7 kB / 3.521 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006419/8.02, allocations: 7.02 MB / 3.528 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/8.022, allocations: 123.8 kB / 3.528 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/8.022, allocations: 40.05 kB / 3.528 GB, free: 12.08 MB / 0.6198 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 10,1 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004364/8.023, allocations: 165.3 kB / 3.529 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00023/8.023, allocations: 154.1 kB / 3.529 GB, free: 11.76 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003515/8.026, allocations: 1.405 MB / 3.53 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/8.026, allocations: 12 kB / 3.53 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/8.026, allocations: 0 / 3.53 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002779/8.029, allocations: 1.279 MB / 3.531 GB, free: 9.012 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00587/8.035, allocations: 3.095 MB / 3.534 GB, free: 5.832 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/8.035, allocations: 8.031 kB / 3.534 GB, free: 5.824 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009609/8.036, allocations: 191.7 kB / 3.535 GB, free: 5.637 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004167/8.036, allocations: 185.3 kB / 3.535 GB, free: 5.457 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-05/8.036, allocations: 23.98 kB / 3.535 GB, free: 5.434 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002472/8.039, allocations: 2.403 MB / 3.537 GB, free: 2.891 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/8.039, allocations: 11.94 kB / 3.537 GB, free: 2.879 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00396/8.043, allocations: 2.357 MB / 3.539 GB, free: 340 kB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006048/8.049, allocations: 3.493 MB / 3.543 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/8.05, allocations: 347.2 kB / 3.543 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/8.05, allocations: 19.89 kB / 3.543 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/8.052, allocations: 127.8 kB / 3.543 GB, free: 12.13 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/8.052, allocations: 60.48 kB / 3.543 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/8.052, allocations: 39.98 kB / 3.543 GB, free: 12.03 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001177/8.053, allocations: 0.7031 MB / 3.544 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.006426/8.06, allocations: 1.56 MB / 3.546 GB, free: 9.766 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004225/8.064, allocations: 2.624 MB / 3.548 GB, free: 7.328 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.004108/8.068, allocations: 2.372 MB / 3.55 GB, free: 4.871 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 9.248e-06/8.068, allocations: 4 kB / 3.55 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001151/8.069, allocations: 0.6588 MB / 3.551 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003938/8.073, allocations: 0.684 MB / 3.552 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00694/8.08, allocations: 2.627 MB / 3.554 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2961/8.376, allocations: 1.506 MB / 3.556 GB, free: 130 MB / 0.6355 GB Notification: Performance of SimCode: time 1.343e-06/8.376, allocations: 0 / 3.556 GB, free: 130 MB / 0.6355 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > IBPSA_latest_IBPSA.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)