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.237/2.237, allocations: 387.1 MB / 399.7 MB, free: 9.441 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.001184/0.001184, allocations: 169 kB / 492.3 MB, free: 0.625 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.608/1.608, 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.0009126/0.0009125, allocations: 90.55 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.369e-05/3.37e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3042, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.062/6.366, allocations: 2.214 GB / 3.427 GB, free: 64.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/6.367, allocations: 92.34 kB / 3.427 GB, free: 64.15 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.51/16.88, allocations: 2.343 GB / 5.77 GB, free: 170.8 MB / 1.214 GB Notification: Performance of FrontEnd: time 3.396e-06/16.88, allocations: 1 kB / 5.77 GB, free: 170.8 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.00201/16.88, allocations: 155.3 kB / 5.77 GB, free: 170.7 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.03075/16.91, allocations: 5.644 MB / 5.775 GB, free: 169 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 6.64e-05/16.91, allocations: 10.06 kB / 5.775 GB, free: 169 MB / 1.214 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004024/16.91, allocations: 0.577 MB / 5.776 GB, free: 168.9 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01279/16.93, allocations: 1.333 MB / 5.777 GB, free: 168.6 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02501/16.95, allocations: 7.084 MB / 5.784 GB, free: 167.9 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006827/16.95, allocations: 316.6 kB / 5.784 GB, free: 167.9 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003283/16.96, allocations: 435.7 kB / 5.785 GB, free: 167.9 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02569/16.98, allocations: 5.741 MB / 5.79 GB, free: 167.5 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004158/16.98, allocations: 13.58 kB / 5.79 GB, free: 167.5 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002093/16.98, allocations: 172.2 kB / 5.791 GB, free: 167.5 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003511/16.99, allocations: 203.8 kB / 5.791 GB, free: 167.5 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01435/17, allocations: 4.938 MB / 5.796 GB, free: 167.4 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.06181/17.06, allocations: 25.59 MB / 5.821 GB, free: 157.2 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00642/17.07, allocations: 3.997 MB / 5.824 GB, free: 156.3 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003775/17.07, allocations: 2.181 MB / 5.827 GB, free: 156.3 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00112/17.07, allocations: 0.914 MB / 5.828 GB, free: 155.4 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003752/17.08, allocations: 1.892 MB / 5.829 GB, free: 155.2 MB / 1.214 GB Notification: Performance of pre-optimization done (n=285): time 6.442e-06/17.08, allocations: 5.875 kB / 5.829 GB, free: 155.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=289): time 0.02237/17.1, allocations: 8.512 MB / 5.838 GB, free: 153.6 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/17.1, allocations: 161.7 kB / 5.838 GB, free: 153.5 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/17.11, allocations: 4.194 MB / 5.842 GB, free: 153.1 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0009399/17.11, allocations: 89.98 kB / 5.842 GB, free: 153.1 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003746/17.11, allocations: 2.436 MB / 5.844 GB, free: 152.3 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.001806/17.12, allocations: 1.009 MB / 5.845 GB, free: 151.7 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005769/17.12, allocations: 56.81 kB / 5.845 GB, free: 151.7 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0003423/17.12, allocations: 429.5 kB / 5.846 GB, free: 151.4 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002927/17.12, allocations: 1.507 MB / 5.847 GB, free: 151.4 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003502/17.12, allocations: 2.259 MB / 5.85 GB, free: 150.7 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/17.13, allocations: 1.971 MB / 5.851 GB, free: 150.6 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/17.13, allocations: 3.844 kB / 5.851 GB, free: 150.6 MB / 1.214 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.008193/17.14, allocations: 4.484 MB / 5.856 GB, free: 150.2 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.00153/17.14, allocations: 5.701 MB / 5.861 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.059e-05/17.14, allocations: 12.91 kB / 5.861 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007215/17.14, allocations: 214.8 kB / 5.862 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/17.14, allocations: 0.6758 MB / 5.862 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002976/17.14, allocations: 3.409 MB / 5.866 GB, free: 141.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00732/17.15, allocations: 0.56 MB / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004785/17.15, allocations: 126 kB / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/17.15, allocations: 0 / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007572/17.16, allocations: 4.069 MB / 5.87 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.474e-05/17.16, allocations: 9.938 kB / 5.87 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006118/17.16, allocations: 206.8 kB / 5.87 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/17.16, allocations: 0.6768 MB / 5.871 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/17.17, allocations: 4.043 MB / 5.875 GB, free: 138.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006936/17.17, allocations: 0.5581 MB / 5.876 GB, free: 138.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004758/17.17, allocations: 116.5 kB / 5.876 GB, free: 138.6 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (353): * Single equations (assignments): 349 * 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.00123/17.18, allocations: 321 kB / 5.876 GB, free: 138.5 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/17.18, allocations: 470.2 kB / 5.876 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009958/17.19, allocations: 4.262 MB / 5.881 GB, free: 138 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.324e-05/17.19, allocations: 33.08 kB / 5.881 GB, free: 138 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/17.19, allocations: 0 / 5.881 GB, free: 138 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005589/17.19, allocations: 3.538 MB / 5.884 GB, free: 137.7 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.02523/17.22, allocations: 10.75 MB / 5.895 GB, free: 136.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/17.22, allocations: 9.312 kB / 5.895 GB, free: 136.7 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00313/17.22, allocations: 0.6552 MB / 5.895 GB, free: 136.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005679/17.22, allocations: 171 kB / 5.895 GB, free: 136.6 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004192/17.22, allocations: 87.7 kB / 5.896 GB, free: 136.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/17.23, allocations: 3.315 MB / 5.899 GB, free: 134.2 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/17.23, allocations: 7.125 kB / 5.899 GB, free: 134.2 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/17.24, allocations: 6.713 MB / 5.905 GB, free: 132.8 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005082/17.24, allocations: 1.126 MB / 5.906 GB, free: 132.5 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002218/17.24, allocations: 84.95 kB / 5.907 GB, free: 132.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006014/17.25, allocations: 471.4 kB / 5.907 GB, free: 132.5 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004373/17.25, allocations: 182.4 kB / 5.907 GB, free: 132.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003952/17.25, allocations: 107.5 kB / 5.907 GB, free: 132.5 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.007936/17.26, allocations: 3.299 MB / 5.91 GB, free: 132.3 MB / 1.214 GB Notification: Performance of sort global known variables: time 8.52e-07/17.26, allocations: 2.719 kB / 5.91 GB, free: 132.3 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01729/17.28, allocations: 2.93 MB / 5.913 GB, free: 132.2 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.01822/17.29, allocations: 11.01 MB / 5.924 GB, free: 128.5 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01151/17.31, allocations: 6.439 MB / 5.93 GB, free: 127.9 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/17.31, allocations: 6.938 kB / 5.93 GB, free: 127.9 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003223/17.31, allocations: 2.03 MB / 5.932 GB, free: 127.7 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.017/17.33, allocations: 2.908 MB / 5.935 GB, free: 127.7 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04003/17.37, allocations: 12.31 MB / 5.947 GB, free: 125.5 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006856/17.37, allocations: 4.218 MB / 5.951 GB, free: 124.7 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.0149/17.39, allocations: 4.037 MB / 5.955 GB, free: 124.6 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004735/17.39, allocations: 2.23 MB / 5.957 GB, free: 124.6 MB / 1.214 GB Notification: Performance of SimCode: time 1.653e-06/17.39, allocations: 0 / 5.957 GB, free: 124.6 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3213/17.71, allocations: 201 MB / 6.154 GB, free: 24.37 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/17.71, allocations: 243 kB / 6.154 GB, free: 24.05 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.983/27.7, allocations: 2.656 kB / 6.154 GB, free: 24.05 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