Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.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.DryCoilEffectivenessNTUMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow",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.717/2.717, allocations: 387.1 MB / 399.7 MB, free: 9.426 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.001343/0.001343, allocations: 187.8 kB / 492.3 MB, free: 0.5898 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.51/1.51, allocations: 221.3 MB / 0.7871 GB, free: 12.86 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.0009813/0.0009815, allocations: 94.77 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.26e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2772, allocations: 142.3 MB / 1.212 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.539/5.816, allocations: 2.195 GB / 3.407 GB, free: 83 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/5.817, allocations: 90.22 kB / 3.408 GB, free: 82.95 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.662/9.479, allocations: 0.9249 GB / 4.332 GB, free: 27.89 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.465e-06/9.479, allocations: 0 / 4.332 GB, free: 27.89 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002214/9.479, allocations: 31.98 kB / 4.332 GB, free: 27.86 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.006815/9.486, allocations: 1.956 MB / 4.334 GB, free: 25.84 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/9.486, allocations: 15.97 kB / 4.334 GB, free: 25.82 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005071/9.487, allocations: 139.7 kB / 4.334 GB, free: 25.68 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003413/9.49, allocations: 0.5172 MB / 4.335 GB, free: 25.16 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004006/9.494, allocations: 1.22 MB / 4.336 GB, free: 23.88 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006666/9.495, allocations: 217.8 kB / 4.336 GB, free: 23.67 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004356/9.495, allocations: 96 kB / 4.336 GB, free: 23.57 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002685/9.498, allocations: 1.145 MB / 4.338 GB, free: 22.41 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/9.498, allocations: 0 / 4.338 GB, free: 22.41 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001548/9.498, allocations: 36 kB / 4.338 GB, free: 22.37 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.935e-05/9.498, allocations: 49.91 kB / 4.338 GB, free: 22.32 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/9.5, allocations: 1.015 MB / 4.339 GB, free: 21.31 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.00996/9.51, allocations: 5.102 MB / 4.344 GB, free: 15.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/9.512, allocations: 0.7874 MB / 4.344 GB, free: 15.11 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006617/9.512, allocations: 472.9 kB / 4.345 GB, free: 14.64 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001006/9.513, allocations: 0.8464 MB / 4.346 GB, free: 13.63 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008551/9.514, allocations: 0.5982 MB / 4.346 GB, free: 13.01 MB / 1.151 GB Notification: Performance of pre-optimization done (n=85): time 3.847e-06/9.514, allocations: 0 / 4.346 GB, free: 13.01 MB / 1.151 GB Notification: Performance of matching and sorting (n=85): time 0.002284/9.516, allocations: 1.118 MB / 4.347 GB, free: 11.87 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/9.516, allocations: 115.6 kB / 4.347 GB, free: 11.73 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/9.518, allocations: 0.8927 MB / 4.348 GB, free: 10.82 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001671/9.518, allocations: 45.7 kB / 4.348 GB, free: 10.77 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005451/9.519, allocations: 0.5359 MB / 4.349 GB, free: 10.23 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002415/9.519, allocations: 276 kB / 4.349 GB, free: 9.957 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/9.519, allocations: 16 kB / 4.349 GB, free: 9.941 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.452e-05/9.519, allocations: 341.9 kB / 4.35 GB, free: 9.602 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/9.52, allocations: 409.9 kB / 4.35 GB, free: 9.199 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007793/9.521, allocations: 0.6095 MB / 4.351 GB, free: 8.52 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007103/9.521, allocations: 0.5 MB / 4.351 GB, free: 8.008 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/9.521, allocations: 0 / 4.351 GB, free: 8.008 MB / 1.151 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00226/9.524, allocations: 1.291 MB / 4.352 GB, free: 6.699 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002853/9.524, allocations: 1.126 MB / 4.353 GB, free: 5.484 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/9.524, allocations: 4 kB / 4.353 GB, free: 5.48 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.497e-05/9.524, allocations: 7.953 kB / 4.353 GB, free: 5.473 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/9.525, allocations: 271.6 kB / 4.354 GB, free: 5.207 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-05/9.525, allocations: 7.984 kB / 4.354 GB, free: 5.199 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/9.527, allocations: 218.9 kB / 4.354 GB, free: 4.984 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/9.527, allocations: 59.95 kB / 4.354 GB, free: 4.926 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/9.527, allocations: 4 kB / 4.354 GB, free: 4.922 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001928/9.529, allocations: 1.204 MB / 4.355 GB, free: 3.703 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/9.529, allocations: 8 kB / 4.355 GB, free: 3.695 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/9.529, allocations: 4 kB / 4.355 GB, free: 3.691 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/9.531, allocations: 267.9 kB / 4.355 GB, free: 3.43 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/9.531, allocations: 8 kB / 4.355 GB, free: 3.422 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/9.532, allocations: 203 kB / 4.356 GB, free: 3.223 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/9.532, allocations: 55.95 kB / 4.356 GB, free: 3.168 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled,hex.flowRegime,hex.flowRegime_nominal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 2 * 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.0003554/9.533, allocations: 236.2 kB / 4.356 GB, free: 2.918 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003819/9.533, allocations: 126.4 kB / 4.356 GB, free: 2.793 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002309/9.536, allocations: 1.325 MB / 4.357 GB, free: 1.445 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/9.536, allocations: 8 kB / 4.357 GB, free: 1.438 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/9.536, allocations: 0 / 4.357 GB, free: 1.438 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/9.536, allocations: 3.984 kB / 4.357 GB, free: 1.434 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/9.541, allocations: 2.806 MB / 4.36 GB, free: 14.53 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/9.541, allocations: 8.031 kB / 4.36 GB, free: 14.52 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/9.542, allocations: 207.7 kB / 4.36 GB, free: 14.32 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.166e-05/9.542, allocations: 8 kB / 4.36 GB, free: 14.31 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/9.542, allocations: 31.98 kB / 4.36 GB, free: 14.28 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/9.542, allocations: 7.938 kB / 4.36 GB, free: 14.27 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/9.542, allocations: 4 kB / 4.36 GB, free: 14.27 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003594/9.546, allocations: 2.177 MB / 4.362 GB, free: 11.95 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009241/9.547, allocations: 359.1 kB / 4.363 GB, free: 11.58 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/9.547, allocations: 28.06 kB / 4.363 GB, free: 11.55 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/9.548, allocations: 139.7 kB / 4.363 GB, free: 11.42 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/9.549, allocations: 76.36 kB / 4.363 GB, free: 11.34 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/9.549, allocations: 51.97 kB / 4.363 GB, free: 11.29 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001374/9.55, allocations: 0.6828 MB / 4.364 GB, free: 10.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.5e-07/9.55, allocations: 0 / 4.364 GB, free: 10.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004057/9.554, allocations: 1.01 MB / 4.365 GB, free: 9.59 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 (senRelHum.phi) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled,hex.flowRegime) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 2 * 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.009202/9.563, allocations: 5.678 MB / 4.37 GB, free: 3.711 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004009/9.567, allocations: 1.945 MB / 4.372 GB, free: 1.723 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/9.568, allocations: 1.25 kB / 4.372 GB, free: 1.723 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/9.569, allocations: 0.6703 MB / 4.373 GB, free: 1.023 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00333/9.572, allocations: 0.4974 MB / 4.373 GB, free: 0.5273 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8446/10.42, allocations: 2.166 MB / 4.375 GB, free: 208.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008954/10.42, allocations: 1.187 MB / 4.377 GB, free: 208.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002444/10.42, allocations: 441.3 kB / 4.377 GB, free: 208.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007425/10.42, allocations: 484.7 kB / 4.377 GB, free: 208.2 MB / 1.167 GB Notification: Performance of SimCode: time 9.82e-07/10.42, allocations: 0 / 4.377 GB, free: 208.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.148/10.57, allocations: 69.32 MB / 4.445 GB, free: 207.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/10.57, allocations: 215.2 kB / 4.445 GB, free: 207.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.136/15.7, allocations: 0 / 4.445 GB, free: 207.4 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow_res.mat does not exist to compare? outputFormat=mat