Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001092/0.001093, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001047/0.001047, allocations: 198.6 kB / 16.14 MB, free: 6.645 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.354/1.354, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.855/2.855, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 67.33 kB / 0.8984 GB, free: 37.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2965, allocations: 157.4 MB / 1.052 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04162/0.3382, allocations: 41.36 MB / 1.092 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0165/0.3547, allocations: 10.47 MB / 1.103 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002505/0.3573, allocations: 55.62 kB / 1.103 GB, free: 4.816 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.3592, allocations: 0.5205 MB / 1.103 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005465/0.3647, allocations: 1.749 MB / 1.105 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003276/0.368, allocations: 1.079 MB / 1.106 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005714/0.3738, allocations: 4.506 MB / 1.11 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.3754, allocations: 0.8831 MB / 1.111 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.378, allocations: 1.034 MB / 1.112 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3795, allocations: 0.8982 MB / 1.113 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.3796, allocations: 48 kB / 1.113 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00219/0.3818, allocations: 0.7794 MB / 1.114 GB, free: 9.289 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002802/0.3821, allocations: 231 kB / 1.114 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000799/0.383, allocations: 0.5752 MB / 1.115 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002619/0.3856, allocations: 1.877 MB / 1.117 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3856, allocations: 4 kB / 1.117 GB, free: 6.598 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3856, allocations: 0 / 1.117 GB, free: 6.598 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.81e-05/0.3856, allocations: 0 / 1.117 GB, free: 6.598 MB / 0.8731 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.002436/0.3881, allocations: 1.519 MB / 1.118 GB, free: 5.023 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3881, allocations: 8.031 kB / 1.118 GB, free: 5.016 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003815/0.3885, allocations: 135.4 kB / 1.118 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/0.3901, allocations: 1.084 MB / 1.119 GB, free: 3.758 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.3902, allocations: 54 kB / 1.119 GB, free: 3.703 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3903, allocations: 68 kB / 1.119 GB, free: 3.637 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3917, allocations: 0.7944 MB / 1.12 GB, free: 2.809 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.3917, allocations: 7.906 kB / 1.12 GB, free: 2.801 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.052e-05/0.3918, allocations: 28 kB / 1.12 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.893e-05/0.3918, allocations: 20 kB / 1.12 GB, free: 2.754 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.3929, allocations: 0.5711 MB / 1.121 GB, free: 2.184 MB / 0.8731 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.004036/0.397, allocations: 3.533 MB / 1.124 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.3976, allocations: 266.3 kB / 1.124 GB, free: 14.16 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.3979, allocations: 180.8 kB / 1.125 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005143/0.3985, allocations: 0.657 MB / 1.125 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3985, allocations: 42.55 kB / 1.125 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.314e-06/0.3985, allocations: 0 / 1.125 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001314/0.3998, allocations: 0.5091 MB / 1.126 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.3999, allocations: 59.34 kB / 1.126 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.4012, allocations: 0.926 MB / 1.127 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 6.876e-05/0.4013, allocations: 37.7 kB / 1.127 GB, free: 11.55 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005595/0.4018, allocations: 499.6 kB / 1.127 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.402, allocations: 114.4 kB / 1.127 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/0.4022, allocations: 110.1 kB / 1.128 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4024, allocations: 337.9 kB / 1.128 GB, free: 10.49 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004294/0.4029, allocations: 161 kB / 1.128 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006055/0.4035, allocations: 352.4 kB / 1.128 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009328/0.4044, allocations: 0.5186 MB / 1.129 GB, free: 9.324 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4044, allocations: 0 / 1.129 GB, free: 9.324 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00143/0.4059, allocations: 0.6094 MB / 1.129 GB, free: 8.707 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.4059, allocations: 8 kB / 1.129 GB, free: 8.699 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.4059, allocations: 7.984 kB / 1.129 GB, free: 8.691 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.406, allocations: 11.94 kB / 1.129 GB, free: 8.68 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/0.4065, allocations: 123.8 kB / 1.13 GB, free: 8.559 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.39e-05/0.4065, allocations: 16.31 kB / 1.13 GB, free: 8.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009585/0.4075, allocations: 111.3 kB / 1.13 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.782e-05/0.4075, allocations: 28 kB / 1.13 GB, free: 8.406 MB / 0.8887 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.0005941/0.4081, allocations: 282.6 kB / 1.13 GB, free: 8.121 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.4083, allocations: 98.78 kB / 1.13 GB, free: 8.023 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009991/0.4093, allocations: 492.4 kB / 1.131 GB, free: 7.531 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.4094, allocations: 4 kB / 1.131 GB, free: 7.527 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4094, allocations: 0 / 1.131 GB, free: 7.527 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007012/0.4101, allocations: 451 kB / 1.131 GB, free: 7.059 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.4123, allocations: 1.346 MB / 1.132 GB, free: 5.641 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4123, allocations: 4 kB / 1.132 GB, free: 5.637 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003437/0.4126, allocations: 84.03 kB / 1.132 GB, free: 5.555 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.4126, allocations: 3.938 kB / 1.132 GB, free: 5.551 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.4127, allocations: 8 kB / 1.132 GB, free: 5.543 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4127, allocations: 4 kB / 1.132 GB, free: 5.539 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4127, allocations: 4 kB / 1.132 GB, free: 5.535 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.414, allocations: 0.7666 MB / 1.133 GB, free: 4.738 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.4143, allocations: 227.6 kB / 1.133 GB, free: 4.496 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.4145, allocations: 16.05 kB / 1.133 GB, free: 4.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005733/0.415, allocations: 43.95 kB / 1.133 GB, free: 4.438 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.479e-05/0.4151, allocations: 27.97 kB / 1.133 GB, free: 4.41 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.4152, allocations: 19.98 kB / 1.133 GB, free: 4.391 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008669/0.4161, allocations: 0.651 MB / 1.134 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of sort global known variables: time 5.61e-07/0.4161, allocations: 0 / 1.134 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001084/0.4172, allocations: 331.5 kB / 1.134 GB, free: 3.406 MB / 0.8887 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.0009059/0.4181, allocations: 391.4 kB / 1.135 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.000916/0.419, allocations: 431.5 kB / 1.135 GB, free: 2.605 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.419, allocations: 0 / 1.135 GB, free: 2.605 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.4194, allocations: 186.2 kB / 1.135 GB, free: 2.426 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.4221, allocations: 0.6 MB / 1.136 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.4249, allocations: 1.946 MB / 1.138 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.4255, allocations: 1.036 MB / 1.139 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0008214/0.4263, allocations: 194.4 kB / 1.139 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.4265, allocations: 83.41 kB / 1.139 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of SimCode: time 8.72e-07/0.4265, allocations: 0 / 1.139 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of Templates: time 0.03676/0.4633, allocations: 20.16 MB / 1.159 GB, free: 10.58 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches