Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/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.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="IDEAS_IDEAS_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.003417/0.003417, allocations: 179.6 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7318/0.7318, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.61/1.61, allocations: 221.3 MB / 395 MB, free: 10.24 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.001034/0.001034, allocations: 105.3 kB / 477.8 MB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4838/0.4848, allocations: 88.42 MB / 0.5529 GB, free: 88.99 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.6894, allocations: 82.29 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.649/5.338, allocations: 1.893 GB / 2.527 GB, free: 67.54 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/5.338, allocations: 87.95 kB / 2.527 GB, free: 67.46 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 4.107/9.445, allocations: 1.052 GB / 3.579 GB, free: 40.16 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/9.445, allocations: 11.94 kB / 3.579 GB, free: 40.14 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004211/9.449, allocations: 0.6637 MB / 3.58 GB, free: 39.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003268/9.453, allocations: 1.459 MB / 3.581 GB, free: 38 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003482/9.453, allocations: 122.2 kB / 3.581 GB, free: 37.88 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/9.453, allocations: 83.89 kB / 3.581 GB, free: 37.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001832/9.455, allocations: 1.024 MB / 3.582 GB, free: 36.77 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/9.457, allocations: 1.215 MB / 3.584 GB, free: 35.48 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/9.457, allocations: 7.938 kB / 3.584 GB, free: 35.48 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/9.457, allocations: 0 / 3.584 GB, free: 35.48 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.435e-05/9.457, allocations: 42.22 kB / 3.584 GB, free: 35.43 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007964/9.465, allocations: 5.958 MB / 3.589 GB, free: 29.29 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008697/9.466, allocations: 0.6034 MB / 3.59 GB, free: 28.68 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005742/9.467, allocations: 492.1 kB / 3.59 GB, free: 28.2 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006325/9.467, allocations: 486.5 kB / 3.591 GB, free: 27.64 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007067/9.468, allocations: 0.5435 MB / 3.591 GB, free: 27.07 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=87): time 6.422e-06/9.468, allocations: 3.797 kB / 3.591 GB, free: 27.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=95): time 0.008163/9.476, allocations: 3.158 MB / 3.595 GB, free: 23.87 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/9.476, allocations: 196.7 kB / 3.595 GB, free: 23.63 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/9.478, allocations: 0.9135 MB / 3.596 GB, free: 22.71 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.933e-05/9.478, allocations: 29.7 kB / 3.596 GB, free: 22.68 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000361/9.478, allocations: 490.6 kB / 3.596 GB, free: 22.19 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002542/9.478, allocations: 318.1 kB / 3.596 GB, free: 21.88 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.148e-05/9.478, allocations: 0 / 3.596 GB, free: 21.88 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.017e-05/9.478, allocations: 341.9 kB / 3.597 GB, free: 21.54 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/9.479, allocations: 385.8 kB / 3.597 GB, free: 21.16 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/9.48, allocations: 0.6068 MB / 3.598 GB, free: 20.46 MB / 0.6823 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.003969/9.483, allocations: 1.429 MB / 3.599 GB, free: 19.03 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/9.484, allocations: 4 kB / 3.599 GB, free: 19.02 MB / 0.6823 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00368/9.487, allocations: 1.618 MB / 3.601 GB, free: 17.39 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003063/9.488, allocations: 1.251 MB / 3.602 GB, free: 16.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/9.488, allocations: 0 / 3.602 GB, free: 16.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009891/9.489, allocations: 416.6 kB / 3.602 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007728/9.489, allocations: 179.8 kB / 3.602 GB, free: 15.49 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006119/9.495, allocations: 6.333 MB / 3.609 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001773/9.497, allocations: 119.9 kB / 3.609 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/9.497, allocations: 40.05 kB / 3.609 GB, free: 8.641 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/9.497, allocations: 6.656 kB / 3.609 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003431/9.501, allocations: 1.422 MB / 3.61 GB, free: 7.211 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/9.501, allocations: 0 / 3.61 GB, free: 7.211 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009387/9.502, allocations: 410.9 kB / 3.611 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007346/9.503, allocations: 183.7 kB / 3.611 GB, free: 6.629 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006919/9.509, allocations: 7.197 MB / 3.618 GB, free: 14.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/9.512, allocations: 127.7 kB / 3.618 GB, free: 14.85 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/9.512, allocations: 40.05 kB / 3.618 GB, free: 14.81 MB / 0.698 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 (87): * Single equations (assignments): 82 * 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 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006185/9.513, allocations: 166.6 kB / 3.618 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000365/9.513, allocations: 154.1 kB / 3.618 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004202/9.517, allocations: 1.413 MB / 3.62 GB, free: 13.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/9.517, allocations: 19.94 kB / 3.62 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/9.517, allocations: 0 / 3.62 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003131/9.52, allocations: 1.288 MB / 3.621 GB, free: 11.71 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007287/9.528, allocations: 3.124 MB / 3.624 GB, free: 8.508 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/9.528, allocations: 4 kB / 3.624 GB, free: 8.504 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/9.529, allocations: 196.2 kB / 3.624 GB, free: 8.312 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005367/9.529, allocations: 185.7 kB / 3.624 GB, free: 8.125 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.201e-05/9.529, allocations: 19.98 kB / 3.624 GB, free: 8.105 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003406/9.533, allocations: 2.411 MB / 3.627 GB, free: 5.555 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.77e-05/9.533, allocations: 7.906 kB / 3.627 GB, free: 5.547 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004951/9.538, allocations: 2.372 MB / 3.629 GB, free: 2.98 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006227/9.544, allocations: 3.509 MB / 3.632 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/9.545, allocations: 363 kB / 3.633 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002768/9.546, allocations: 8 kB / 3.633 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/9.547, allocations: 139.7 kB / 3.633 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/9.547, allocations: 56.48 kB / 3.633 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-05/9.547, allocations: 39.98 kB / 3.633 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.001267/9.549, allocations: 0.6992 MB / 3.634 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.006629/9.555, allocations: 1.56 MB / 3.635 GB, free: 12.4 MB / 0.7136 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 (82): * Single equations (assignments): 79 * 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.004252/9.56, allocations: 2.631 MB / 3.638 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003919/9.563, allocations: 2.396 MB / 3.64 GB, free: 7.184 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/9.564, allocations: 4 kB / 3.64 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001119/9.565, allocations: 0.6626 MB / 3.641 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004106/9.569, allocations: 0.6825 MB / 3.641 GB, free: 5.824 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007031/9.576, allocations: 2.634 MB / 3.644 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/9.577, allocations: 1.501 MB / 3.646 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of SimCode: time 1.664e-06/9.577, allocations: 0 / 3.646 GB, free: 1.566 MB / 0.7136 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)