Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.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.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",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.19/2.19, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001134/0.001134, allocations: 192.6 kB / 487.4 MB, free: 5.059 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.531/1.531, allocations: 221.5 MB / 0.7824 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009764/0.0009762, allocations: 99.84 kB / 0.9219 GB, free: 2.262 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.397e-05/2.399e-05, allocations: 6.109 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3018, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.956/6.257, allocations: 2.214 GB / 3.42 GB, free: 109.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/6.258, allocations: 88.86 kB / 3.42 GB, free: 109.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 8.781/15.04, allocations: 2.324 GB / 5.743 GB, free: 33.98 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.555e-06/15.04, allocations: 0 / 5.743 GB, free: 33.98 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001183/15.04, allocations: 151.9 kB / 5.744 GB, free: 33.83 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1075 * Number of variables: 1075 Notification: Performance of Generate backend data structure: time 0.02212/15.06, allocations: 5.646 MB / 5.749 GB, free: 28.11 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/15.06, allocations: 11.97 kB / 5.749 GB, free: 28.1 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/15.07, allocations: 1.327 MB / 5.75 GB, free: 26.76 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01835/15.09, allocations: 7.084 MB / 5.757 GB, free: 19.59 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/15.09, allocations: 132 kB / 5.757 GB, free: 19.46 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/15.09, allocations: 259.9 kB / 5.758 GB, free: 19.21 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01023/15.1, allocations: 4.589 MB / 5.762 GB, free: 14.61 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01295/15.12, allocations: 5.138 MB / 5.767 GB, free: 9.336 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001299/15.12, allocations: 11.94 kB / 5.767 GB, free: 9.324 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005255/15.12, allocations: 4 kB / 5.767 GB, free: 9.32 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001813/15.12, allocations: 204.1 kB / 5.767 GB, free: 9.117 MB / 1.214 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 1.038/16.16, allocations: 24.74 MB / 5.792 GB, free: 165.4 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008175/16.16, allocations: 4.888 MB / 5.796 GB, free: 163.5 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004977/16.17, allocations: 2.068 MB / 5.798 GB, free: 163.5 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001464/16.17, allocations: 0.9157 MB / 5.799 GB, free: 162.5 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004795/16.18, allocations: 1.894 MB / 5.801 GB, free: 162.4 MB / 1.214 GB Notification: Performance of pre-optimization done (n=285): time 6.853e-06/16.18, allocations: 0 / 5.801 GB, free: 162.4 MB / 1.214 GB Notification: Performance of matching and sorting (n=289): time 0.02901/16.2, allocations: 9.593 MB / 5.81 GB, free: 159.8 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/16.2, allocations: 217.6 kB / 5.811 GB, free: 159.6 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008153/16.21, allocations: 3.883 MB / 5.814 GB, free: 159.3 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001239/16.21, allocations: 33.86 kB / 5.815 GB, free: 159.3 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003503/16.22, allocations: 2.459 MB / 5.817 GB, free: 158.7 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.002334/16.22, allocations: 0.9647 MB / 5.818 GB, free: 158.2 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/16.22, allocations: 0 / 5.818 GB, free: 158.2 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0002842/16.22, allocations: 426.4 kB / 5.818 GB, free: 157.9 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002512/16.22, allocations: 1.418 MB / 5.82 GB, free: 157.9 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/16.23, allocations: 2.155 MB / 5.822 GB, free: 157.2 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004235/16.23, allocations: 1.92 MB / 5.824 GB, free: 157.1 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/16.23, allocations: 8.094 kB / 5.824 GB, free: 157.1 MB / 1.214 GB Notification: Performance of matching and sorting (n=375) (initialization): time 0.009504/16.24, allocations: 4.22 MB / 5.828 GB, free: 156.7 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001346/16.24, allocations: 5.872 MB / 5.833 GB, free: 150.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-05/16.24, allocations: 12.06 kB / 5.834 GB, free: 150.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006653/16.24, allocations: 200.7 kB / 5.834 GB, free: 150.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003495/16.25, allocations: 0.6781 MB / 5.834 GB, free: 150.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/16.25, allocations: 3.377 MB / 5.838 GB, free: 148.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007362/16.26, allocations: 0.5036 MB / 5.838 GB, free: 148.2 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/16.26, allocations: 123.8 kB / 5.838 GB, free: 148.2 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/16.26, allocations: 7.469 kB / 5.838 GB, free: 148.2 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009583/16.27, allocations: 3.71 MB / 5.842 GB, free: 148.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.311e-05/16.27, allocations: 11.97 kB / 5.842 GB, free: 148.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00062/16.27, allocations: 206.5 kB / 5.842 GB, free: 148.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003123/16.27, allocations: 0.6687 MB / 5.843 GB, free: 148.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004617/16.28, allocations: 3.908 MB / 5.847 GB, free: 145.4 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007652/16.28, allocations: 0.4908 MB / 5.847 GB, free: 145.4 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/16.28, allocations: 120.6 kB / 5.847 GB, free: 145.4 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (354): * Single equations (assignments): 350 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.002132/16.29, allocations: 210.2 kB / 5.847 GB, free: 145.3 MB / 1.214 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01184/16.3, allocations: 3.569 MB / 5.851 GB, free: 144.9 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002152/16.3, allocations: 460.6 kB / 5.851 GB, free: 144.7 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/16.31, allocations: 3.923 MB / 5.855 GB, free: 144.5 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-05/16.31, allocations: 30.48 kB / 5.855 GB, free: 144.5 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-05/16.31, allocations: 5.844 kB / 5.855 GB, free: 144.5 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006555/16.32, allocations: 3.297 MB / 5.858 GB, free: 144.2 MB / 1.214 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 postOpt removeSimpleEquations (simulation): time 0.03152/16.35, allocations: 10.06 MB / 5.868 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.325e-05/16.35, allocations: 7.094 kB / 5.868 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/16.35, allocations: 0.6468 MB / 5.869 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006224/16.35, allocations: 158.9 kB / 5.869 GB, free: 143 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007139/16.35, allocations: 53.39 kB / 5.869 GB, free: 143 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0031/16.36, allocations: 3.264 MB / 5.872 GB, free: 140.7 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/16.36, allocations: 10.19 kB / 5.872 GB, free: 140.7 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/16.37, allocations: 6.381 MB / 5.878 GB, free: 139.3 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00474/16.38, allocations: 1.093 MB / 5.88 GB, free: 139 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002378/16.38, allocations: 34.75 kB / 5.88 GB, free: 139 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006361/16.38, allocations: 428.5 kB / 5.88 GB, free: 139 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007013/16.39, allocations: 186.1 kB / 5.88 GB, free: 139 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006424/16.39, allocations: 108.2 kB / 5.88 GB, free: 139 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.007904/16.39, allocations: 3.015 MB / 5.883 GB, free: 138.8 MB / 1.214 GB Notification: Performance of sort global known variables: time 7.91e-07/16.39, allocations: 0 / 5.883 GB, free: 138.8 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01877/16.41, allocations: 2.723 MB / 5.886 GB, free: 138.8 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.s[1],val.filter.s[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.medium.Xi[1],hex.ele[1].vol2.dynBal.U,hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.medium.Xi[1],hex.ele[2].vol2.dynBal.U,hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.medium.Xi[1],hex.ele[3].vol2.dynBal.U,hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.medium.Xi[1],hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].mas.T,con.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 (279): * Single equations (assignments): 271 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02015/16.43, allocations: 10.91 MB / 5.897 GB, free: 135.2 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01293/16.45, allocations: 6.048 MB / 5.902 GB, free: 134.7 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/16.45, allocations: 3.156 kB / 5.902 GB, free: 134.7 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003746/16.45, allocations: 1.914 MB / 5.904 GB, free: 134.5 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0168/16.47, allocations: 2.788 MB / 5.907 GB, free: 134.5 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03858/16.51, allocations: 12.02 MB / 5.919 GB, free: 132.4 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008317/16.51, allocations: 4.219 MB / 5.923 GB, free: 131.5 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.01897/16.53, allocations: 4.083 MB / 5.927 GB, free: 131.5 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006783/16.54, allocations: 2.225 MB / 5.929 GB, free: 131.5 MB / 1.214 GB Notification: Performance of SimCode: time 1.413e-06/16.54, allocations: 0 / 5.929 GB, free: 131.5 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2906/16.83, allocations: 164.5 MB / 6.09 GB, free: 103.2 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/16.83, allocations: 184.9 kB / 6.09 GB, free: 103 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/24.87, allocations: 4 kB / 6.09 GB, free: 103 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl_res.mat does not exist to compare? outputFormat=mat