Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow",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.212/2.212, allocations: 387.1 MB / 399.7 MB, free: 9.418 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.001355/0.001355, allocations: 176.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.552/1.552, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009135/0.0009134, allocations: 91.94 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.179e-05/4.198e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.291, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.136/6.427, allocations: 2.208 GB / 3.421 GB, free: 69.91 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/6.427, allocations: 92.31 kB / 3.421 GB, free: 69.87 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.081/15.51, allocations: 2.09 GB / 5.511 GB, free: 179 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.014e-06/15.51, allocations: 0 / 5.511 GB, free: 179 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001534/15.51, allocations: 143.2 kB / 5.511 GB, free: 179 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1021 * Number of variables: 1021 Notification: Performance of Generate backend data structure: time 0.02731/15.54, allocations: 5.22 MB / 5.516 GB, free: 176.9 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 8.187e-05/15.54, allocations: 10.47 kB / 5.516 GB, free: 176.9 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004843/15.54, allocations: 0.5559 MB / 5.517 GB, free: 176.8 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01207/15.55, allocations: 1.237 MB / 5.518 GB, free: 176.5 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02294/15.58, allocations: 6.772 MB / 5.524 GB, free: 175.7 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005487/15.58, allocations: 298.9 kB / 5.525 GB, free: 175.7 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002546/15.58, allocations: 418.1 kB / 5.525 GB, free: 175.7 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02205/15.6, allocations: 5.521 MB / 5.531 GB, free: 175.3 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004548/15.6, allocations: 9.094 kB / 5.531 GB, free: 175.3 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002363/15.61, allocations: 168.2 kB / 5.531 GB, free: 175.3 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003888/15.61, allocations: 193.1 kB / 5.531 GB, free: 175.3 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01532/15.62, allocations: 4.808 MB / 5.536 GB, free: 175.3 MB / 1.198 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.04814/15.67, allocations: 24.11 MB / 5.559 GB, free: 161.6 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006236/15.68, allocations: 3.582 MB / 5.563 GB, free: 159.8 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003572/15.68, allocations: 2.135 MB / 5.565 GB, free: 159.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/15.68, allocations: 1.001 MB / 5.566 GB, free: 158 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003964/15.68, allocations: 1.889 MB / 5.568 GB, free: 157.3 MB / 1.198 GB Notification: Performance of pre-optimization done (n=273): time 6.412e-06/15.68, allocations: 0 / 5.568 GB, free: 157.3 MB / 1.198 GB Notification: Performance of matching and sorting (n=277): time 0.02536/15.71, allocations: 8.329 MB / 5.576 GB, free: 153.5 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.103e-05/15.71, allocations: 135.4 kB / 5.576 GB, free: 153.4 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008769/15.72, allocations: 3.903 MB / 5.58 GB, free: 150.6 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0009373/15.72, allocations: 81.7 kB / 5.58 GB, free: 150.5 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.002442/15.72, allocations: 2.231 MB / 5.582 GB, free: 148.5 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001642/15.72, allocations: 0.9472 MB / 5.583 GB, free: 147.6 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/15.72, allocations: 55.5 kB / 5.583 GB, free: 147.6 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.000184/15.72, allocations: 428.3 kB / 5.583 GB, free: 147.2 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002064/15.73, allocations: 1.471 MB / 5.585 GB, free: 145.9 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002392/15.73, allocations: 2.129 MB / 5.587 GB, free: 143.8 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002466/15.73, allocations: 1.94 MB / 5.589 GB, free: 142.1 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/15.73, allocations: 4 kB / 5.589 GB, free: 142.1 MB / 1.198 GB Notification: Performance of matching and sorting (n=353) (initialization): time 0.007125/15.74, allocations: 4.306 MB / 5.593 GB, free: 138.3 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001209/15.74, allocations: 5.21 MB / 5.598 GB, free: 132.8 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/15.74, allocations: 11.81 kB / 5.598 GB, free: 132.8 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004406/15.74, allocations: 126.3 kB / 5.598 GB, free: 132.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/15.74, allocations: 0.6272 MB / 5.599 GB, free: 132.2 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/15.74, allocations: 2.738 MB / 5.601 GB, free: 129.4 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006301/15.75, allocations: 0.5152 MB / 5.602 GB, free: 129.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005158/15.75, allocations: 115.5 kB / 5.602 GB, free: 129 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/15.75, allocations: 4 kB / 5.602 GB, free: 129 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006231/15.76, allocations: 3.96 MB / 5.606 GB, free: 125.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-05/15.76, allocations: 12 kB / 5.606 GB, free: 125.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/15.76, allocations: 125.1 kB / 5.606 GB, free: 125.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002426/15.76, allocations: 0.6196 MB / 5.607 GB, free: 124.9 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/15.76, allocations: 2.136 MB / 5.609 GB, free: 122.8 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006228/15.77, allocations: 0.4976 MB / 5.609 GB, free: 122.4 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005396/15.77, allocations: 114.8 kB / 5.609 GB, free: 122.3 MB / 1.198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 14 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (336): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001232/15.77, allocations: 346.9 kB / 5.61 GB, free: 122 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001866/15.77, allocations: 430.8 kB / 5.61 GB, free: 121.6 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008795/15.78, allocations: 4.136 MB / 5.614 GB, free: 118 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.229e-05/15.78, allocations: 27.98 kB / 5.614 GB, free: 118 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/15.78, allocations: 0 / 5.614 GB, free: 118 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005555/15.79, allocations: 3.475 MB / 5.617 GB, free: 114.4 MB / 1.198 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.02736/15.81, allocations: 10.52 MB / 5.628 GB, free: 103.7 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.885e-05/15.81, allocations: 6.938 kB / 5.628 GB, free: 103.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/15.82, allocations: 0.6189 MB / 5.628 GB, free: 103.1 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004236/15.82, allocations: 108.2 kB / 5.628 GB, free: 103 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000457/15.82, allocations: 91.95 kB / 5.629 GB, free: 102.9 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/15.82, allocations: 2.726 MB / 5.631 GB, free: 100 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/15.82, allocations: 7.938 kB / 5.631 GB, free: 100 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/15.83, allocations: 6.552 MB / 5.638 GB, free: 93.18 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004364/15.84, allocations: 1.073 MB / 5.639 GB, free: 92.09 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001881/15.84, allocations: 71.98 kB / 5.639 GB, free: 92.02 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005483/15.84, allocations: 457.2 kB / 5.639 GB, free: 91.61 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004437/15.84, allocations: 169.7 kB / 5.639 GB, free: 91.44 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004083/15.84, allocations: 111.9 kB / 5.639 GB, free: 91.33 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.007232/15.85, allocations: 3.071 MB / 5.642 GB, free: 88.24 MB / 1.198 GB Notification: Performance of sort global known variables: time 6.21e-07/15.85, allocations: 0 / 5.642 GB, free: 88.24 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01488/15.87, allocations: 2.748 MB / 5.645 GB, free: 85.5 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 18 (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,senRelHum.phi) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled) * 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 (266): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01684/15.88, allocations: 10.61 MB / 5.656 GB, free: 74.88 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01077/15.89, allocations: 6.264 MB / 5.662 GB, free: 68.51 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/15.89, allocations: 0 / 5.662 GB, free: 68.51 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.003241/15.9, allocations: 2.059 MB / 5.664 GB, free: 66.41 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0165/15.91, allocations: 2.77 MB / 5.666 GB, free: 63.78 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/15.95, allocations: 11.91 MB / 5.678 GB, free: 51.82 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003701/15.95, allocations: 4.046 MB / 5.682 GB, free: 47.73 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.01271/15.96, allocations: 3.978 MB / 5.686 GB, free: 43.82 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00414/15.97, allocations: 2.038 MB / 5.688 GB, free: 41.78 MB / 1.198 GB Notification: Performance of SimCode: time 3.015e-06/15.97, allocations: 0 / 5.688 GB, free: 41.78 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.268/17.23, allocations: 187.9 MB / 5.871 GB, free: 175.8 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/17.23, allocations: 243.1 kB / 5.872 GB, free: 175.5 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.978/26.21, allocations: 4 kB / 5.872 GB, free: 175.5 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat does not exist to compare? outputFormat=mat