Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001585/0.001585, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001939/0.00194, allocations: 199.5 kB / 16.26 MB, free: 6.625 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.415/1.415, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.2 MB / 0.6643 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8082/0.8097, allocations: 140.4 MB / 0.9491 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.05357/0.8633, allocations: 41.26 MB / 0.9894 GB, free: 7.988 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0155/0.8789, allocations: 10.33 MB / 0.9995 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002301/0.8812, allocations: 51.69 kB / 0.9995 GB, free: 14.26 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.8831, allocations: 0.5518 MB / 1 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005744/0.8889, allocations: 1.754 MB / 1.002 GB, free: 11.94 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.004396/0.8933, allocations: 1.097 MB / 1.003 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004994/0.8983, allocations: 3.414 MB / 1.006 GB, free: 7.434 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.9, allocations: 1.05 MB / 1.007 GB, free: 6.367 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003147/0.9031, allocations: 1.243 MB / 1.008 GB, free: 5.129 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.9045, allocations: 0.9256 MB / 1.009 GB, free: 4.199 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.9046, allocations: 99.94 kB / 1.009 GB, free: 4.102 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.9066, allocations: 0.8732 MB / 1.01 GB, free: 3.227 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002783/0.9069, allocations: 279 kB / 1.011 GB, free: 2.953 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007151/0.9076, allocations: 0.6221 MB / 1.011 GB, free: 2.328 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002674/0.9103, allocations: 1.924 MB / 1.013 GB, free: 408 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.9103, allocations: 0 / 1.013 GB, free: 408 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9103, allocations: 4 kB / 1.013 GB, free: 404 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.079e-05/0.9104, allocations: 0 / 1.013 GB, free: 404 kB / 0.7637 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.002447/0.9128, allocations: 1.499 MB / 1.014 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.9129, allocations: 12.03 kB / 1.014 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003627/0.9132, allocations: 135.4 kB / 1.015 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00159/0.9148, allocations: 1.084 MB / 1.016 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.326e-05/0.9149, allocations: 54 kB / 1.016 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.915, allocations: 68 kB / 1.016 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.9164, allocations: 0.7944 MB / 1.017 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.9165, allocations: 0 / 1.017 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.269e-05/0.9165, allocations: 36 kB / 1.017 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/0.9166, allocations: 19.98 kB / 1.017 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.9177, allocations: 0.575 MB / 1.017 GB, free: 11.99 MB / 0.7794 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.004983/0.9227, allocations: 3.543 MB / 1.021 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008143/0.9235, allocations: 262.4 kB / 1.021 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004274/0.924, allocations: 177.3 kB / 1.021 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005915/0.9246, allocations: 0.6648 MB / 1.022 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.9246, allocations: 34.56 kB / 1.022 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.9246, allocations: 0 / 1.022 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001335/0.926, allocations: 0.5163 MB / 1.022 GB, free: 6.398 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.926, allocations: 55.41 kB / 1.022 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.9272, allocations: 0.9338 MB / 1.023 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.662e-05/0.9272, allocations: 37.7 kB / 1.023 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/0.9276, allocations: 491.6 kB / 1.024 GB, free: 4.852 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.9278, allocations: 118.4 kB / 1.024 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.9279, allocations: 110.2 kB / 1.024 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001802/0.9281, allocations: 329.9 kB / 1.024 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003366/0.9285, allocations: 169 kB / 1.024 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004695/0.9289, allocations: 350.8 kB / 1.025 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007765/0.9297, allocations: 0.5186 MB / 1.025 GB, free: 3.117 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.9297, allocations: 0 / 1.025 GB, free: 3.117 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001128/0.9309, allocations: 0.6175 MB / 1.026 GB, free: 2.492 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.9309, allocations: 4 kB / 1.026 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.9309, allocations: 8 kB / 1.026 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.9309, allocations: 11.94 kB / 1.026 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.9314, allocations: 123.8 kB / 1.026 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.9314, allocations: 11.94 kB / 1.026 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007268/0.9321, allocations: 111.3 kB / 1.026 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.363e-05/0.9322, allocations: 24 kB / 1.026 GB, free: 2.203 MB / 0.7794 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.000391/0.9326, allocations: 285.5 kB / 1.026 GB, free: 1.914 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.9328, allocations: 102.8 kB / 1.027 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009487/0.9337, allocations: 480.3 kB / 1.027 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.9337, allocations: 8 kB / 1.027 GB, free: 1.328 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.9337, allocations: 0 / 1.027 GB, free: 1.328 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007001/0.9345, allocations: 445.5 kB / 1.027 GB, free: 0.8633 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/0.9365, allocations: 1.358 MB / 1.029 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.9365, allocations: 64 / 1.029 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.9368, allocations: 75.89 kB / 1.029 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.9369, allocations: 7.938 kB / 1.029 GB, free: 15.35 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.9369, allocations: 20.14 kB / 1.029 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.9369, allocations: 4 kB / 1.029 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.9369, allocations: 0 / 1.029 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.9382, allocations: 0.7621 MB / 1.03 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.9385, allocations: 227.8 kB / 1.03 GB, free: 14.29 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.9386, allocations: 8 kB / 1.03 GB, free: 14.29 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005538/0.9392, allocations: 55.84 kB / 1.03 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/0.9392, allocations: 23.97 kB / 1.03 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.273e-05/0.9393, allocations: 19.98 kB / 1.03 GB, free: 14.19 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008701/0.9402, allocations: 0.651 MB / 1.031 GB, free: 13.53 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9402, allocations: 3.938 kB / 1.031 GB, free: 13.52 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0009959/0.9412, allocations: 335.4 kB / 1.031 GB, free: 13.2 MB / 0.795 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.0007459/0.9419, allocations: 383.5 kB / 1.031 GB, free: 12.82 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009839/0.9429, allocations: 448.6 kB / 1.032 GB, free: 12.39 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.9429, allocations: 4 kB / 1.032 GB, free: 12.38 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.9433, allocations: 179.8 kB / 1.032 GB, free: 12.21 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.9459, allocations: 0.6254 MB / 1.032 GB, free: 11.61 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.9486, allocations: 1.939 MB / 1.034 GB, free: 9.617 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006/0.9492, allocations: 1.04 MB / 1.035 GB, free: 8.543 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000757/0.95, allocations: 191.2 kB / 1.036 GB, free: 8.355 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.9502, allocations: 87.41 kB / 1.036 GB, free: 8.273 MB / 0.795 GB Notification: Performance of SimCode: time 6.91e-07/0.9502, allocations: 0 / 1.036 GB, free: 8.273 MB / 0.795 GB Notification: Performance of Templates: time 0.03545/0.9856, allocations: 20.73 MB / 1.056 GB, free: 3.844 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches