Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_10_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.001186/0.001186, 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.00126/0.00126, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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.608/2.608, allocations: 437.1 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 67.89 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6044/0.6057, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2009/0.8067, allocations: 194 MB / 1.207 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01064/0.8174, allocations: 6.936 MB / 1.214 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.8189, allocations: 43.75 kB / 1.214 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001966/0.8209, allocations: 0.6869 MB / 1.214 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005893/0.8268, allocations: 2.338 MB / 1.217 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003337/0.8302, allocations: 1.41 MB / 1.218 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003973/0.8342, allocations: 2.982 MB / 1.221 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.8359, allocations: 0.8918 MB / 1.222 GB, free: 412 kB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.8387, allocations: 1.121 MB / 1.223 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.8403, allocations: 0.8079 MB / 1.224 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003107/0.8406, allocations: 100 kB / 1.224 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005361/0.846, allocations: 2.05 MB / 1.226 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0007381/0.8468, allocations: 366.8 kB / 1.226 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.8483, allocations: 0.583 MB / 1.227 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.005237/0.8535, allocations: 2.369 MB / 1.229 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.8536, allocations: 0 / 1.229 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.913e-06/0.8536, allocations: 0 / 1.229 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.032e-05/0.8537, allocations: 4 kB / 1.229 GB, free: 9 MB / 0.9825 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.004305/0.858, allocations: 1.632 MB / 1.231 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.858, allocations: 8.031 kB / 1.231 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002279/0.8583, allocations: 114.5 kB / 1.231 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003159/0.8614, allocations: 0.5254 MB / 1.231 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002237/0.8637, allocations: 0.9969 MB / 1.232 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/0.865, allocations: 277 kB / 1.232 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.8651, allocations: 68 kB / 1.233 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.8678, allocations: 1.124 MB / 1.234 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.8678, allocations: 0 / 1.234 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.986e-05/0.8679, allocations: 31.98 kB / 1.234 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-05/0.868, allocations: 41.28 kB / 1.234 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003463/0.8714, allocations: 1.192 MB / 1.235 GB, free: 2.859 MB / 0.9825 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.006071/0.8775, allocations: 3.221 MB / 1.238 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.8792, allocations: 0.6841 MB / 1.239 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008134/0.8801, allocations: 429.8 kB / 1.239 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008501/0.8809, allocations: 1.021 MB / 1.24 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.882, allocations: 0.5143 MB / 1.241 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 3.226e-06/0.882, allocations: 0 / 1.241 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.003105/0.8851, allocations: 1.225 MB / 1.242 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.8852, allocations: 140.8 kB / 1.242 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.8873, allocations: 1.2 MB / 1.243 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.547e-05/0.8874, allocations: 37.7 kB / 1.243 GB, free: 9.996 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003631/0.8878, allocations: 437.4 kB / 1.244 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.888, allocations: 189.2 kB / 1.244 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000294/0.8883, allocations: 150.1 kB / 1.244 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.8884, allocations: 326 kB / 1.244 GB, free: 8.902 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.8898, allocations: 464.9 kB / 1.245 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.8914, allocations: 0.6055 MB / 1.245 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/0.8936, allocations: 0.9457 MB / 1.246 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.8936, allocations: 0 / 1.246 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00342/0.8971, allocations: 1.237 MB / 1.247 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.357e-05/0.8971, allocations: 37.98 kB / 1.247 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.8972, allocations: 11.98 kB / 1.247 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.648e-05/0.8972, allocations: 7.938 kB / 1.247 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009999/0.8982, allocations: 207.6 kB / 1.248 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.8982, allocations: 4 kB / 1.248 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.8999, allocations: 272.6 kB / 1.248 GB, free: 5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.716e-05/0.9, allocations: 31.98 kB / 1.248 GB, free: 4.969 MB / 0.9981 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.0005421/0.9006, allocations: 335.3 kB / 1.248 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.9009, allocations: 122.5 kB / 1.248 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.9032, allocations: 0.9928 MB / 1.249 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.9032, allocations: 11.94 kB / 1.249 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.9032, allocations: 0 / 1.249 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.9032, allocations: 7.984 kB / 1.249 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005316/0.9086, allocations: 3.158 MB / 1.252 GB, free: 176 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/0.9086, allocations: 12.03 kB / 1.252 GB, free: 164 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006109/0.9092, allocations: 115.8 kB / 1.253 GB, free: 48 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.497e-05/0.9092, allocations: 8 kB / 1.253 GB, free: 40 kB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.148e-05/0.9093, allocations: 31.98 kB / 1.253 GB, free: 8 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4887/1.398, allocations: 14.84 kB / 1.253 GB, free: 233.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.364e-05/1.398, allocations: 12.25 kB / 1.253 GB, free: 233.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002814/1.401, allocations: 1.34 MB / 1.254 GB, free: 232.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005839/1.402, allocations: 328.6 kB / 1.254 GB, free: 232.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/1.402, allocations: 22.19 kB / 1.254 GB, free: 232.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/1.403, allocations: 110.3 kB / 1.254 GB, free: 232.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/1.403, allocations: 62.81 kB / 1.254 GB, free: 232.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.745e-05/1.403, allocations: 41.3 kB / 1.254 GB, free: 232.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001796/1.405, allocations: 0.8722 MB / 1.255 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.81e-07/1.405, allocations: 0 / 1.255 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001163/1.406, allocations: 297.6 kB / 1.256 GB, free: 232.4 MB / 0.9981 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.003171/1.409, allocations: 2.124 MB / 1.258 GB, free: 231.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00282/1.412, allocations: 1.048 MB / 1.259 GB, free: 230.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.412, allocations: 1.281 kB / 1.259 GB, free: 230.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00117/1.413, allocations: 0.5114 MB / 1.259 GB, free: 230.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003321/1.417, allocations: 0.5592 MB / 1.26 GB, free: 230.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/1.436, allocations: 9.989 MB / 1.269 GB, free: 225 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006063/1.437, allocations: 1.071 MB / 1.271 GB, free: 224.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001373/1.438, allocations: 276.9 kB / 1.271 GB, free: 224.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/1.439, allocations: 357.2 kB / 1.271 GB, free: 224 MB / 0.9981 GB Notification: Performance of SimCode: time 1.182e-06/1.439, allocations: 0 / 1.271 GB, free: 224 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05496/1.494, allocations: 31.57 MB / 1.302 GB, free: 202.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/9.7, allocations: 12.7 kB / 1.302 GB, free: 202 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches