Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.502/1.502, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 67.89 kB / 0.8126 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6045/0.6061, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2017/0.8079, allocations: 194 MB / 1.139 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01155/0.8195, allocations: 6.933 MB / 1.146 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.8216, allocations: 47.69 kB / 1.146 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.8238, allocations: 0.683 MB / 1.147 GB, free: 7.387 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006498/0.8304, allocations: 2.338 MB / 1.149 GB, free: 5.039 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.8339, allocations: 1.429 MB / 1.15 GB, free: 3.629 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004045/0.838, allocations: 2.97 MB / 1.153 GB, free: 0.6484 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.8395, allocations: 0.8879 MB / 1.154 GB, free: 15.75 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002487/0.842, allocations: 1.132 MB / 1.155 GB, free: 14.62 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.8434, allocations: 0.793 MB / 1.156 GB, free: 13.83 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003262/0.8438, allocations: 103.9 kB / 1.156 GB, free: 13.73 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004091/0.8479, allocations: 2.054 MB / 1.158 GB, free: 11.67 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004671/0.8483, allocations: 362.9 kB / 1.158 GB, free: 11.31 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0009328/0.8493, allocations: 0.5908 MB / 1.159 GB, free: 10.72 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004069/0.8534, allocations: 2.361 MB / 1.161 GB, free: 8.352 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.8534, allocations: 4 kB / 1.161 GB, free: 8.348 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8534, allocations: 0 / 1.161 GB, free: 8.348 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.595e-05/0.8535, allocations: 0 / 1.161 GB, free: 8.348 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003892/0.8574, allocations: 1.634 MB / 1.163 GB, free: 6.652 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.8574, allocations: 12.03 kB / 1.163 GB, free: 6.641 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.8576, allocations: 110.5 kB / 1.163 GB, free: 6.523 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002993/0.8606, allocations: 0.5332 MB / 1.164 GB, free: 5.988 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.8626, allocations: 0.9713 MB / 1.165 GB, free: 4.977 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001209/0.8639, allocations: 285 kB / 1.165 GB, free: 4.699 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.864, allocations: 71.88 kB / 1.165 GB, free: 4.629 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.8665, allocations: 1.128 MB / 1.166 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.8665, allocations: 3.938 kB / 1.166 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.641e-05/0.8666, allocations: 28 kB / 1.166 GB, free: 3.441 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.49e-05/0.8667, allocations: 37.3 kB / 1.166 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003179/0.8699, allocations: 1.192 MB / 1.167 GB, free: 2.207 MB / 0.92 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.005479/0.8754, allocations: 3.221 MB / 1.17 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.877, allocations: 0.6911 MB / 1.171 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007677/0.8778, allocations: 418.2 kB / 1.171 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008232/0.8786, allocations: 1.021 MB / 1.172 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.8796, allocations: 0.5182 MB / 1.173 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 2.083e-06/0.8797, allocations: 0 / 1.173 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.002882/0.8825, allocations: 1.224 MB / 1.174 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.8826, allocations: 144.9 kB / 1.174 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.8845, allocations: 1.196 MB / 1.175 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.585e-05/0.8846, allocations: 37.7 kB / 1.175 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.8849, allocations: 445.4 kB / 1.176 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.885, allocations: 193.2 kB / 1.176 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.8853, allocations: 146.1 kB / 1.176 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.764e-05/0.8854, allocations: 330 kB / 1.176 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.8867, allocations: 456.9 kB / 1.177 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.8882, allocations: 0.6133 MB / 1.178 GB, free: 7.145 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002174/0.8904, allocations: 0.9418 MB / 1.178 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.8904, allocations: 4 kB / 1.178 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003278/0.8937, allocations: 1.237 MB / 1.18 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.8938, allocations: 33.7 kB / 1.18 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.8938, allocations: 4 kB / 1.18 GB, free: 4.848 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.8938, allocations: 7.938 kB / 1.18 GB, free: 4.84 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.8948, allocations: 204 kB / 1.18 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.8949, allocations: 4 kB / 1.18 GB, free: 4.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.8965, allocations: 274.9 kB / 1.18 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.889e-05/0.8966, allocations: 31.98 kB / 1.18 GB, free: 4.336 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0004482/0.897, allocations: 331.3 kB / 1.181 GB, free: 3.996 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.8972, allocations: 114.6 kB / 1.181 GB, free: 3.883 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002147/0.8994, allocations: 0.9959 MB / 1.182 GB, free: 2.875 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.8994, allocations: 15.88 kB / 1.182 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.8994, allocations: 4 kB / 1.182 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.8994, allocations: 7.984 kB / 1.182 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004549/0.904, allocations: 3.157 MB / 1.185 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.904, allocations: 8 kB / 1.185 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005965/0.9046, allocations: 128.1 kB / 1.185 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.9046, allocations: 8 kB / 1.185 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.145e-05/0.9047, allocations: 27.98 kB / 1.185 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.9047, allocations: 15.92 kB / 1.185 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.9047, allocations: 11.94 kB / 1.185 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.9069, allocations: 1.334 MB / 1.186 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004834/0.9074, allocations: 331.4 kB / 1.187 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.9076, allocations: 20 kB / 1.187 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.9088, allocations: 111.9 kB / 1.187 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.816e-05/0.9089, allocations: 55.77 kB / 1.187 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.453e-05/0.9089, allocations: 43.97 kB / 1.187 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001488/0.9104, allocations: 0.8716 MB / 1.188 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9104, allocations: 0 / 1.188 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009919/0.9114, allocations: 303.8 kB / 1.188 GB, free: 12.14 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002808/0.9143, allocations: 2.124 MB / 1.19 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002531/0.9168, allocations: 1.046 MB / 1.191 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.9168, allocations: 0 / 1.191 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0009028/0.9177, allocations: 0.5203 MB / 1.191 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.9204, allocations: 0.555 MB / 1.192 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.9378, allocations: 9.994 MB / 1.202 GB, free: 13.24 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006965/0.9386, allocations: 1.069 MB / 1.203 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001283/0.9399, allocations: 281.5 kB / 1.203 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005965/0.9405, allocations: 359.3 kB / 1.203 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of SimCode: time 9.01e-07/0.9405, allocations: 0 / 1.203 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06083/1.001, allocations: 31.54 MB / 1.234 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/9.302, allocations: 15.55 kB / 1.234 GB, free: 12.32 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches