Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8133/0.8133, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009651/0.000965, allocations: 180.8 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009188/0.0009185, allocations: 85.56 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002168/0.002167, allocations: 270.1 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.578e-05/1.605e-05, allocations: 0 / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5002/0.5002, allocations: 82.77 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.392/5.892, allocations: 1.891 GB / 2.648 GB, free: 166.7 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/5.892, allocations: 87.95 kB / 2.649 GB, free: 166.6 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.363/10.26, allocations: 1.039 GB / 3.687 GB, free: 100.1 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.904e-06/10.26, allocations: 3.75 kB / 3.687 GB, free: 100.1 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001785/10.26, allocations: 45.36 kB / 3.687 GB, free: 100.1 MB / 0.7136 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 0.005314/10.26, allocations: 2.069 MB / 3.689 GB, free: 99.14 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/10.26, allocations: 7.781 kB / 3.689 GB, free: 99.14 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0045/10.27, allocations: 0.6286 MB / 3.69 GB, free: 99.04 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004182/10.27, allocations: 1.428 MB / 3.691 GB, free: 98.71 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000377/10.27, allocations: 114.9 kB / 3.691 GB, free: 98.71 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/10.27, allocations: 76.5 kB / 3.691 GB, free: 98.71 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002219/10.27, allocations: 0.9843 MB / 3.692 GB, free: 98.7 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/10.28, allocations: 1.188 MB / 3.694 GB, free: 98.5 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/10.28, allocations: 3.094 kB / 3.694 GB, free: 98.5 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/10.28, allocations: 0 / 3.694 GB, free: 98.5 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.682e-05/10.28, allocations: 48.47 kB / 3.694 GB, free: 98.5 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/10.29, allocations: 5.63 MB / 3.699 GB, free: 96.24 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/10.29, allocations: 0.9431 MB / 3.7 GB, free: 96.02 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006111/10.29, allocations: 456.9 kB / 3.701 GB, free: 96.01 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005369/10.29, allocations: 311 kB / 3.701 GB, free: 95.73 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007583/10.29, allocations: 0.5123 MB / 3.701 GB, free: 95.64 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=87): time 3.917e-06/10.29, allocations: 0 / 3.701 GB, free: 95.64 MB / 0.7136 GB Notification: Performance of matching and sorting (n=95): time 0.008305/10.3, allocations: 2.988 MB / 3.704 GB, free: 95.04 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.943e-05/10.3, allocations: 197.9 kB / 3.704 GB, free: 94.82 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/10.3, allocations: 0.9084 MB / 3.705 GB, free: 94.67 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001454/10.3, allocations: 31.48 kB / 3.705 GB, free: 94.64 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008134/10.3, allocations: 0.7282 MB / 3.706 GB, free: 94.41 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003365/10.3, allocations: 314.6 kB / 3.706 GB, free: 94.2 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/10.3, allocations: 0 / 3.706 GB, free: 94.2 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001176/10.3, allocations: 348.8 kB / 3.707 GB, free: 93.89 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006048/10.3, allocations: 366.2 kB / 3.707 GB, free: 93.89 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008305/10.3, allocations: 0.5974 MB / 3.708 GB, free: 93.66 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/10.31, allocations: 1.344 MB / 3.709 GB, free: 93.51 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/10.31, allocations: 2.156 kB / 3.709 GB, free: 93.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004126/10.31, allocations: 1.611 MB / 3.71 GB, free: 93.33 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003523/10.31, allocations: 1.28 MB / 3.712 GB, free: 92.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/10.31, allocations: 3.812 kB / 3.712 GB, free: 92.03 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009771/10.31, allocations: 409.9 kB / 3.712 GB, free: 92 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007859/10.31, allocations: 176.3 kB / 3.712 GB, free: 92 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007208/10.32, allocations: 6.537 MB / 3.719 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/10.32, allocations: 122.4 kB / 3.719 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/10.32, allocations: 41.44 kB / 3.719 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/10.32, allocations: 4.562 kB / 3.719 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00371/10.33, allocations: 1.431 MB / 3.72 GB, free: 87.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/10.33, allocations: 3.969 kB / 3.72 GB, free: 87.64 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009471/10.33, allocations: 411.3 kB / 3.721 GB, free: 87.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/10.33, allocations: 178 kB / 3.721 GB, free: 87.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006931/10.33, allocations: 7.457 MB / 3.728 GB, free: 82.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/10.34, allocations: 122 kB / 3.728 GB, free: 82.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/10.34, allocations: 42.23 kB / 3.728 GB, free: 82.5 MB / 0.7136 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 (86): * Single equations (assignments): 81 * 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 11,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004257/10.34, allocations: 168.5 kB / 3.728 GB, free: 82.37 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003202/10.34, allocations: 1.324 MB / 3.73 GB, free: 82.21 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002782/10.34, allocations: 154.9 kB / 3.73 GB, free: 82.13 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/10.34, allocations: 1.393 MB / 3.731 GB, free: 82.03 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/10.34, allocations: 10.06 kB / 3.731 GB, free: 82.03 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/10.34, allocations: 1.828 kB / 3.731 GB, free: 82.03 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002587/10.35, allocations: 1.276 MB / 3.732 GB, free: 81.83 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006547/10.35, allocations: 3.142 MB / 3.736 GB, free: 81.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/10.35, allocations: 3.656 kB / 3.736 GB, free: 81.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008679/10.35, allocations: 193.1 kB / 3.736 GB, free: 81.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/10.35, allocations: 191.9 kB / 3.736 GB, free: 81.28 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.135e-05/10.35, allocations: 27 kB / 3.736 GB, free: 81.28 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002391/10.36, allocations: 2.425 MB / 3.738 GB, free: 79.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/10.36, allocations: 3.969 kB / 3.738 GB, free: 79.55 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004199/10.36, allocations: 2.335 MB / 3.741 GB, free: 78.82 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009579/10.36, allocations: 346.2 kB / 3.741 GB, free: 78.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/10.36, allocations: 17.14 kB / 3.741 GB, free: 78.65 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/10.36, allocations: 127.4 kB / 3.741 GB, free: 78.64 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/10.36, allocations: 65.11 kB / 3.741 GB, free: 78.64 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-05/10.36, allocations: 49.28 kB / 3.741 GB, free: 78.64 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001133/10.36, allocations: 0.6994 MB / 3.742 GB, free: 78.53 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.072e-06/10.36, allocations: 0 / 3.742 GB, free: 78.53 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004226/10.37, allocations: 0.9669 MB / 3.743 GB, free: 78.5 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.008487/10.38, allocations: 6.431 MB / 3.749 GB, free: 75.49 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.004336/10.38, allocations: 2.559 MB / 3.752 GB, free: 74.59 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/10.38, allocations: 0 / 3.752 GB, free: 74.59 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001078/10.38, allocations: 0.6759 MB / 3.752 GB, free: 74.42 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004289/10.39, allocations: 0.7235 MB / 3.753 GB, free: 74.4 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006971/10.39, allocations: 2.88 MB / 3.756 GB, free: 73.59 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000903/10.39, allocations: 1.391 MB / 3.757 GB, free: 72.88 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002281/10.4, allocations: 421.6 kB / 3.758 GB, free: 72.86 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008563/10.4, allocations: 0.6031 MB / 3.758 GB, free: 72.85 MB / 0.7136 GB Notification: Performance of SimCode: time 1.613e-06/10.4, allocations: 0 / 3.758 GB, free: 72.85 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1155/10.51, allocations: 63.64 MB / 3.82 GB, free: 47.44 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002114/10.51, allocations: 191.7 kB / 3.82 GB, free: 47.24 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.29/14.8, allocations: 0 / 3.82 GB, free: 47.24 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)