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.341/2.341, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001139/0.001139, allocations: 178.7 kB / 498.1 MB, free: 5.73 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.602/1.602, allocations: 223.2 MB / 0.7948 GB, free: 18.85 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.0009641/0.0009641, allocations: 98.52 kB / 0.9346 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003819, allocations: 9.719 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2988, allocations: 142.4 MB / 1.223 GB, free: 89.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.11/5.409, allocations: 2.214 GB / 3.437 GB, free: 175.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/5.409, allocations: 97.89 kB / 3.437 GB, free: 175.2 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 8.416/13.82, allocations: 2.347 GB / 5.784 GB, free: 84.75 MB / 1.214 GB Notification: Performance of FrontEnd: time 1.853e-06/13.83, allocations: 0 / 5.784 GB, free: 84.75 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001146/13.83, allocations: 155.3 kB / 5.784 GB, free: 84.61 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.02497/13.85, allocations: 6.895 MB / 5.791 GB, free: 77.65 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/13.85, allocations: 12.03 kB / 5.791 GB, free: 77.64 MB / 1.214 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002882/13.85, allocations: 0.5758 MB / 5.791 GB, free: 77.05 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009541/13.86, allocations: 1.335 MB / 5.793 GB, free: 75.71 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01915/13.88, allocations: 7.128 MB / 5.8 GB, free: 68.51 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000362/13.88, allocations: 320.2 kB / 5.8 GB, free: 68.2 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001838/13.89, allocations: 431.9 kB / 5.8 GB, free: 67.77 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0195/13.9, allocations: 5.852 MB / 5.806 GB, free: 61.77 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002779/13.9, allocations: 15.84 kB / 5.806 GB, free: 61.76 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001599/13.91, allocations: 172 kB / 5.806 GB, free: 61.59 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002187/13.91, allocations: 200.1 kB / 5.806 GB, free: 61.39 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/13.92, allocations: 5.091 MB / 5.811 GB, free: 56.28 MB / 1.214 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.04683/13.97, allocations: 25.61 MB / 5.836 GB, free: 29.09 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006274/13.97, allocations: 4.081 MB / 5.84 GB, free: 24.88 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001063/13.97, allocations: 0.9152 MB / 5.841 GB, free: 23.78 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004104/13.98, allocations: 1.949 MB / 5.843 GB, free: 21.79 MB / 1.214 GB Notification: Performance of pre-optimization done (n=285): time 6.623e-06/13.98, allocations: 0 / 5.843 GB, free: 21.79 MB / 1.214 GB Notification: Performance of matching and sorting (n=289): time 0.02537/14, allocations: 10.37 MB / 5.853 GB, free: 11.2 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/14, allocations: 162.8 kB / 5.853 GB, free: 11.01 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007726/14.01, allocations: 4.239 MB / 5.858 GB, free: 6.773 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0009889/14.01, allocations: 89.7 kB / 5.858 GB, free: 6.68 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.002434/14.01, allocations: 2.454 MB / 5.86 GB, free: 4.199 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.001448/14.02, allocations: 0.9974 MB / 5.861 GB, free: 3.188 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/14.02, allocations: 60 kB / 5.861 GB, free: 3.129 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0001555/14.02, allocations: 432 kB / 5.862 GB, free: 2.699 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002275/14.02, allocations: 1.571 MB / 5.863 GB, free: 1.125 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.7954/14.81, allocations: 2.312 MB / 5.865 GB, free: 150.3 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004587/14.82, allocations: 2.025 MB / 5.867 GB, free: 150.3 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/14.82, allocations: 2.938 kB / 5.867 GB, free: 150.3 MB / 1.214 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.01104/14.83, allocations: 4.594 MB / 5.872 GB, free: 150.1 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001124/14.83, allocations: 5.712 MB / 5.877 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.351e-05/14.83, allocations: 13.92 kB / 5.877 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007599/14.83, allocations: 203.5 kB / 5.878 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003922/14.84, allocations: 0.6817 MB / 5.878 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/14.84, allocations: 3.449 MB / 5.882 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007288/14.85, allocations: 0.5642 MB / 5.882 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001254/14.85, allocations: 123 kB / 5.882 GB, free: 141.5 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/14.85, allocations: 6.031 kB / 5.882 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009458/14.86, allocations: 4.186 MB / 5.886 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-05/14.86, allocations: 13.94 kB / 5.886 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006316/14.86, allocations: 204.6 kB / 5.887 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003036/14.86, allocations: 0.6722 MB / 5.887 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004121/14.86, allocations: 4.121 MB / 5.891 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006698/14.87, allocations: 0.5578 MB / 5.892 GB, free: 138.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007075/14.87, allocations: 119.8 kB / 5.892 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 () * Number of clocked 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.005566/14.88, allocations: 2.173 MB / 5.894 GB, free: 138.4 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001527/14.88, allocations: 470.2 kB / 5.895 GB, free: 138.4 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008356/14.89, allocations: 4.355 MB / 5.899 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.761e-05/14.89, allocations: 38.03 kB / 5.899 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/14.89, allocations: 4.547 kB / 5.899 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00552/14.89, allocations: 3.64 MB / 5.902 GB, free: 137.9 MB / 1.214 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02139/14.91, allocations: 10.85 MB / 5.913 GB, free: 136.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/14.91, allocations: 8.531 kB / 5.913 GB, free: 136.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/14.92, allocations: 0.653 MB / 5.914 GB, free: 136.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000478/14.92, allocations: 169.7 kB / 5.914 GB, free: 136.9 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002819/14.92, allocations: 88.03 kB / 5.914 GB, free: 136.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002318/14.92, allocations: 3.353 MB / 5.917 GB, free: 134.5 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/14.92, allocations: 6.719 kB / 5.917 GB, free: 134.5 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009608/14.93, allocations: 6.882 MB / 5.924 GB, free: 133.3 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004375/14.93, allocations: 1.111 MB / 5.925 GB, free: 133 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001634/14.94, allocations: 75.27 kB / 5.925 GB, free: 133 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005108/14.94, allocations: 483.1 kB / 5.925 GB, free: 133 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003583/14.94, allocations: 175.6 kB / 5.926 GB, free: 133 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002951/14.94, allocations: 116.9 kB / 5.926 GB, free: 133 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.005844/14.95, allocations: 3.347 MB / 5.929 GB, free: 132.8 MB / 1.214 GB Notification: Performance of sort global known variables: time 6.01e-07/14.95, allocations: 3.969 kB / 5.929 GB, free: 132.8 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01492/14.96, allocations: 2.931 MB / 5.932 GB, free: 132.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) * Number of clocked states: 0 () * 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.01532/14.98, allocations: 11.18 MB / 5.943 GB, free: 129.2 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01189/14.99, allocations: 6.471 MB / 5.949 GB, free: 128.6 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/14.99, allocations: 1 kB / 5.949 GB, free: 128.6 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.002839/14.99, allocations: 2.081 MB / 5.951 GB, free: 128.4 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01311/15.01, allocations: 2.912 MB / 5.954 GB, free: 128.4 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03605/15.04, allocations: 31.32 MB / 5.985 GB, free: 106.8 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00368/15.05, allocations: 4.206 MB / 5.989 GB, free: 106 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.007922/15.05, allocations: 2.434 MB / 5.991 GB, free: 106 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004068/15.06, allocations: 2.316 MB / 5.993 GB, free: 106 MB / 1.214 GB Notification: Performance of SimCode: time 1.933e-06/15.06, allocations: 0 / 5.993 GB, free: 106 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2444/15.3, allocations: 186 MB / 6.175 GB, free: 84.35 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/15.3, allocations: 264.9 kB / 6.175 GB, free: 84 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/23.54, allocations: 1.688 kB / 6.175 GB, free: 84 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