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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001604/0.001604, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001858/0.001858, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.472/2.472, allocations: 437 MB / 0.711 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 69.11 kB / 0.8699 GB, free: 2.254 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3054, allocations: 151.6 MB / 1.018 GB, free: 10.69 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04095/0.3464, allocations: 41.59 MB / 1.059 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01409/0.3605, allocations: 10.39 MB / 1.069 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.3626, allocations: 59.62 kB / 1.069 GB, free: 6.473 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001961/0.3647, allocations: 0.6404 MB / 1.069 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005174/0.3699, allocations: 1.883 MB / 1.071 GB, free: 3.938 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003123/0.373, allocations: 1.176 MB / 1.072 GB, free: 2.773 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.5105/0.8835, allocations: 3.385 MB / 1.076 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.8855, allocations: 1.058 MB / 1.077 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003168/0.8887, allocations: 1.229 MB / 1.078 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001445/0.8901, allocations: 0.8869 MB / 1.079 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.8903, allocations: 99.97 kB / 1.079 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.8923, allocations: 0.8582 MB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002862/0.8926, allocations: 275.1 kB / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006746/0.8933, allocations: 0.6321 MB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00288/0.8962, allocations: 1.898 MB / 1.082 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.8962, allocations: 5.125 kB / 1.082 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.074e-06/0.8962, allocations: 0 / 1.082 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.881e-05/0.8963, allocations: 0 / 1.082 GB, free: 13.02 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.002779/0.8991, allocations: 1.513 MB / 1.084 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.8991, allocations: 10 kB / 1.084 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004175/0.8995, allocations: 140.2 kB / 1.084 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.9013, allocations: 1.039 MB / 1.085 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.706e-05/0.9014, allocations: 53.19 kB / 1.085 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.9015, allocations: 82.12 kB / 1.085 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.9029, allocations: 0.7903 MB / 1.086 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.903, allocations: 1.219 kB / 1.086 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.903, allocations: 28.41 kB / 1.086 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/0.9031, allocations: 19.25 kB / 1.086 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.9044, allocations: 0.5745 MB / 1.087 GB, free: 11.67 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.004284/0.9086, allocations: 3.562 MB / 1.09 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005997/0.9093, allocations: 267.8 kB / 1.09 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003607/0.9096, allocations: 179.6 kB / 1.091 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003768/0.91, allocations: 0.6606 MB / 1.091 GB, free: 9.055 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.9101, allocations: 41.47 kB / 1.091 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.745e-06/0.9101, allocations: 0.5625 kB / 1.091 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001373/0.9114, allocations: 0.5142 MB / 1.092 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.9115, allocations: 54.34 kB / 1.092 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.9127, allocations: 0.9499 MB / 1.093 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.9128, allocations: 31.52 kB / 1.093 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003626/0.9132, allocations: 499.7 kB / 1.093 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.9133, allocations: 114.9 kB / 1.093 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.9134, allocations: 115.9 kB / 1.093 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.694e-05/0.9135, allocations: 328.1 kB / 1.094 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000364/0.9139, allocations: 161.6 kB / 1.094 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/0.9143, allocations: 354 kB / 1.094 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007859/0.9151, allocations: 0.516 MB / 1.095 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.9151, allocations: 2.25 kB / 1.095 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001237/0.9164, allocations: 0.6177 MB / 1.095 GB, free: 7.586 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.9164, allocations: 10.72 kB / 1.095 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.9164, allocations: 6.453 kB / 1.095 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.9165, allocations: 7.719 kB / 1.095 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.9169, allocations: 122.5 kB / 1.095 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.9169, allocations: 15.61 kB / 1.095 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.9177, allocations: 91.11 kB / 1.096 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.9178, allocations: 30.38 kB / 1.096 GB, free: 7.527 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.000401/0.9182, allocations: 285.6 kB / 1.096 GB, free: 7.402 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001718/0.9184, allocations: 95.72 kB / 1.096 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.9194, allocations: 483.6 kB / 1.096 GB, free: 7.301 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.9194, allocations: 11.06 kB / 1.096 GB, free: 7.297 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.9194, allocations: 0 / 1.096 GB, free: 7.297 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007469/0.9202, allocations: 450.5 kB / 1.097 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.9225, allocations: 1.369 MB / 1.098 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.9225, allocations: 1.156 kB / 1.098 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.9229, allocations: 76.84 kB / 1.098 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.9229, allocations: 2.688 kB / 1.098 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.9229, allocations: 17.38 kB / 1.098 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.744e-06/0.9229, allocations: 10.34 kB / 1.098 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.9229, allocations: 2.25 kB / 1.098 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.9243, allocations: 0.7602 MB / 1.099 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.9247, allocations: 224.9 kB / 1.099 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.9249, allocations: 8.703 kB / 1.099 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005131/0.9254, allocations: 35.55 kB / 1.099 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.9255, allocations: 25.92 kB / 1.099 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.36e-05/0.9255, allocations: 19.75 kB / 1.099 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008922/0.9264, allocations: 0.6597 MB / 1.1 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4e-07/0.9264, allocations: 0 / 1.1 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001202/0.9276, allocations: 338.9 kB / 1.1 GB, free: 6.211 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.0008881/0.9285, allocations: 399.5 kB / 1.101 GB, free: 6.051 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001182/0.9297, allocations: 447 kB / 1.101 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.9297, allocations: 4.75 kB / 1.101 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004038/0.9301, allocations: 182.4 kB / 1.101 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/0.9331, allocations: 0.6144 MB / 1.102 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.9358, allocations: 1.651 MB / 1.103 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005431/0.9363, allocations: 1.031 MB / 1.105 GB, free: 4.414 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.9366, allocations: 81.47 kB / 1.105 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of SimCode: time 7.42e-07/0.9366, allocations: 0 / 1.105 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.03141/0.968, allocations: 18.01 MB / 1.122 GB, free: 1.238 MB / 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 -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