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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.007464/0.007465, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001729/0.001728, allocations: 191.5 kB / 16.79 MB, free: 5.809 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.371/1.371, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.726/2.726, allocations: 461.8 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 66.62 kB / 0.899 GB, free: 37.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3139, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04148/0.3554, allocations: 41.35 MB / 1.093 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01438/0.3699, allocations: 10.46 MB / 1.103 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002234/0.3721, allocations: 47.69 kB / 1.103 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002041/0.3742, allocations: 0.5284 MB / 1.104 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005212/0.3795, allocations: 1.746 MB / 1.106 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003139/0.3826, allocations: 1.062 MB / 1.107 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005109/0.3877, allocations: 4.529 MB / 1.111 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001606/0.3894, allocations: 0.8714 MB / 1.112 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002383/0.3918, allocations: 1.046 MB / 1.113 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.3934, allocations: 0.8866 MB / 1.114 GB, free: 9.559 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.00028/0.3937, allocations: 52 kB / 1.114 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002256/0.396, allocations: 0.7794 MB / 1.115 GB, free: 8.727 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000407/0.3964, allocations: 223 kB / 1.115 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.3976, allocations: 0.5829 MB / 1.115 GB, free: 7.922 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002018/0.3996, allocations: 1.466 MB / 1.117 GB, free: 6.453 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3996, allocations: 0 / 1.117 GB, free: 6.453 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3996, allocations: 0 / 1.117 GB, free: 6.453 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.771e-05/0.3997, allocations: 0 / 1.117 GB, free: 6.453 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.003287/0.403, allocations: 1.515 MB / 1.118 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.403, allocations: 15.95 kB / 1.118 GB, free: 4.867 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005171/0.4036, allocations: 135.4 kB / 1.118 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001935/0.4055, allocations: 1.084 MB / 1.12 GB, free: 3.609 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.709e-05/0.4056, allocations: 58 kB / 1.12 GB, free: 3.551 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.4057, allocations: 68 kB / 1.12 GB, free: 3.484 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.4072, allocations: 0.7905 MB / 1.12 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.662e-05/0.4072, allocations: 7.891 kB / 1.12 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.097e-05/0.4073, allocations: 28 kB / 1.12 GB, free: 2.625 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.541e-05/0.4073, allocations: 23.98 kB / 1.12 GB, free: 2.602 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.4085, allocations: 0.571 MB / 1.121 GB, free: 2.031 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.004214/0.4127, allocations: 3.54 MB / 1.124 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.4133, allocations: 266.3 kB / 1.125 GB, free: 14 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.4136, allocations: 176.8 kB / 1.125 GB, free: 13.82 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004973/0.4142, allocations: 0.6532 MB / 1.126 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/0.4142, allocations: 42.56 kB / 1.126 GB, free: 12.97 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 1.893e-06/0.4142, allocations: 0 / 1.126 GB, free: 12.97 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.00121/0.4154, allocations: 0.5168 MB / 1.126 GB, free: 12.45 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.4155, allocations: 55.41 kB / 1.126 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.4167, allocations: 0.9339 MB / 1.127 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 5.004e-05/0.4168, allocations: 33.7 kB / 1.127 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004073/0.4172, allocations: 499.6 kB / 1.128 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.4173, allocations: 118.4 kB / 1.128 GB, free: 10.77 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.4175, allocations: 110.2 kB / 1.128 GB, free: 10.66 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.4177, allocations: 333.9 kB / 1.128 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.418, allocations: 161 kB / 1.128 GB, free: 10.17 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.4185, allocations: 350.9 kB / 1.129 GB, free: 9.754 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008351/0.4194, allocations: 0.5224 MB / 1.129 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.4194, allocations: 4 kB / 1.129 GB, free: 9.156 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001179/0.4206, allocations: 0.6097 MB / 1.13 GB, free: 8.539 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.4206, allocations: 13.97 kB / 1.13 GB, free: 8.527 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.4206, allocations: 4 kB / 1.13 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.4207, allocations: 8 kB / 1.13 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004465/0.4211, allocations: 131.7 kB / 1.13 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.4211, allocations: 8 kB / 1.13 GB, free: 8.379 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000738/0.4219, allocations: 107.2 kB / 1.13 GB, free: 8.273 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.418e-05/0.4219, allocations: 24 kB / 1.13 GB, free: 8.25 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.0003633/0.4223, allocations: 281.5 kB / 1.13 GB, free: 7.965 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.4225, allocations: 102.8 kB / 1.13 GB, free: 7.863 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009825/0.4235, allocations: 484.4 kB / 1.131 GB, free: 7.379 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.4235, allocations: 4 kB / 1.131 GB, free: 7.375 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.4235, allocations: 4.062 kB / 1.131 GB, free: 7.371 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006862/0.4242, allocations: 455 kB / 1.131 GB, free: 6.898 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.4263, allocations: 1.346 MB / 1.133 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4263, allocations: 0 / 1.133 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.4267, allocations: 75.89 kB / 1.133 GB, free: 5.406 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4267, allocations: 7.938 kB / 1.133 GB, free: 5.398 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.4267, allocations: 11.98 kB / 1.133 GB, free: 5.387 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.4267, allocations: 4 kB / 1.133 GB, free: 5.383 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4267, allocations: 4.156 kB / 1.133 GB, free: 5.379 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.428, allocations: 0.7703 MB / 1.133 GB, free: 4.578 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003405/0.4283, allocations: 235.6 kB / 1.134 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.4285, allocations: 8 kB / 1.134 GB, free: 4.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006044/0.4291, allocations: 48 kB / 1.134 GB, free: 4.273 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.925e-05/0.4292, allocations: 23.97 kB / 1.134 GB, free: 4.25 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.4292, allocations: 27.97 kB / 1.134 GB, free: 4.223 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008139/0.43, allocations: 0.6471 MB / 1.134 GB, free: 3.566 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.61e-07/0.43, allocations: 4 kB / 1.134 GB, free: 3.562 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009782/0.431, allocations: 331.4 kB / 1.135 GB, free: 3.238 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.0008336/0.4319, allocations: 379.5 kB / 1.135 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0008481/0.4327, allocations: 432.1 kB / 1.135 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4327, allocations: 0 / 1.135 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003966/0.4331, allocations: 187.7 kB / 1.136 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/0.4359, allocations: 0.6087 MB / 1.136 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.4386, allocations: 1.964 MB / 1.138 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005888/0.4392, allocations: 1.028 MB / 1.139 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.4394, allocations: 91.41 kB / 1.139 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of SimCode: time 2.8e-07/0.4394, allocations: 0 / 1.139 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of Templates: time 0.0263/0.4657, allocations: 17.83 MB / 1.157 GB, free: 12.83 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches