Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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.8389/0.8389, 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.001525/0.001525, allocations: 184.9 kB / 182.2 MB, free: 9.438 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.418/1.418, allocations: 221.5 MB / 436.4 MB, free: 13.36 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.001149/0.001149, allocations: 103.6 kB / 0.5074 GB, free: 10.2 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001817/0.001817, allocations: 279.5 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.786e-05, allocations: 3.984 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4464/0.4464, allocations: 82.77 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8456/1.292, allocations: 379.6 MB / 1.128 GB, free: 2.004 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/1.292, allocations: 98.78 kB / 1.128 GB, free: 1.953 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.696/2.989, allocations: 417 MB / 1.536 GB, free: 183.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.934e-06/2.989, allocations: 3.375 kB / 1.536 GB, free: 183.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002511/2.989, allocations: 44.55 kB / 1.536 GB, free: 183.1 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005717/2.995, allocations: 1.927 MB / 1.537 GB, free: 181.8 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/2.995, allocations: 7.938 kB / 1.537 GB, free: 181.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/2.996, allocations: 225 kB / 1.538 GB, free: 181.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004829/3.001, allocations: 2.074 MB / 1.54 GB, free: 180.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.488e-05/3.001, allocations: 45.44 kB / 1.54 GB, free: 180.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004971/3.002, allocations: 92.72 kB / 1.54 GB, free: 180.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002973/3.005, allocations: 1.578 MB / 1.541 GB, free: 179.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003225/3.008, allocations: 1.651 MB / 1.543 GB, free: 178.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.291e-05/3.008, allocations: 0 / 1.543 GB, free: 178.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001599/3.008, allocations: 6.906 kB / 1.543 GB, free: 178.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.908e-05/3.008, allocations: 37.03 kB / 1.543 GB, free: 178.7 MB / 0.698 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.01262/3.021, allocations: 7.23 MB / 1.55 GB, free: 173.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/3.023, allocations: 1.259 MB / 1.551 GB, free: 172.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007849/3.024, allocations: 0.6028 MB / 1.552 GB, free: 172.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006862/3.03, allocations: 3.752 MB / 1.556 GB, free: 168.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/3.031, allocations: 43.34 kB / 1.556 GB, free: 168.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=86): time 3.446e-06/3.031, allocations: 0 / 1.556 GB, free: 168.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=86): time 0.00275/3.033, allocations: 1.115 MB / 1.557 GB, free: 167.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/3.033, allocations: 60.19 kB / 1.557 GB, free: 167.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/3.035, allocations: 1.225 MB / 1.558 GB, free: 165.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002736/3.036, allocations: 25.7 kB / 1.558 GB, free: 165.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005074/3.036, allocations: 0.7599 MB / 1.559 GB, free: 165.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003239/3.036, allocations: 295.6 kB / 1.559 GB, free: 164.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.095e-05/3.037, allocations: 0 / 1.559 GB, free: 164.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001109/3.037, allocations: 369.2 kB / 1.559 GB, free: 164.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008013/3.037, allocations: 0.6363 MB / 1.56 GB, free: 163.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009088/3.038, allocations: 0.971 MB / 1.561 GB, free: 162.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002742/3.041, allocations: 1.183 MB / 1.562 GB, free: 161.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/3.041, allocations: 0 / 1.562 GB, free: 161.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004497/3.046, allocations: 2.125 MB / 1.564 GB, free: 159.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006741/3.046, allocations: 3.493 MB / 1.568 GB, free: 155.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/3.046, allocations: 8 kB / 1.568 GB, free: 155.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.312e-05/3.046, allocations: 20.66 kB / 1.568 GB, free: 155.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/3.048, allocations: 347.5 kB / 1.568 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.361e-05/3.048, allocations: 19.94 kB / 1.568 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/3.05, allocations: 176.4 kB / 1.568 GB, free: 155.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/3.05, allocations: 63.98 kB / 1.568 GB, free: 155 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/3.05, allocations: 4 kB / 1.568 GB, free: 155 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004053/3.054, allocations: 1.948 MB / 1.57 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/3.054, allocations: 14.89 kB / 1.57 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/3.054, allocations: 16 kB / 1.57 GB, free: 153.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/3.055, allocations: 355.4 kB / 1.57 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/3.055, allocations: 23.92 kB / 1.57 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/3.057, allocations: 137 kB / 1.571 GB, free: 152.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/3.057, allocations: 65.64 kB / 1.571 GB, free: 152.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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.0003593/3.057, allocations: 147.4 kB / 1.571 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002593/3.06, allocations: 1.104 MB / 1.572 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003565/3.06, allocations: 132.3 kB / 1.572 GB, free: 151.1 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002545/3.063, allocations: 1.237 MB / 1.573 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/3.063, allocations: 8 kB / 1.573 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/3.063, allocations: 0 / 1.573 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001672/3.065, allocations: 1.31 MB / 1.574 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004869/3.069, allocations: 2.726 MB / 1.577 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/3.07, allocations: 2.688 kB / 1.577 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007562/3.07, allocations: 179.8 kB / 1.577 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/3.07, allocations: 4 kB / 1.577 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.436e-05/3.07, allocations: 15.98 kB / 1.577 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/3.07, allocations: 7.953 kB / 1.577 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/3.07, allocations: 0 / 1.577 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/3.073, allocations: 1.912 MB / 1.579 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008843/3.074, allocations: 391.1 kB / 1.58 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002656/3.074, allocations: 4 kB / 1.58 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008635/3.075, allocations: 48.69 kB / 1.58 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.631e-05/3.075, allocations: 48.72 kB / 1.58 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.957e-05/3.075, allocations: 47.25 kB / 1.58 GB, free: 143 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001222/3.077, allocations: 0.9373 MB / 1.581 GB, free: 142.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.41e-07/3.077, allocations: 0 / 1.581 GB, free: 142.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003535/3.08, allocations: 0.9496 MB / 1.582 GB, free: 141.1 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.00404/3.084, allocations: 3.04 MB / 1.585 GB, free: 138.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00317/3.088, allocations: 2.203 MB / 1.587 GB, free: 136 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/3.088, allocations: 0 / 1.587 GB, free: 136 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000611/3.088, allocations: 494.6 kB / 1.587 GB, free: 135.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/3.092, allocations: 0.6329 MB / 1.588 GB, free: 134.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007125/3.099, allocations: 3.5 MB / 1.591 GB, free: 131.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/3.1, allocations: 1.693 MB / 1.593 GB, free: 129.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.003455/3.103, allocations: 1.162 MB / 1.594 GB, free: 128.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/3.104, allocations: 0.5879 MB / 1.595 GB, free: 128 MB / 0.698 GB Notification: Performance of SimCode: time 1.172e-06/3.104, allocations: 3.938 kB / 1.595 GB, free: 128 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07329/3.178, allocations: 42.11 MB / 1.636 GB, free: 86.55 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/3.178, allocations: 202 kB / 1.636 GB, free: 86.27 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.702/6.88, allocations: 1.969 kB / 1.636 GB, free: 86.27 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)