Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 106.8 kB / 16.36 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 193.1 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.483/2.483, allocations: 437.1 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 60.31 kB / 0.8707 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2868, allocations: 151.6 MB / 1.019 GB, free: 9.914 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04125/0.3281, allocations: 41.59 MB / 1.059 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01494/0.3431, allocations: 10.39 MB / 1.07 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002021/0.3451, allocations: 55.69 kB / 1.07 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.3469, allocations: 0.6443 MB / 1.07 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0047/0.3516, allocations: 1.879 MB / 1.072 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002772/0.3544, allocations: 1.187 MB / 1.073 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.4987/0.8531, allocations: 3.389 MB / 1.077 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001717/0.8549, allocations: 1.056 MB / 1.078 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.8578, allocations: 1.234 MB / 1.079 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.8589, allocations: 0.879 MB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.8591, allocations: 100.6 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001837/0.8609, allocations: 0.8613 MB / 1.081 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002767/0.8612, allocations: 280.7 kB / 1.081 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006729/0.8619, allocations: 0.6282 MB / 1.081 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00323/0.8651, allocations: 1.925 MB / 1.083 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.8652, allocations: 1.391 kB / 1.083 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.382e-06/0.8652, allocations: 0 / 1.083 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.175e-05/0.8652, allocations: 2 kB / 1.083 GB, free: 13.63 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002737/0.8679, allocations: 1.511 MB / 1.085 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.868, allocations: 10.11 kB / 1.085 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003703/0.8684, allocations: 144.8 kB / 1.085 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001847/0.8702, allocations: 1.101 MB / 1.086 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.8703, allocations: 58.5 kB / 1.086 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.8704, allocations: 78.42 kB / 1.086 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.8719, allocations: 0.785 MB / 1.087 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.8719, allocations: 4 kB / 1.087 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.872, allocations: 29.44 kB / 1.087 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.648e-05/0.872, allocations: 23.7 kB / 1.087 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.8733, allocations: 0.5712 MB / 1.088 GB, free: 12.28 MB / 0.8419 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.004098/0.8774, allocations: 3.543 MB / 1.091 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.878, allocations: 263.9 kB / 1.091 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003471/0.8783, allocations: 176.2 kB / 1.091 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003721/0.8787, allocations: 0.6578 MB / 1.092 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.8788, allocations: 42.81 kB / 1.092 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.8788, allocations: 0 / 1.092 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001167/0.8799, allocations: 0.5134 MB / 1.093 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/0.88, allocations: 60.33 kB / 1.093 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.8812, allocations: 0.9447 MB / 1.094 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.8812, allocations: 34.94 kB / 1.094 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.8816, allocations: 0.4898 MB / 1.094 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/0.8817, allocations: 114.8 kB / 1.094 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.8818, allocations: 113.8 kB / 1.094 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.289e-05/0.8819, allocations: 331.1 kB / 1.095 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.8823, allocations: 164.4 kB / 1.095 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/0.8827, allocations: 352.8 kB / 1.095 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007494/0.8835, allocations: 0.5131 MB / 1.096 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.8835, allocations: 9.812 kB / 1.096 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001114/0.8846, allocations: 0.6118 MB / 1.096 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.8846, allocations: 7.719 kB / 1.096 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.8846, allocations: 5 kB / 1.096 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.8847, allocations: 8.016 kB / 1.096 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.8851, allocations: 127.4 kB / 1.096 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.8851, allocations: 9.688 kB / 1.096 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006242/0.8858, allocations: 90.31 kB / 1.096 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.8858, allocations: 27.03 kB / 1.096 GB, free: 8.148 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000303/0.8861, allocations: 282.4 kB / 1.097 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.8863, allocations: 95.59 kB / 1.097 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009597/0.8873, allocations: 489.8 kB / 1.097 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.8873, allocations: 4.234 kB / 1.097 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.8873, allocations: 1.578 kB / 1.097 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006901/0.888, allocations: 452.6 kB / 1.098 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.8902, allocations: 1.367 MB / 1.099 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.8902, allocations: 2.594 kB / 1.099 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003215/0.8905, allocations: 80.95 kB / 1.099 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.8905, allocations: 3.281 kB / 1.099 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.8906, allocations: 8.703 kB / 1.099 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.8906, allocations: 6.844 kB / 1.099 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.8906, allocations: 0 / 1.099 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.8918, allocations: 0.7593 MB / 1.1 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003111/0.8921, allocations: 226.8 kB / 1.1 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.8922, allocations: 8.672 kB / 1.1 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.8927, allocations: 36.8 kB / 1.1 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.8928, allocations: 27.61 kB / 1.1 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.8929, allocations: 21.2 kB / 1.1 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008554/0.8937, allocations: 0.6594 MB / 1.101 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8937, allocations: 0 / 1.101 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001016/0.8948, allocations: 337.1 kB / 1.101 GB, free: 6.84 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007286/0.8955, allocations: 404.7 kB / 1.102 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008151/0.8963, allocations: 428.9 kB / 1.102 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8963, allocations: 1.125 kB / 1.102 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003556/0.8967, allocations: 184.6 kB / 1.102 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/0.8991, allocations: 0.6076 MB / 1.103 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.9012, allocations: 1.595 MB / 1.104 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.9018, allocations: 1.039 MB / 1.105 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000612/0.9024, allocations: 199.2 kB / 1.106 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.9025, allocations: 80.03 kB / 1.106 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.9026, allocations: 0 / 1.106 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of Templates: time 0.03471/0.9373, allocations: 21.23 MB / 1.126 GB, free: 364 kB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches