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.7082/0.7082, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 183.1 kB / 187.3 MB, free: 11.89 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.27/1.27, allocations: 221.3 MB / 441.4 MB, free: 4.641 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.0008063/0.0008064, allocations: 102.7 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001615/0.001615, allocations: 267.5 kB / 0.5939 GB, free: 7.953 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.925e-05, allocations: 4 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.326, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6058/0.9318, allocations: 380.3 MB / 1.136 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.9321, allocations: 98.78 kB / 1.136 GB, free: 11.23 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.307/2.239, allocations: 419.1 MB / 1.545 GB, free: 181.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.774e-06/2.239, allocations: 2.812 kB / 1.545 GB, free: 181.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001335/2.239, allocations: 47.8 kB / 1.545 GB, free: 181.2 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.00316/2.242, allocations: 1.928 MB / 1.547 GB, free: 180.1 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/2.242, allocations: 9.719 kB / 1.547 GB, free: 180.1 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000222/2.242, allocations: 206.5 kB / 1.547 GB, free: 180 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005909/2.243, allocations: 221.4 kB / 1.548 GB, free: 179.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003345/2.246, allocations: 2.087 MB / 1.55 GB, free: 178.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.824e-05/2.246, allocations: 111.1 kB / 1.55 GB, free: 178.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/2.247, allocations: 157.2 kB / 1.55 GB, free: 178.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/2.249, allocations: 1.86 MB / 1.552 GB, free: 177.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/2.249, allocations: 1.125 kB / 1.552 GB, free: 177.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/2.249, allocations: 57.91 kB / 1.552 GB, free: 177.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/2.249, allocations: 41.89 kB / 1.552 GB, free: 177.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/2.251, allocations: 1.658 MB / 1.553 GB, free: 176.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.008862/2.26, allocations: 7.54 MB / 1.561 GB, free: 171.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/2.261, allocations: 1.325 MB / 1.562 GB, free: 170.5 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006271/2.262, allocations: 0.6236 MB / 1.563 GB, free: 170.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004704/2.267, allocations: 3.834 MB / 1.566 GB, free: 167.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/2.267, allocations: 46.94 kB / 1.566 GB, free: 167.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=86): time 2.104e-06/2.267, allocations: 3.906 kB / 1.566 GB, free: 167.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=86): time 0.001366/2.268, allocations: 1.041 MB / 1.567 GB, free: 166.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/2.268, allocations: 63.69 kB / 1.567 GB, free: 166.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001527/2.27, allocations: 1.491 MB / 1.569 GB, free: 164.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.305e-05/2.27, allocations: 52.67 kB / 1.569 GB, free: 164.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003996/2.27, allocations: 0.7664 MB / 1.57 GB, free: 163.9 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/2.27, allocations: 308.2 kB / 1.57 GB, free: 163.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.1e-05/2.27, allocations: 28 kB / 1.57 GB, free: 163.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.673e-05/2.27, allocations: 365.9 kB / 1.57 GB, free: 163.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007541/2.271, allocations: 0.6598 MB / 1.571 GB, free: 162.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000884/2.272, allocations: 1.006 MB / 1.572 GB, free: 161.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000917/2.273, allocations: 0.8558 MB / 1.573 GB, free: 160.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/2.273, allocations: 10.84 kB / 1.573 GB, free: 160.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002256/2.275, allocations: 1.911 MB / 1.575 GB, free: 158.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004898/2.276, allocations: 3.523 MB / 1.578 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/2.276, allocations: 12 kB / 1.578 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/2.276, allocations: 18.56 kB / 1.578 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/2.277, allocations: 347.5 kB / 1.579 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/2.277, allocations: 19.94 kB / 1.579 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/2.278, allocations: 228.2 kB / 1.579 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/2.278, allocations: 63.23 kB / 1.579 GB, free: 154.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.325e-06/2.278, allocations: 5.562 kB / 1.579 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001968/2.28, allocations: 1.761 MB / 1.581 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/2.28, allocations: 8 kB / 1.581 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/2.28, allocations: 16 kB / 1.581 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/2.281, allocations: 358.5 kB / 1.581 GB, free: 152.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/2.281, allocations: 23.89 kB / 1.581 GB, free: 152.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/2.282, allocations: 193.3 kB / 1.581 GB, free: 151.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.694e-05/2.283, allocations: 59.98 kB / 1.581 GB, free: 151.9 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.0001981/2.283, allocations: 176.6 kB / 1.581 GB, free: 151.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/2.283, allocations: 146.2 kB / 1.581 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/2.285, allocations: 1.203 MB / 1.583 GB, free: 150.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/2.285, allocations: 12 kB / 1.583 GB, free: 150.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.285, allocations: 0 / 1.583 GB, free: 150.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001039/2.286, allocations: 1.243 MB / 1.584 GB, free: 149 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003503/2.289, allocations: 2.866 MB / 1.587 GB, free: 146.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/2.289, allocations: 3.094 kB / 1.587 GB, free: 146.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006699/2.29, allocations: 175.8 kB / 1.587 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-06/2.29, allocations: 4 kB / 1.587 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.797e-05/2.29, allocations: 31.69 kB / 1.587 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/2.29, allocations: 4 kB / 1.587 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/2.29, allocations: 0 / 1.587 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/2.292, allocations: 1.886 MB / 1.589 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000631/2.293, allocations: 426.8 kB / 1.589 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/2.293, allocations: 23.98 kB / 1.589 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007855/2.294, allocations: 70.84 kB / 1.589 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/2.294, allocations: 48.7 kB / 1.589 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.027e-05/2.294, allocations: 39.05 kB / 1.589 GB, free: 143.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001314/2.295, allocations: 1.228 MB / 1.591 GB, free: 142.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/2.295, allocations: 0 / 1.591 GB, free: 142.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002223/2.297, allocations: 0.9657 MB / 1.591 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.00278/2.3, allocations: 3.016 MB / 1.594 GB, free: 138.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002714/2.303, allocations: 2.318 MB / 1.597 GB, free: 135.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/2.303, allocations: 3.281 kB / 1.597 GB, free: 135.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004911/2.303, allocations: 0.5024 MB / 1.597 GB, free: 135.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/2.306, allocations: 0.8398 MB / 1.598 GB, free: 134.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004903/2.311, allocations: 3.652 MB / 1.602 GB, free: 130.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008562/2.312, allocations: 1.694 MB / 1.603 GB, free: 129.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002889/2.315, allocations: 1.283 MB / 1.604 GB, free: 128 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000677/2.316, allocations: 0.593 MB / 1.605 GB, free: 127.4 MB / 0.698 GB Notification: Performance of SimCode: time 5.61e-07/2.316, allocations: 0 / 1.605 GB, free: 127.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06507/2.381, allocations: 53.07 MB / 1.657 GB, free: 75.29 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001336/2.381, allocations: 223.1 kB / 1.657 GB, free: 75.07 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.21/5.591, allocations: 0 / 1.657 GB, free: 75.07 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)