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.005677/0.005677, allocations: 98.48 kB / 15.73 MB, free: 6.004 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.001265/0.001265, allocations: 193.2 kB / 16.67 MB, free: 5.934 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.34 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 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 67.89 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3209, allocations: 151.6 MB / 1.166 GB, free: 7.293 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9349/1.256, allocations: 194 MB / 1.356 GB, free: 124 kB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01746/1.273, allocations: 6.929 MB / 1.362 GB, free: 11.2 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002447/1.276, allocations: 50.44 kB / 1.362 GB, free: 11.17 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.003304/1.279, allocations: 0.7044 MB / 1.363 GB, free: 10.71 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01175/1.291, allocations: 2.445 MB / 1.366 GB, free: 9.391 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.006812/1.298, allocations: 1.43 MB / 1.367 GB, free: 8.645 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.007656/1.306, allocations: 3.001 MB / 1.37 GB, free: 7.246 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002912/1.309, allocations: 0.8947 MB / 1.371 GB, free: 6.855 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005487/1.314, allocations: 1.149 MB / 1.372 GB, free: 6.34 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002909/1.317, allocations: 0.7949 MB / 1.373 GB, free: 5.906 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.000595/1.318, allocations: 98.56 kB / 1.373 GB, free: 5.906 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008161/1.326, allocations: 2.074 MB / 1.375 GB, free: 4.734 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001146/1.327, allocations: 363.4 kB / 1.375 GB, free: 4.48 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.002213/1.329, allocations: 0.5943 MB / 1.376 GB, free: 4.07 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.008624/1.338, allocations: 2.391 MB / 1.378 GB, free: 2.52 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/1.338, allocations: 1.375 kB / 1.378 GB, free: 2.52 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.825e-06/1.338, allocations: 0 / 1.378 GB, free: 2.52 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.117e-05/1.338, allocations: 0 / 1.378 GB, free: 2.52 MB / 1.045 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.007451/1.346, allocations: 1.681 MB / 1.38 GB, free: 1.211 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.975e-05/1.346, allocations: 7.219 kB / 1.38 GB, free: 1.211 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004375/1.346, allocations: 114.2 kB / 1.38 GB, free: 1.113 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004828/1.351, allocations: 0.5416 MB / 1.38 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003769/1.355, allocations: 1.056 MB / 1.381 GB, free: 44 kB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/1.355, allocations: 49.38 kB / 1.381 GB, free: 24 kB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/1.355, allocations: 75.97 kB / 1.381 GB, free: 15.99 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003221/1.358, allocations: 1.1 MB / 1.383 GB, free: 15.34 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/1.359, allocations: 7.875 kB / 1.383 GB, free: 15.34 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/1.359, allocations: 28.22 kB / 1.383 GB, free: 15.32 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.471e-05/1.359, allocations: 30.66 kB / 1.383 GB, free: 15.31 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003268/1.362, allocations: 1.167 MB / 1.384 GB, free: 14.75 MB / 1.061 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.007099/1.369, allocations: 3.154 MB / 1.387 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/1.371, allocations: 0.6868 MB / 1.387 GB, free: 12 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008174/1.372, allocations: 433.2 kB / 1.388 GB, free: 11.79 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001046/1.373, allocations: 1.021 MB / 1.389 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/1.374, allocations: 0.5161 MB / 1.389 GB, free: 10.28 MB / 1.061 GB Notification: Performance of pre-optimization done (n=57): time 5.841e-06/1.374, allocations: 0 / 1.389 GB, free: 10.28 MB / 1.061 GB Notification: Performance of matching and sorting (n=57): time 0.003052/1.377, allocations: 1.225 MB / 1.391 GB, free: 9.66 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/1.377, allocations: 148.6 kB / 1.391 GB, free: 9.492 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00212/1.379, allocations: 1.178 MB / 1.392 GB, free: 8.852 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001081/1.379, allocations: 39.17 kB / 1.392 GB, free: 8.812 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000408/1.38, allocations: 442 kB / 1.392 GB, free: 8.426 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/1.38, allocations: 200 kB / 1.393 GB, free: 8.254 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/1.38, allocations: 151.7 kB / 1.393 GB, free: 8.164 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001271/1.381, allocations: 326.5 kB / 1.393 GB, free: 7.844 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/1.382, allocations: 444 kB / 1.393 GB, free: 7.637 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/1.383, allocations: 0.5902 MB / 1.394 GB, free: 7.273 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/1.385, allocations: 0.9299 MB / 1.395 GB, free: 6.695 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/1.385, allocations: 2.406 kB / 1.395 GB, free: 6.695 MB / 1.061 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00308/1.388, allocations: 1.197 MB / 1.396 GB, free: 6.09 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/1.388, allocations: 43.97 kB / 1.396 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/1.388, allocations: 2.656 kB / 1.396 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/1.388, allocations: 5.25 kB / 1.396 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008718/1.389, allocations: 190.6 kB / 1.396 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/1.389, allocations: 11.91 kB / 1.396 GB, free: 5.988 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/1.391, allocations: 245 kB / 1.397 GB, free: 5.863 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/1.391, allocations: 36.83 kB / 1.397 GB, free: 5.852 MB / 1.061 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.0005454/1.391, allocations: 327.9 kB / 1.397 GB, free: 5.594 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003236/1.392, allocations: 121.1 kB / 1.397 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002204/1.394, allocations: 0.9965 MB / 1.398 GB, free: 4.977 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/1.394, allocations: 7.344 kB / 1.398 GB, free: 4.977 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.394, allocations: 7.938 kB / 1.398 GB, free: 4.969 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/1.394, allocations: 6.734 kB / 1.398 GB, free: 4.965 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005079/1.399, allocations: 3.162 MB / 1.401 GB, free: 2.719 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.085e-05/1.399, allocations: 10.88 kB / 1.401 GB, free: 2.715 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005658/1.4, allocations: 126.3 kB / 1.401 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/1.4, allocations: 9.375 kB / 1.401 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.965e-05/1.4, allocations: 23.47 kB / 1.401 GB, free: 2.668 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.569e-05/1.4, allocations: 18.3 kB / 1.401 GB, free: 2.66 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/1.4, allocations: 10.62 kB / 1.401 GB, free: 2.656 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/1.402, allocations: 1.35 MB / 1.403 GB, free: 1.684 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006344/1.403, allocations: 339.8 kB / 1.403 GB, free: 1.398 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002367/1.403, allocations: 20.69 kB / 1.403 GB, free: 1.391 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/1.404, allocations: 106.7 kB / 1.403 GB, free: 1.348 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/1.404, allocations: 57.98 kB / 1.403 GB, free: 1.312 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-05/1.404, allocations: 40.34 kB / 1.403 GB, free: 1.301 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.00157/1.406, allocations: 0.8477 MB / 1.404 GB, free: 0.6328 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.8e-07/1.406, allocations: 4 kB / 1.404 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001254/1.407, allocations: 299.6 kB / 1.404 GB, free: 344 kB / 1.061 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.003335/1.411, allocations: 2.126 MB / 1.406 GB, free: 14.1 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.002508/1.413, allocations: 1.029 MB / 1.407 GB, free: 13.06 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/1.413, allocations: 0 / 1.407 GB, free: 13.06 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0009585/1.414, allocations: 0.5124 MB / 1.408 GB, free: 12.54 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/1.417, allocations: 0.5535 MB / 1.408 GB, free: 11.99 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/1.435, allocations: 9.408 MB / 1.418 GB, free: 2.184 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008438/1.436, allocations: 1.069 MB / 1.419 GB, free: 1.082 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001211/1.438, allocations: 271.9 kB / 1.419 GB, free: 0.8164 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006951/1.438, allocations: 359.3 kB / 1.419 GB, free: 476 kB / 1.076 GB Notification: Performance of SimCode: time 2.014e-06/1.438, allocations: 0 / 1.419 GB, free: 476 kB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06604/1.504, allocations: 31.77 MB / 1.45 GB, free: 1.07 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.98/11.48, allocations: 25.5 kB / 1.45 GB, free: 1.047 MB / 1.107 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