Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001043/0.001043, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.000968/0.000968, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8881/0.8881, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.624/1.624, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.66e-05/1.803e-05, allocations: 6.219 kB / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.02581/0.02583, allocations: 38.12 MB / 0.9877 GB, free: 13.23 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.01066/0.03649, allocations: 9.682 MB / 0.9972 GB, free: 3.523 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.03773, allocations: 79.31 kB / 0.9973 GB, free: 3.445 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.03899, allocations: 0.6441 MB / 0.9979 GB, free: 2.797 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.003919/0.04291, allocations: 2.071 MB / 0.9999 GB, free: 0.7148 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.002165/0.04508, allocations: 1.261 MB / 1.001 GB, free: 15.46 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.003089/0.04817, allocations: 3.482 MB / 1.005 GB, free: 11.98 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000839/0.049, allocations: 0.8144 MB / 1.005 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.05124, allocations: 1.704 MB / 1.007 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006959/0.05194, allocations: 0.8021 MB / 1.008 GB, free: 8.633 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 9.187e-05/0.05203, allocations: 100 kB / 1.008 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.05315, allocations: 0.7285 MB / 1.009 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.05333, allocations: 302.7 kB / 1.009 GB, free: 7.508 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0003052/0.05364, allocations: 435 kB / 1.009 GB, free: 7.082 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.001596/0.05523, allocations: 1.963 MB / 1.011 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.05524, allocations: 0 / 1.011 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.252e-06/0.05524, allocations: 0 / 1.011 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 1.195e-05/0.05525, allocations: 0 / 1.011 GB, free: 5.113 MB / 0.9636 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.001559/0.05681, allocations: 1.477 MB / 1.013 GB, free: 3.598 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.05685, allocations: 8.031 kB / 1.013 GB, free: 3.59 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.05697, allocations: 118.7 kB / 1.013 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002175/0.05719, allocations: 144.1 kB / 1.013 GB, free: 3.324 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.05839, allocations: 1.055 MB / 1.014 GB, free: 2.234 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.05843, allocations: 58.12 kB / 1.014 GB, free: 2.176 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.05856, allocations: 72 kB / 1.014 GB, free: 2.105 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008856/0.05945, allocations: 0.9411 MB / 1.015 GB, free: 1.094 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.05947, allocations: 7.953 kB / 1.015 GB, free: 1.086 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/0.05951, allocations: 32 kB / 1.015 GB, free: 1.055 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/0.05954, allocations: 24 kB / 1.015 GB, free: 1.031 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006856/0.06022, allocations: 0.5632 MB / 1.016 GB, free: 480 kB / 0.9636 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.002475/0.0627, allocations: 2.736 MB / 1.018 GB, free: 13.64 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.06307, allocations: 246.4 kB / 1.019 GB, free: 13.39 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.06327, allocations: 165.3 kB / 1.019 GB, free: 13.23 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.06341, allocations: 55.95 kB / 1.019 GB, free: 13.17 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.06343, allocations: 42.55 kB / 1.019 GB, free: 13.12 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.06343, allocations: 3.938 kB / 1.019 GB, free: 13.12 MB / 0.9792 GB Notification: Performance of matching and sorting (n=31): time 0.0009751/0.06441, allocations: 0.5262 MB / 1.019 GB, free: 12.59 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.06444, allocations: 55.41 kB / 1.019 GB, free: 12.52 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007454/0.06518, allocations: 0.9735 MB / 1.02 GB, free: 11.53 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.06521, allocations: 33.7 kB / 1.02 GB, free: 11.49 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002641/0.06547, allocations: 0.5043 MB / 1.021 GB, free: 10.98 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 6.626e-05/0.06554, allocations: 115.1 kB / 1.021 GB, free: 10.86 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.06564, allocations: 118.2 kB / 1.021 GB, free: 10.74 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 7.888e-05/0.06572, allocations: 329.9 kB / 1.021 GB, free: 10.41 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.06592, allocations: 161.2 kB / 1.021 GB, free: 10.25 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.06625, allocations: 0.502 MB / 1.022 GB, free: 9.637 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.06674, allocations: 0.5071 MB / 1.022 GB, free: 9.059 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.06674, allocations: 3.984 kB / 1.022 GB, free: 9.055 MB / 0.9792 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006602/0.0674, allocations: 0.6257 MB / 1.023 GB, free: 8.422 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.06742, allocations: 10.5 kB / 1.023 GB, free: 8.414 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.06743, allocations: 4 kB / 1.023 GB, free: 8.41 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.06744, allocations: 8 kB / 1.023 GB, free: 8.402 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.06768, allocations: 123.8 kB / 1.023 GB, free: 8.281 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.06769, allocations: 15.92 kB / 1.023 GB, free: 8.266 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.06798, allocations: 91.66 kB / 1.023 GB, free: 8.176 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.06801, allocations: 24 kB / 1.023 GB, free: 8.152 MB / 0.9792 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.0002378/0.06825, allocations: 283.3 kB / 1.024 GB, free: 7.867 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.756e-05/0.06834, allocations: 103.3 kB / 1.024 GB, free: 7.766 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000589/0.06893, allocations: 489.2 kB / 1.024 GB, free: 7.285 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.06894, allocations: 8 kB / 1.024 GB, free: 7.277 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.06894, allocations: 0 / 1.024 GB, free: 7.277 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004139/0.06936, allocations: 457 kB / 1.025 GB, free: 6.801 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.07057, allocations: 1.249 MB / 1.026 GB, free: 5.488 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.07058, allocations: 0 / 1.026 GB, free: 5.488 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.07076, allocations: 75.89 kB / 1.026 GB, free: 5.414 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.07076, allocations: 4 kB / 1.026 GB, free: 5.41 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.07078, allocations: 16.05 kB / 1.026 GB, free: 5.395 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.07078, allocations: 7.938 kB / 1.026 GB, free: 5.387 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.07078, allocations: 0 / 1.026 GB, free: 5.387 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.07188, allocations: 0.7803 MB / 1.027 GB, free: 4.578 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.07207, allocations: 159.2 kB / 1.027 GB, free: 4.422 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.07214, allocations: 8 kB / 1.027 GB, free: 4.414 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.07238, allocations: 27.91 kB / 1.027 GB, free: 4.387 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.591e-05/0.07244, allocations: 32.02 kB / 1.027 GB, free: 4.355 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.07246, allocations: 19.98 kB / 1.027 GB, free: 4.336 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0005516/0.07301, allocations: 0.6709 MB / 1.028 GB, free: 3.656 MB / 0.9792 GB Notification: Performance of sort global known variables: time 7.1e-08/0.07301, allocations: 0 / 1.028 GB, free: 3.656 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0005964/0.07361, allocations: 343.2 kB / 1.028 GB, free: 3.32 MB / 0.9792 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.001325/0.07493, allocations: 1.59 MB / 1.029 GB, free: 1.688 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0005347/0.07547, allocations: 408.7 kB / 1.03 GB, free: 1.289 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.07547, allocations: 4 kB / 1.03 GB, free: 1.285 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.0757, allocations: 184.1 kB / 1.03 GB, free: 1.105 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.07721, allocations: 0.6036 MB / 1.031 GB, free: 0.5117 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006815/0.08402, allocations: 6.847 MB / 1.037 GB, free: 9.363 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.08431, allocations: 449.6 kB / 1.038 GB, free: 8.891 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.0004532/0.08476, allocations: 195.8 kB / 1.038 GB, free: 8.699 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.08508, allocations: 384.4 kB / 1.038 GB, free: 8.32 MB / 0.9948 GB Notification: Performance of SimCode: time 1.042e-06/0.08509, allocations: 0 / 1.038 GB, free: 8.32 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4452/0.5302, allocations: 32.83 MB / 1.07 GB, free: 130.2 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.314/8.844, allocations: 0 / 1.07 GB, free: 130.2 MB / 0.9948 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.852165353484452]