Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem1a.T|senTem1b.T|senTem2a.T|senTem2b.T|senTem3a.T|senTem3b.T|senTem4a.T|senTem4b.T|mix1.T|hea1.m_flow|hea2.m_flow|hea3.m_flow|hea4.m_flow|senTem5b.T|senTem5a.T|senTem6b.T|senTem7a.T|senTem7b.T|senTem8a.T|senTem8b.T|mix2.T|hea5.m_flow|hea6.m_flow|hea7.m_flow|hea8.m_flow|che1.y|che2.y|che9.y|che10.y|che3.y|che4.y|che5.y|che6.y|che7.y|che8.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem1a.T|senTem1b.T|senTem2a.T|senTem2b.T|senTem3a.T|senTem3b.T|senTem4a.T|senTem4b.T|mix1.T|hea1.m_flow|hea2.m_flow|hea3.m_flow|hea4.m_flow|senTem5b.T|senTem5a.T|senTem6b.T|senTem7a.T|senTem7b.T|senTem8a.T|senTem8b.T|mix2.T|hea5.m_flow|hea6.m_flow|hea7.m_flow|hea8.m_flow|che1.y|che2.y|che9.y|che10.y|che3.y|che4.y|che5.y|che6.y|che7.y|che8.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.323/2.323, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001092/0.001092, allocations: 184 kB / 0.4902 GB, free: 2.25 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.601/1.601, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009049/0.0009048, allocations: 99.19 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003504, allocations: 6.969 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3048, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/1.406, allocations: 422.7 MB / 1.642 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/1.406, allocations: 95.61 kB / 1.642 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 11.9/13.3, allocations: 2.806 GB / 4.448 GB, free: 81.16 MB / 1.276 GB Notification: Performance of FrontEnd: time 2.254e-06/13.3, allocations: 0 / 4.448 GB, free: 81.16 MB / 1.276 GB Notification: Performance of Transformations before backend: time 0.001121/13.3, allocations: 173.2 kB / 4.448 GB, free: 81.13 MB / 1.276 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.02496/13.33, allocations: 7.168 MB / 4.455 GB, free: 77.68 MB / 1.276 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/13.33, allocations: 14.19 kB / 4.455 GB, free: 77.68 MB / 1.276 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005022/13.33, allocations: 0.78 MB / 4.456 GB, free: 77.3 MB / 1.276 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1258/13.46, allocations: 60.99 MB / 4.516 GB, free: 73.61 MB / 1.276 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003826/13.46, allocations: 314.5 kB / 4.516 GB, free: 73.59 MB / 1.276 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/13.46, allocations: 428.1 kB / 4.516 GB, free: 73.59 MB / 1.276 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/13.47, allocations: 4.274 MB / 4.521 GB, free: 72.75 MB / 1.276 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/13.47, allocations: 15.5 kB / 4.521 GB, free: 72.75 MB / 1.276 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000638/13.48, allocations: 175.9 kB / 4.521 GB, free: 72.75 MB / 1.276 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/13.48, allocations: 114.7 kB / 4.521 GB, free: 72.75 MB / 1.276 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005402/13.48, allocations: 2.902 MB / 4.524 GB, free: 72.65 MB / 1.276 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.02843/13.51, allocations: 24.06 MB / 4.547 GB, free: 58.08 MB / 1.276 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003018/13.51, allocations: 2.945 MB / 4.55 GB, free: 56.88 MB / 1.276 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002341/13.51, allocations: 3.937 MB / 4.554 GB, free: 52.47 MB / 1.276 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.334e-05/13.51, allocations: 70.39 kB / 4.554 GB, free: 52.43 MB / 1.276 GB Notification: Performance of pre-optimization done (n=225): time 4.047e-06/13.51, allocations: 0 / 4.554 GB, free: 52.43 MB / 1.276 GB Notification: Performance of matching and sorting (n=225): time 0.008627/13.52, allocations: 4.106 MB / 4.558 GB, free: 51.54 MB / 1.276 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/13.52, allocations: 75.44 kB / 4.558 GB, free: 51.47 MB / 1.276 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006231/13.53, allocations: 3.687 MB / 4.562 GB, free: 51.16 MB / 1.276 GB Notification: Performance of collectPreVariables (initialization): time 0.0005691/13.53, allocations: 78.77 kB / 4.562 GB, free: 51.13 MB / 1.276 GB Notification: Performance of collectInitialEqns (initialization): time 0.002328/13.53, allocations: 2.782 MB / 4.564 GB, free: 50.19 MB / 1.276 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/13.53, allocations: 0.7813 MB / 4.565 GB, free: 49.57 MB / 1.276 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/13.53, allocations: 56.78 kB / 4.565 GB, free: 49.53 MB / 1.276 GB Notification: Performance of setup shared object (initialization): time 0.0001428/13.53, allocations: 409.5 kB / 4.566 GB, free: 49.18 MB / 1.276 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/13.54, allocations: 0.8035 MB / 4.566 GB, free: 48.88 MB / 1.276 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/13.54, allocations: 1.803 MB / 4.568 GB, free: 47.31 MB / 1.276 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/13.54, allocations: 1.093 MB / 4.569 GB, free: 46.78 MB / 1.276 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/13.54, allocations: 3.656 kB / 4.569 GB, free: 46.78 MB / 1.276 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.006113/13.54, allocations: 3.362 MB / 4.573 GB, free: 45.33 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 0.001836/13.55, allocations: 10.36 MB / 4.583 GB, free: 34.33 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.324e-05/13.55, allocations: 27.08 kB / 4.583 GB, free: 34.33 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009358/13.55, allocations: 404 kB / 4.583 GB, free: 34.2 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/13.55, allocations: 0.5259 MB / 4.584 GB, free: 34.14 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/13.55, allocations: 2.691 MB / 4.586 GB, free: 31.78 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005854/13.56, allocations: 0.5488 MB / 4.587 GB, free: 31.57 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004512/13.56, allocations: 131.6 kB / 4.587 GB, free: 31.54 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/13.56, allocations: 5.344 kB / 4.587 GB, free: 31.54 MB / 1.276 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004621/13.56, allocations: 2.819 MB / 4.59 GB, free: 30.39 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/13.56, allocations: 23.11 kB / 4.59 GB, free: 30.39 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009011/13.56, allocations: 372.7 kB / 4.59 GB, free: 30.3 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/13.56, allocations: 0.5271 MB / 4.591 GB, free: 30.24 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007438/13.57, allocations: 7.803 MB / 4.598 GB, free: 23.46 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006327/13.58, allocations: 0.5145 MB / 4.599 GB, free: 23.27 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005588/13.58, allocations: 130.7 kB / 4.599 GB, free: 23.25 MB / 1.276 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (299): * Single equations (assignments): 295 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 12,1 9,1 12,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.003454/13.58, allocations: 0.9974 MB / 4.6 GB, free: 22.59 MB / 1.276 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002137/13.58, allocations: 0.5093 MB / 4.6 GB, free: 22.32 MB / 1.276 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006799/13.59, allocations: 3.791 MB / 4.604 GB, free: 20.72 MB / 1.276 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/13.59, allocations: 42.52 kB / 4.604 GB, free: 20.71 MB / 1.276 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/13.59, allocations: 3.062 kB / 4.604 GB, free: 20.71 MB / 1.276 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00342/13.59, allocations: 2.612 MB / 4.607 GB, free: 19.59 MB / 1.276 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.01671/13.61, allocations: 8.578 MB / 4.615 GB, free: 15.37 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/13.61, allocations: 0 / 4.615 GB, free: 15.37 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/13.61, allocations: 388.2 kB / 4.615 GB, free: 15.34 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006318/13.61, allocations: 309.9 kB / 4.616 GB, free: 15.21 MB / 1.276 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001446/13.61, allocations: 64.53 kB / 4.616 GB, free: 15.18 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002076/13.62, allocations: 2.496 MB / 4.618 GB, free: 28.9 MB / 1.292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/13.62, allocations: 3.094 kB / 4.618 GB, free: 28.9 MB / 1.292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007217/13.62, allocations: 4.774 MB / 4.623 GB, free: 26.59 MB / 1.292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003584/13.63, allocations: 0.9927 MB / 4.624 GB, free: 25.96 MB / 1.292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/13.63, allocations: 44.81 kB / 4.624 GB, free: 25.93 MB / 1.292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004407/13.63, allocations: 444.3 kB / 4.624 GB, free: 25.82 MB / 1.292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/13.63, allocations: 149.5 kB / 4.624 GB, free: 25.8 MB / 1.292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003081/13.63, allocations: 114.1 kB / 4.624 GB, free: 25.79 MB / 1.292 GB Notification: Performance of sorting global known variables: time 0.005548/13.64, allocations: 2.824 MB / 4.627 GB, free: 24.78 MB / 1.292 GB Notification: Performance of sort global known variables: time 3.91e-07/13.64, allocations: 1.641 kB / 4.627 GB, free: 24.78 MB / 1.292 GB Notification: Performance of remove unused functions: time 0.01496/13.65, allocations: 3.593 MB / 4.631 GB, free: 21.5 MB / 1.292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00597/13.66, allocations: 3.422 MB / 4.634 GB, free: 18.4 MB / 1.292 GB Notification: Performance of simCode: created initialization part: time 0.007142/13.67, allocations: 4.433 MB / 4.638 GB, free: 14.35 MB / 1.292 GB Notification: Performance of simCode: created event and clocks part: time 7.403e-06/13.67, allocations: 4 kB / 4.638 GB, free: 14.34 MB / 1.292 GB Notification: Performance of simCode: created simulation system equations: time 0.002326/13.67, allocations: 1.325 MB / 4.64 GB, free: 13.16 MB / 1.292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01434/13.68, allocations: 2.705 MB / 4.642 GB, free: 11.21 MB / 1.292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/13.7, allocations: 11.19 MB / 4.653 GB, free: 0.7617 MB / 1.292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003199/13.71, allocations: 2.999 MB / 4.656 GB, free: 14.59 MB / 1.307 GB Notification: Performance of simCode: alias equations: time 0.006649/13.71, allocations: 1.209 MB / 4.657 GB, free: 13.71 MB / 1.307 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/13.72, allocations: 429.8 kB / 4.658 GB, free: 13.33 MB / 1.307 GB Notification: Performance of SimCode: time 1.823e-06/13.72, allocations: 0 / 4.658 GB, free: 13.33 MB / 1.307 GB Notification: Performance of Templates: time 1.287/15, allocations: 119 MB / 4.774 GB, free: 101.4 MB / 1.307 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches