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.0008226/0.0008227, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009734/0.0009735, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.367/1.367, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.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.522/2.522, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003632, allocations: 23.94 kB / 0.8735 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6954/0.6958, allocations: 153.8 MB / 1.024 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04311/0.739, allocations: 40.51 MB / 1.063 GB, free: 7.293 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01512/0.7541, allocations: 10.34 MB / 1.073 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.7562, allocations: 51.62 kB / 1.073 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001837/0.7581, allocations: 0.5323 MB / 1.074 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005151/0.7632, allocations: 1.749 MB / 1.076 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00308/0.7663, allocations: 1.066 MB / 1.077 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005621/0.772, allocations: 4.518 MB / 1.081 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.7737, allocations: 0.852 MB / 1.082 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002469/0.7762, allocations: 1.011 MB / 1.083 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001738/0.778, allocations: 0.8631 MB / 1.084 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002699/0.7782, allocations: 36 kB / 1.084 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.7807, allocations: 0.7715 MB / 1.085 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0004425/0.7812, allocations: 203 kB / 1.085 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.7825, allocations: 0.5769 MB / 1.085 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002303/0.7848, allocations: 1.442 MB / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.7848, allocations: 0 / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.036e-06/0.7848, allocations: 4 kB / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.935e-05/0.7849, allocations: 0 / 1.087 GB, free: 15.21 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.003011/0.7879, allocations: 1.304 MB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.788, allocations: 8.031 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005247/0.7885, allocations: 139.4 kB / 1.088 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.7904, allocations: 1.072 MB / 1.089 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.646e-05/0.7905, allocations: 57.88 kB / 1.089 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.7906, allocations: 79.91 kB / 1.089 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.792, allocations: 0.7983 MB / 1.09 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.792, allocations: 7.922 kB / 1.09 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-05/0.7921, allocations: 35.98 kB / 1.09 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/0.7922, allocations: 16 kB / 1.09 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.7933, allocations: 0.5984 MB / 1.091 GB, free: 10.97 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.003966/0.7973, allocations: 3.54 MB / 1.094 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.7979, allocations: 282.9 kB / 1.094 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/0.7983, allocations: 188.8 kB / 1.095 GB, free: 6.73 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005306/0.7988, allocations: 0.6532 MB / 1.095 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.7988, allocations: 38.56 kB / 1.095 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 1.854e-06/0.7989, allocations: 0 / 1.095 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001252/0.8001, allocations: 0.5437 MB / 1.096 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.8002, allocations: 59.34 kB / 1.096 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.8014, allocations: 0.926 MB / 1.097 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.94e-05/0.8014, allocations: 37.7 kB / 1.097 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004055/0.8018, allocations: 499.6 kB / 1.097 GB, free: 3.777 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.802, allocations: 122.4 kB / 1.097 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-05/0.802, allocations: 49.69 kB / 1.097 GB, free: 3.602 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8022, allocations: 325.9 kB / 1.098 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003663/0.8026, allocations: 177 kB / 1.098 GB, free: 3.105 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.8031, allocations: 359 kB / 1.098 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000855/0.804, allocations: 0.5344 MB / 1.099 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.804, allocations: 0 / 1.099 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001123/0.8051, allocations: 0.6483 MB / 1.099 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.8051, allocations: 8 kB / 1.099 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.8052, allocations: 4 kB / 1.099 GB, free: 1.406 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.8052, allocations: 8 kB / 1.099 GB, free: 1.398 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.8056, allocations: 132.2 kB / 1.1 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.8057, allocations: 11.94 kB / 1.1 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000699/0.8064, allocations: 115.2 kB / 1.1 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.334e-05/0.8064, allocations: 27.94 kB / 1.1 GB, free: 1.117 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.0003736/0.8068, allocations: 277.6 kB / 1.1 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.8069, allocations: 102.8 kB / 1.1 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009906/0.8079, allocations: 0.4927 MB / 1.101 GB, free: 236 kB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.808, allocations: 4 kB / 1.101 GB, free: 232 kB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.808, allocations: 3.938 kB / 1.101 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007671/0.8087, allocations: 481.2 kB / 1.101 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.8108, allocations: 1.375 MB / 1.102 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.8108, allocations: 4 kB / 1.102 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.8112, allocations: 87.88 kB / 1.102 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.8112, allocations: 4 kB / 1.102 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.8112, allocations: 12 kB / 1.102 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.8112, allocations: 0 / 1.102 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.8112, allocations: 4 kB / 1.102 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.8125, allocations: 0.8012 MB / 1.103 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/0.8129, allocations: 247.6 kB / 1.103 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.813, allocations: 8 kB / 1.104 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.8135, allocations: 67.75 kB / 1.104 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.8136, allocations: 23.97 kB / 1.104 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/0.8137, allocations: 19.98 kB / 1.104 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008305/0.8145, allocations: 0.6471 MB / 1.104 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8145, allocations: 0 / 1.104 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009705/0.8155, allocations: 331.4 kB / 1.105 GB, free: 11.98 MB / 0.8575 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.0007357/0.8162, allocations: 390.9 kB / 1.105 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008927/0.8171, allocations: 443.8 kB / 1.105 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.8171, allocations: 0 / 1.105 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003837/0.8175, allocations: 196.8 kB / 1.106 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002956/0.8205, allocations: 0.5982 MB / 1.106 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.8231, allocations: 2.027 MB / 1.108 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.8236, allocations: 1.032 MB / 1.109 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.8238, allocations: 83.42 kB / 1.109 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of SimCode: time 8.32e-07/0.8239, allocations: 0 / 1.109 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of Templates: time 0.02568/0.8495, allocations: 17.67 MB / 1.126 GB, free: 5.633 MB / 0.8731 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 -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