Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 80.3 kB / 21.47 MB, free: 3.027 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001/0.001, allocations: 172.3 kB / 24.87 MB, free: 8.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9744/0.9744, allocations: 177.1 MB / 205.3 MB, free: 4.898 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.879/1.879, allocations: 377.9 MB / 0.6247 GB, free: 8.355 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.8128 GB, free: 1.379 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.622e-05/1.769e-05, allocations: 3.375 kB / 0.8128 GB, free: 1.375 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.01009/0.01011, allocations: 13.13 MB / 0.8256 GB, free: 4.215 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.006056/0.01616, allocations: 5.335 MB / 0.8308 GB, free: 14.91 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005655/0.01673, allocations: 87.25 kB / 0.8309 GB, free: 14.83 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.000604/0.01733, allocations: 373.2 kB / 0.8313 GB, free: 14.46 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.001606/0.01894, allocations: 1.34 MB / 0.8326 GB, free: 13.11 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.02019, allocations: 1.118 MB / 0.8337 GB, free: 11.99 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.002245/0.02243, allocations: 3.396 MB / 0.837 GB, free: 8.586 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009236/0.02336, allocations: 0.8305 MB / 0.8378 GB, free: 7.734 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.02504, allocations: 1.616 MB / 0.8394 GB, free: 6.133 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007031/0.02574, allocations: 0.806 MB / 0.8402 GB, free: 5.324 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 9.814e-05/0.02584, allocations: 100 kB / 0.8402 GB, free: 5.227 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003934/0.02623, allocations: 287.5 kB / 0.8405 GB, free: 4.945 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.02642, allocations: 306.8 kB / 0.8408 GB, free: 4.645 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.0003216/0.02674, allocations: 435 kB / 0.8412 GB, free: 4.219 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0009295/0.02767, allocations: 1.051 MB / 0.8423 GB, free: 3.164 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.02767, allocations: 0 / 0.8423 GB, free: 3.164 MB / 0.7917 GB Notification: Performance of FrontEnd: time 7.91e-07/0.02767, allocations: 0 / 0.8423 GB, free: 3.164 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.02768, allocations: 0 / 0.8423 GB, free: 3.164 MB / 0.7917 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.001385/0.02907, allocations: 1.503 MB / 0.8437 GB, free: 1.621 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.0291, allocations: 16.03 kB / 0.8437 GB, free: 1.605 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.02936, allocations: 204 kB / 0.8439 GB, free: 1.406 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000924/0.03029, allocations: 0.9529 MB / 0.8449 GB, free: 424 kB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.03032, allocations: 54.38 kB / 0.8449 GB, free: 372 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.399e-05/0.0304, allocations: 83.94 kB / 0.845 GB, free: 288 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000655/0.03105, allocations: 0.701 MB / 0.8457 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.03107, allocations: 3.984 kB / 0.8457 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.03111, allocations: 28 kB / 0.8457 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.205e-05/0.03115, allocations: 20 kB / 0.8457 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.0314, allocations: 202.1 kB / 0.8459 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.03356, allocations: 2.957 MB / 0.8488 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.03377, allocations: 134.9 kB / 0.8489 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.685e-05/0.03385, allocations: 71.62 kB / 0.849 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 8.784e-05/0.03394, allocations: 27.98 kB / 0.849 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.03396, allocations: 37.39 kB / 0.8491 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=31): time 1.563e-06/0.03396, allocations: 0 / 0.8491 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=31): time 0.0003624/0.03432, allocations: 278.5 kB / 0.8493 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.03435, allocations: 55.41 kB / 0.8494 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004997/0.03485, allocations: 0.7409 MB / 0.8501 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.03488, allocations: 37.7 kB / 0.8501 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002715/0.03515, allocations: 0.565 MB / 0.8507 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.03535, allocations: 119 kB / 0.8508 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.03546, allocations: 131.8 kB / 0.8509 GB, free: 9.922 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.03557, allocations: 0.5003 MB / 0.8514 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.326e-05/0.03566, allocations: 53.27 kB / 0.8515 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000261/0.03592, allocations: 476.8 kB / 0.8519 GB, free: 8.754 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.03622, allocations: 381 kB / 0.8523 GB, free: 8.285 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.03622, allocations: 0 / 0.8523 GB, free: 8.285 MB / 0.8073 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004251/0.03665, allocations: 436.4 kB / 0.8527 GB, free: 7.852 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.03666, allocations: 8 kB / 0.8527 GB, free: 7.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.03667, allocations: 4 kB / 0.8527 GB, free: 7.84 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.03668, allocations: 8 kB / 0.8527 GB, free: 7.832 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.0369, allocations: 116.5 kB / 0.8528 GB, free: 7.719 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.03691, allocations: 19.92 kB / 0.8529 GB, free: 7.699 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.03713, allocations: 59.62 kB / 0.8529 GB, free: 7.641 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.03716, allocations: 23.98 kB / 0.8529 GB, free: 7.617 MB / 0.8073 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.0001551/0.03732, allocations: 188.4 kB / 0.8531 GB, free: 7.422 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.556e-05/0.03741, allocations: 107.3 kB / 0.8532 GB, free: 7.316 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003327/0.03774, allocations: 279 kB / 0.8535 GB, free: 7.039 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.03775, allocations: 8 kB / 0.8535 GB, free: 7.031 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.03775, allocations: 0 / 0.8535 GB, free: 7.031 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001828/0.03794, allocations: 266.9 kB / 0.8538 GB, free: 6.742 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008154/0.03875, allocations: 0.8906 MB / 0.8546 GB, free: 5.797 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.03876, allocations: 4 kB / 0.8546 GB, free: 5.793 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.03892, allocations: 67.89 kB / 0.8547 GB, free: 5.727 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.03892, allocations: 4 kB / 0.8547 GB, free: 5.723 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.03894, allocations: 8 kB / 0.8547 GB, free: 5.715 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.03894, allocations: 4 kB / 0.8547 GB, free: 5.711 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.03894, allocations: 4.156 kB / 0.8547 GB, free: 5.707 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.03934, allocations: 0.5076 MB / 0.8552 GB, free: 5.16 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.0395, allocations: 139.3 kB / 0.8553 GB, free: 5.023 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.523e-05/0.03956, allocations: 8 kB / 0.8553 GB, free: 5.016 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.03976, allocations: 15.98 kB / 0.8554 GB, free: 5 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.03981, allocations: 31.89 kB / 0.8554 GB, free: 4.969 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.03983, allocations: 15.98 kB / 0.8554 GB, free: 4.953 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0002695/0.0401, allocations: 446.7 kB / 0.8558 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.0401, allocations: 0 / 0.8558 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004583/0.04056, allocations: 287.4 kB / 0.8561 GB, free: 4.238 MB / 0.8073 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.0002378/0.0408, allocations: 186.9 kB / 0.8563 GB, free: 4.047 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002764/0.04107, allocations: 236.4 kB / 0.8565 GB, free: 3.812 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.04108, allocations: 0 / 0.8565 GB, free: 3.812 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.04118, allocations: 100.9 kB / 0.8566 GB, free: 3.711 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.04228, allocations: 0.4981 MB / 0.8571 GB, free: 3.227 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.04394, allocations: 1.457 MB / 0.8585 GB, free: 1.703 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.04406, allocations: 199.2 kB / 0.8587 GB, free: 1.488 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0002871/0.04434, allocations: 138.2 kB / 0.8588 GB, free: 1.352 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/0.04493, allocations: 441.8 kB / 0.8593 GB, free: 0.918 MB / 0.8073 GB Notification: Performance of SimCode: time 7.01e-07/0.04493, allocations: 0 / 0.8593 GB, free: 0.918 MB / 0.8073 GB Notification: Performance of Templates: time 0.0192/0.06414, allocations: 17.89 MB / 0.8767 GB, free: 15.49 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.40886615915224]