Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Boilers.Examples.BoilerPolynomial,fileNamePrefix="Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Boilers.Examples.BoilerPolynomial,fileNamePrefix="Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 387.1 MB / 399.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001085, allocations: 184.9 kB / 492.3 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 221.3 MB / 0.7871 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008512/0.0008511, allocations: 85.62 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.382e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.2998, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.252/1.552, allocations: 419.7 MB / 1.622 GB, free: 10.82 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003695/1.552, allocations: 90.08 kB / 1.622 GB, free: 10.78 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.774/3.326, allocations: 461.7 MB / 2.073 GB, free: 128 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.082e-06/3.327, allocations: 0 / 2.073 GB, free: 128 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002368/3.327, allocations: 31.94 kB / 2.073 GB, free: 127.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.004587/3.331, allocations: 1.514 MB / 2.075 GB, free: 126.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/3.331, allocations: 12.03 kB / 2.075 GB, free: 126.3 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004265/3.332, allocations: 131.5 kB / 2.075 GB, free: 126.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009137/3.333, allocations: 162.1 kB / 2.075 GB, free: 126 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003893/3.337, allocations: 1.41 MB / 2.076 GB, free: 124.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.891e-05/3.337, allocations: 66 kB / 2.077 GB, free: 124.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/3.337, allocations: 95.89 kB / 2.077 GB, free: 124.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001968/3.339, allocations: 0.9333 MB / 2.078 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/3.339, allocations: 0 / 2.078 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-05/3.339, allocations: 39.94 kB / 2.078 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-05/3.339, allocations: 45.98 kB / 2.078 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/3.34, allocations: 0.6287 MB / 2.078 GB, free: 122.7 MB / 1.151 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.005873/3.346, allocations: 4.133 MB / 2.082 GB, free: 118.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/3.347, allocations: 0.495 MB / 2.083 GB, free: 117.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/3.348, allocations: 258.5 kB / 2.083 GB, free: 117.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003533/3.348, allocations: 0.4986 MB / 2.083 GB, free: 117 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004774/3.349, allocations: 354.6 kB / 2.084 GB, free: 116.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 3.246e-06/3.349, allocations: 0 / 2.084 GB, free: 116.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=51): time 0.003443/3.352, allocations: 1.685 MB / 2.085 GB, free: 114.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/3.352, allocations: 140.8 kB / 2.086 GB, free: 114.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/3.354, allocations: 0.971 MB / 2.087 GB, free: 113.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.521e-05/3.354, allocations: 37.7 kB / 2.087 GB, free: 113.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004257/3.354, allocations: 0.5856 MB / 2.087 GB, free: 113.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/3.354, allocations: 173.5 kB / 2.087 GB, free: 112.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/3.354, allocations: 12 kB / 2.087 GB, free: 112.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.657e-05/3.354, allocations: 330.4 kB / 2.088 GB, free: 112.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/3.355, allocations: 205.5 kB / 2.088 GB, free: 112.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/3.355, allocations: 421.1 kB / 2.088 GB, free: 111.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003828/3.355, allocations: 300.8 kB / 2.089 GB, free: 111.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/3.355, allocations: 4 kB / 2.089 GB, free: 111.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001367/3.357, allocations: 0.8798 MB / 2.089 GB, free: 110.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003448/3.357, allocations: 1.528 MB / 2.091 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/3.357, allocations: 4 kB / 2.091 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005537/3.358, allocations: 149.5 kB / 2.091 GB, free: 108.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/3.358, allocations: 99.89 kB / 2.091 GB, free: 108.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/3.36, allocations: 2.231 MB / 2.093 GB, free: 106.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/3.361, allocations: 87.83 kB / 2.093 GB, free: 106.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.652e-05/3.361, allocations: 31.98 kB / 2.093 GB, free: 106.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/3.361, allocations: 4.938 kB / 2.093 GB, free: 106.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001147/3.362, allocations: 0.7696 MB / 2.094 GB, free: 105.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/3.362, allocations: 4 kB / 2.094 GB, free: 105.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003185/3.363, allocations: 122.3 kB / 2.094 GB, free: 105.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/3.363, allocations: 103.8 kB / 2.094 GB, free: 105.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/3.364, allocations: 2.215 MB / 2.097 GB, free: 102.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/3.365, allocations: 71.84 kB / 2.097 GB, free: 102.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.827e-05/3.365, allocations: 35.94 kB / 2.097 GB, free: 102.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,y.a,y.b,y.last,$PRE.y.nextEvent,y.nextEvent,y.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 59 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002477/3.366, allocations: 183.3 kB / 2.097 GB, free: 102.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/3.366, allocations: 118.6 kB / 2.097 GB, free: 102.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/3.367, allocations: 0.7988 MB / 2.098 GB, free: 101.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/3.367, allocations: 8 kB / 2.098 GB, free: 101.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/3.367, allocations: 0 / 2.098 GB, free: 101.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000892/3.368, allocations: 0.7394 MB / 2.098 GB, free: 100.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00316/3.372, allocations: 1.88 MB / 2.1 GB, free: 98.88 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/3.372, allocations: 3.938 kB / 2.1 GB, free: 98.88 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/3.372, allocations: 67.95 kB / 2.1 GB, free: 98.81 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004594/3.372, allocations: 149.7 kB / 2.1 GB, free: 98.66 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/3.372, allocations: 19.98 kB / 2.101 GB, free: 98.64 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001516/3.374, allocations: 2.215 MB / 2.103 GB, free: 96.27 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/3.374, allocations: 3.953 kB / 2.103 GB, free: 96.26 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/3.376, allocations: 1.25 MB / 2.104 GB, free: 94.95 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006795/3.376, allocations: 287.5 kB / 2.104 GB, free: 94.65 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003187/3.377, allocations: 8 kB / 2.104 GB, free: 94.64 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008409/3.378, allocations: 47.94 kB / 2.104 GB, free: 94.59 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/3.378, allocations: 31.95 kB / 2.104 GB, free: 94.56 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/3.378, allocations: 27.97 kB / 2.104 GB, free: 94.54 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001272/3.379, allocations: 0.7494 MB / 2.105 GB, free: 93.78 MB / 1.151 GB Notification: Performance of sort global known variables: time 2e-07/3.379, allocations: 0 / 2.105 GB, free: 93.78 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002669/3.382, allocations: 0.6403 MB / 2.106 GB, free: 93.14 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (boi1.heaCapDry.T) * Number of discrete variables: 6 ($whenCondition1,y.a,y.b,y.last,y.nextEvent,y.nextEventScaled) * Number of discrete states: 6 (y.nextEvent,y.last,y.nextEventScaled,y.b,y.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003174/3.385, allocations: 2.515 MB / 2.108 GB, free: 90.57 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002147/3.387, allocations: 1.323 MB / 2.109 GB, free: 89.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/3.387, allocations: 0 / 2.109 GB, free: 89.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005641/3.388, allocations: 487.4 kB / 2.11 GB, free: 88.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003003/3.391, allocations: 0.5557 MB / 2.11 GB, free: 88.15 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004789/3.395, allocations: 1.767 MB / 2.112 GB, free: 86.33 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006959/3.396, allocations: 1.157 MB / 2.113 GB, free: 85.14 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001646/3.398, allocations: 325 kB / 2.114 GB, free: 84.82 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/3.398, allocations: 431.3 kB / 2.114 GB, free: 84.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.012e-06/3.398, allocations: 4 kB / 2.114 GB, free: 84.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08793/3.486, allocations: 38.91 MB / 2.152 GB, free: 45.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003179/3.487, allocations: 216.5 kB / 2.152 GB, free: 45.68 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.785/7.271, allocations: 0 / 2.152 GB, free: 45.68 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; mkfifo Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe >> ../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomial_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomial.fmu > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial_res.mat does not exist to compare? outputFormat=mat