Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",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.203/2.203, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001029/0.001029, allocations: 184.8 kB / 487.4 MB, free: 5.027 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.541/1.541, allocations: 221.5 MB / 0.7824 GB, free: 0.9336 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.0009101/0.0009102, allocations: 91.92 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.059e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3073, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.737/6.044, allocations: 2.221 GB / 3.427 GB, free: 102.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/6.044, allocations: 95.94 kB / 3.427 GB, free: 102.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.812/15.86, allocations: 2.695 GB / 6.122 GB, free: 109.4 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.024e-06/15.86, allocations: 0 / 6.122 GB, free: 109.4 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001414/15.86, allocations: 167.6 kB / 6.122 GB, free: 109.3 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: 1243 * Number of variables: 1243 Notification: Performance of Generate backend data structure: time 0.02875/15.89, allocations: 6.186 MB / 6.128 GB, free: 103.1 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 8.046e-05/15.89, allocations: 12.03 kB / 6.128 GB, free: 103.1 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01385/15.9, allocations: 1.492 MB / 6.13 GB, free: 101.6 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02382/15.92, allocations: 7.465 MB / 6.137 GB, free: 94.16 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000395/15.92, allocations: 152 kB / 6.137 GB, free: 94.01 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002722/15.93, allocations: 298.5 kB / 6.138 GB, free: 93.72 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01594/15.94, allocations: 5.325 MB / 6.143 GB, free: 88.39 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02234/15.97, allocations: 5.872 MB / 6.149 GB, free: 82.39 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004532/15.97, allocations: 23.27 kB / 6.149 GB, free: 82.37 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002263/15.97, allocations: 11.84 kB / 6.149 GB, free: 82.36 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003165/15.97, allocations: 217.4 kB / 6.149 GB, free: 82.15 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 0.05242/16.02, allocations: 27.24 MB / 6.175 GB, free: 53.7 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006512/16.03, allocations: 5.283 MB / 6.181 GB, free: 48.12 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003447/16.03, allocations: 2.374 MB / 6.183 GB, free: 45.74 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001049/16.03, allocations: 0.9223 MB / 6.184 GB, free: 44.64 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00386/16.04, allocations: 2.182 MB / 6.186 GB, free: 42.41 MB / 1.214 GB Notification: Performance of pre-optimization done (n=325): time 7.665e-06/16.04, allocations: 0 / 6.186 GB, free: 42.41 MB / 1.214 GB Notification: Performance of matching and sorting (n=329): time 0.02876/16.07, allocations: 10.95 MB / 6.197 GB, free: 31.3 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/16.07, allocations: 218.5 kB / 6.197 GB, free: 31.04 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008803/16.07, allocations: 4.152 MB / 6.201 GB, free: 26.9 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.00103/16.08, allocations: 29.7 kB / 6.201 GB, free: 26.86 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003354/16.08, allocations: 2.724 MB / 6.204 GB, free: 24.11 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.001757/16.08, allocations: 1.093 MB / 6.205 GB, free: 23 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006494/16.08, allocations: 0 / 6.205 GB, free: 23 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.000332/16.08, allocations: 448.9 kB / 6.205 GB, free: 22.56 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/16.08, allocations: 1.666 MB / 6.207 GB, free: 20.89 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003374/16.09, allocations: 2.446 MB / 6.209 GB, free: 18.14 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003929/16.09, allocations: 2.214 MB / 6.211 GB, free: 15.92 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.999e-05/16.09, allocations: 4 kB / 6.211 GB, free: 15.91 MB / 1.214 GB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01027/16.1, allocations: 4.794 MB / 6.216 GB, free: 11.08 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001673/16.1, allocations: 6.356 MB / 6.222 GB, free: 4.078 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-05/16.1, allocations: 15.95 kB / 6.222 GB, free: 4.062 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006273/16.1, allocations: 208.1 kB / 6.222 GB, free: 3.855 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00367/16.11, allocations: 0.7728 MB / 6.223 GB, free: 3.082 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003232/16.11, allocations: 3.371 MB / 6.226 GB, free: 15.55 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008481/16.12, allocations: 0.5417 MB / 6.227 GB, free: 15.01 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/16.12, allocations: 140 kB / 6.227 GB, free: 14.87 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/16.12, allocations: 4 kB / 6.227 GB, free: 14.87 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01115/16.13, allocations: 4.253 MB / 6.231 GB, free: 10.58 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.484e-05/16.13, allocations: 15.98 kB / 6.231 GB, free: 10.57 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006424/16.13, allocations: 201.3 kB / 6.231 GB, free: 10.37 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003635/16.14, allocations: 0.7567 MB / 6.232 GB, free: 9.609 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00483/16.14, allocations: 3.922 MB / 6.236 GB, free: 5.457 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007138/16.15, allocations: 0.5261 MB / 6.236 GB, free: 4.93 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/16.15, allocations: 136 kB / 6.237 GB, free: 4.797 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (398): * Single equations (assignments): 394 * 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.001848/16.15, allocations: 208.9 kB / 6.237 GB, free: 4.586 MB / 1.229 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01099/16.16, allocations: 4.128 MB / 6.241 GB, free: 424 kB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.8411/17, allocations: 490.9 kB / 6.241 GB, free: 178.1 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0119/17.02, allocations: 4.533 MB / 6.246 GB, free: 177.9 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-05/17.02, allocations: 35.83 kB / 6.246 GB, free: 177.9 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/17.02, allocations: 1.688 kB / 6.246 GB, free: 177.9 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007074/17.02, allocations: 3.811 MB / 6.249 GB, free: 177.6 MB / 1.229 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.02493/17.05, allocations: 11.36 MB / 6.261 GB, free: 176.6 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.401e-05/17.05, allocations: 4.25 kB / 6.261 GB, free: 176.6 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/17.05, allocations: 0.7358 MB / 6.261 GB, free: 176.6 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004407/17.05, allocations: 154 kB / 6.261 GB, free: 176.5 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002594/17.05, allocations: 53.25 kB / 6.261 GB, free: 176.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002351/17.05, allocations: 3.253 MB / 6.265 GB, free: 174.2 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/17.05, allocations: 10.88 kB / 6.265 GB, free: 174.2 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/17.06, allocations: 7.369 MB / 6.272 GB, free: 173.1 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004174/17.07, allocations: 1.203 MB / 6.273 GB, free: 173 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001592/17.07, allocations: 36.06 kB / 6.273 GB, free: 173 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005288/17.08, allocations: 456.3 kB / 6.274 GB, free: 173 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004118/17.08, allocations: 205.1 kB / 6.274 GB, free: 173 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003405/17.08, allocations: 121 kB / 6.274 GB, free: 173 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.006604/17.08, allocations: 3.216 MB / 6.277 GB, free: 172.8 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.8e-07/17.08, allocations: 2.219 kB / 6.277 GB, free: 172.8 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01776/17.1, allocations: 2.892 MB / 6.28 GB, free: 172.8 MB / 1.229 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 (319): * Single equations (assignments): 311 * 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.01687/17.12, allocations: 11.96 MB / 6.291 GB, free: 169.4 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01265/17.13, allocations: 6.921 MB / 6.298 GB, free: 168.9 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.929e-05/17.13, allocations: 8 kB / 6.298 GB, free: 168.9 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.003493/17.13, allocations: 2.2 MB / 6.3 GB, free: 168.7 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01808/17.15, allocations: 2.893 MB / 6.303 GB, free: 168.6 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0372/17.19, allocations: 13.35 MB / 6.316 GB, free: 166.3 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007914/17.2, allocations: 4.677 MB / 6.321 GB, free: 165.5 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.01603/17.21, allocations: 4.425 MB / 6.325 GB, free: 165.4 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005443/17.22, allocations: 2.486 MB / 6.328 GB, free: 165.4 MB / 1.229 GB Notification: Performance of SimCode: time 1.422e-06/17.22, allocations: 2.953 kB / 6.328 GB, free: 165.4 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2667/17.49, allocations: 175.3 MB / 6.499 GB, free: 156.8 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/17.49, allocations: 200.9 kB / 6.499 GB, free: 156.6 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.57/26.06, allocations: 0 / 6.499 GB, free: 156.6 MB / 1.229 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat does not exist to compare? outputFormat=mat