Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001913/0.001913, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.002091/0.002091, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.418/1.418, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.552/2.552, allocations: 437.1 MB / 0.7111 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 63.45 kB / 0.8699 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3207, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04556/0.3663, allocations: 41.58 MB / 1.059 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01647/0.3828, allocations: 10.4 MB / 1.069 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.3849, allocations: 59.62 kB / 1.069 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002007/0.387, allocations: 0.6404 MB / 1.069 GB, free: 5.734 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005519/0.3925, allocations: 1.878 MB / 1.071 GB, free: 3.848 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003214/0.3957, allocations: 1.167 MB / 1.072 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.5608/0.9566, allocations: 3.399 MB / 1.076 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002032/0.9587, allocations: 1.058 MB / 1.077 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/0.9622, allocations: 1.225 MB / 1.078 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.964, allocations: 0.8842 MB / 1.079 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.9643, allocations: 102.9 kB / 1.079 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002415/0.9667, allocations: 0.8578 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003203/0.967, allocations: 277.6 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0008327/0.9679, allocations: 0.6279 MB / 1.081 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003563/0.9714, allocations: 1.899 MB / 1.082 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.9715, allocations: 4 kB / 1.082 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.294e-06/0.9715, allocations: 0.75 kB / 1.082 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.586e-05/0.9715, allocations: 0 / 1.082 GB, free: 13.1 MB / 0.8419 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.00303/0.9745, allocations: 1.511 MB / 1.084 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.9746, allocations: 11.69 kB / 1.084 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004216/0.975, allocations: 138.2 kB / 1.084 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.9768, allocations: 1.041 MB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.505e-05/0.9769, allocations: 52.72 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.977, allocations: 80.53 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.9785, allocations: 0.7923 MB / 1.086 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.9785, allocations: 0.75 kB / 1.086 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-05/0.9786, allocations: 30.31 kB / 1.086 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.307e-05/0.9786, allocations: 23.19 kB / 1.086 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.9799, allocations: 0.5765 MB / 1.087 GB, free: 11.75 MB / 0.8419 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.004369/0.9843, allocations: 3.56 MB / 1.09 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.9849, allocations: 270.6 kB / 1.09 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003552/0.9853, allocations: 175.1 kB / 1.091 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00037/0.9857, allocations: 0.655 MB / 1.091 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.9857, allocations: 41.97 kB / 1.091 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.334e-06/0.9857, allocations: 0 / 1.091 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001298/0.987, allocations: 0.5116 MB / 1.092 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.9871, allocations: 54.59 kB / 1.092 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.9883, allocations: 0.95 MB / 1.093 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.9883, allocations: 36.83 kB / 1.093 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003417/0.9887, allocations: 499.8 kB / 1.093 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.9888, allocations: 113.1 kB / 1.093 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/0.989, allocations: 118.5 kB / 1.093 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.559e-05/0.9891, allocations: 325.5 kB / 1.094 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.9894, allocations: 162.2 kB / 1.094 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.9899, allocations: 355.1 kB / 1.094 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008221/0.9907, allocations: 0.515 MB / 1.095 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.9908, allocations: 1.094 kB / 1.095 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001257/0.992, allocations: 0.6165 MB / 1.095 GB, free: 7.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.9921, allocations: 16.02 kB / 1.095 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.9921, allocations: 5.531 kB / 1.095 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.072e-05/0.9921, allocations: 9.078 kB / 1.095 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/0.9926, allocations: 119.7 kB / 1.095 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.9926, allocations: 13.38 kB / 1.095 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007633/0.9934, allocations: 96.52 kB / 1.096 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.303e-05/0.9934, allocations: 24.7 kB / 1.096 GB, free: 7.605 MB / 0.8419 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.0003704/0.9938, allocations: 286.9 kB / 1.096 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.994, allocations: 94.62 kB / 1.096 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.9951, allocations: 482.2 kB / 1.096 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.9951, allocations: 8.547 kB / 1.096 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.9951, allocations: 2.031 kB / 1.096 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007617/0.9959, allocations: 453.7 kB / 1.097 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/0.9983, allocations: 1.363 MB / 1.098 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.9983, allocations: 2.203 kB / 1.098 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.9987, allocations: 77.89 kB / 1.098 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/0.9987, allocations: 3.5 kB / 1.098 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.121e-05/0.9987, allocations: 13.47 kB / 1.098 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.796e-06/0.9988, allocations: 7.141 kB / 1.098 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.9988, allocations: 1.688 kB / 1.098 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/1, allocations: 0.7643 MB / 1.099 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003381/1, allocations: 226 kB / 1.099 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/1.001, allocations: 9.734 kB / 1.099 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000507/1.001, allocations: 36.42 kB / 1.099 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.883e-05/1.001, allocations: 22.88 kB / 1.099 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/1.001, allocations: 19.44 kB / 1.099 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0009136/1.002, allocations: 0.6597 MB / 1.1 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.71e-07/1.002, allocations: 0 / 1.1 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001259/1.003, allocations: 340.2 kB / 1.1 GB, free: 6.289 MB / 0.8419 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.0008346/1.004, allocations: 416.4 kB / 1.101 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001065/1.005, allocations: 444.8 kB / 1.101 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.005, allocations: 4.938 kB / 1.101 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003968/1.006, allocations: 182.4 kB / 1.101 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/1.009, allocations: 0.6168 MB / 1.102 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/1.011, allocations: 1.644 MB / 1.104 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005832/1.012, allocations: 1.032 MB / 1.105 GB, free: 4.484 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/1.012, allocations: 83.02 kB / 1.105 GB, free: 4.48 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/1.012, allocations: 0 / 1.105 GB, free: 4.48 MB / 0.8419 GB Notification: Performance of Templates: time 0.03392/1.046, allocations: 17.99 MB / 1.122 GB, free: 1.367 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches