Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_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.007452/0.007452, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.002006/0.002006, allocations: 202.9 kB / 16.68 MB, free: 5.973 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.447/1.447, 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 12.0.0-master/package.mo): time 2.871/2.871, allocations: 482.4 MB / 0.7548 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 63.91 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2992, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.7438/1.043, allocations: 194.1 MB / 1.431 GB, free: 3.039 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.01169/1.055, allocations: 6.955 MB / 1.438 GB, free: 13.37 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/1.056, allocations: 43.5 kB / 1.438 GB, free: 13.35 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.00187/1.058, allocations: 0.687 MB / 1.438 GB, free: 12.76 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.00572/1.064, allocations: 2.332 MB / 1.441 GB, free: 10.98 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.003362/1.067, allocations: 1.42 MB / 1.442 GB, free: 9.918 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.004148/1.071, allocations: 3.001 MB / 1.445 GB, free: 7.266 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/1.073, allocations: 0.8891 MB / 1.446 GB, free: 6.375 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003683/1.077, allocations: 1.543 MB / 1.447 GB, free: 4.832 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001462/1.078, allocations: 0.778 MB / 1.448 GB, free: 4.059 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0001868/1.078, allocations: 100 kB / 1.448 GB, free: 3.961 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/1.082, allocations: 2.039 MB / 1.45 GB, free: 1.918 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0004005/1.082, allocations: 362.9 kB / 1.451 GB, free: 1.562 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0006982/1.083, allocations: 0.5947 MB / 1.451 GB, free: 0.9648 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003513/1.087, allocations: 2.396 MB / 1.454 GB, free: 14.56 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/1.087, allocations: 4 kB / 1.454 GB, free: 14.56 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.503e-06/1.087, allocations: 0 / 1.454 GB, free: 14.56 MB / 1.154 GB Notification: Performance of Transformations before backend: time 1.303e-05/1.087, allocations: 0 / 1.454 GB, free: 14.56 MB / 1.154 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.003415/1.09, allocations: 1.673 MB / 1.455 GB, free: 12.82 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/1.09, allocations: 8.031 kB / 1.455 GB, free: 12.82 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001569/1.09, allocations: 114.4 kB / 1.455 GB, free: 12.7 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003022/1.093, allocations: 0.5416 MB / 1.456 GB, free: 12.15 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002289/1.096, allocations: 1.042 MB / 1.457 GB, free: 11.06 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/1.096, allocations: 53.31 kB / 1.457 GB, free: 11.01 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/1.096, allocations: 68 kB / 1.457 GB, free: 10.95 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/1.098, allocations: 1.105 MB / 1.458 GB, free: 9.816 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/1.098, allocations: 7.938 kB / 1.458 GB, free: 9.809 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.466e-05/1.099, allocations: 32 kB / 1.458 GB, free: 9.777 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.171e-05/1.099, allocations: 41.23 kB / 1.458 GB, free: 9.738 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003363/1.102, allocations: 1.157 MB / 1.459 GB, free: 8.578 MB / 1.154 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.005991/1.108, allocations: 3.171 MB / 1.462 GB, free: 5.328 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/1.11, allocations: 0.688 MB / 1.463 GB, free: 4.629 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009055/1.111, allocations: 426.1 kB / 1.463 GB, free: 4.211 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001062/1.112, allocations: 1.021 MB / 1.464 GB, free: 2.969 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001103/1.113, allocations: 0.5104 MB / 1.465 GB, free: 2.43 MB / 1.154 GB Notification: Performance of pre-optimization done (n=57): time 2.345e-06/1.113, allocations: 0 / 1.465 GB, free: 2.43 MB / 1.154 GB Notification: Performance of matching and sorting (n=57): time 0.003203/1.116, allocations: 1.237 MB / 1.466 GB, free: 1.184 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/1.116, allocations: 144.8 kB / 1.466 GB, free: 1.012 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/1.118, allocations: 1.18 MB / 1.467 GB, free: 15.82 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 7.212e-05/1.118, allocations: 37.7 kB / 1.467 GB, free: 15.77 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004376/1.119, allocations: 445.7 kB / 1.468 GB, free: 15.33 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/1.119, allocations: 198.3 kB / 1.468 GB, free: 15.14 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002987/1.119, allocations: 142.2 kB / 1.468 GB, free: 14.99 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001607/1.12, allocations: 326 kB / 1.469 GB, free: 14.67 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/1.121, allocations: 444.9 kB / 1.469 GB, free: 14.23 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/1.122, allocations: 0.6005 MB / 1.47 GB, free: 13.58 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/1.125, allocations: 0.9262 MB / 1.47 GB, free: 12.61 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.125, allocations: 0 / 1.47 GB, free: 12.61 MB / 1.17 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003261/1.128, allocations: 1.202 MB / 1.472 GB, free: 11.39 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 4.914e-05/1.128, allocations: 44 kB / 1.472 GB, free: 11.34 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/1.128, allocations: 8 kB / 1.472 GB, free: 11.33 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/1.128, allocations: 8 kB / 1.472 GB, free: 11.32 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009603/1.129, allocations: 187.7 kB / 1.472 GB, free: 11.14 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/1.129, allocations: 9.031 kB / 1.472 GB, free: 11.13 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/1.131, allocations: 243.1 kB / 1.472 GB, free: 10.89 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/1.131, allocations: 35.97 kB / 1.472 GB, free: 10.86 MB / 1.17 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.0004859/1.131, allocations: 327.4 kB / 1.472 GB, free: 10.52 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/1.131, allocations: 127.7 kB / 1.473 GB, free: 10.4 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/1.134, allocations: 0.9921 MB / 1.474 GB, free: 9.402 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/1.134, allocations: 7.984 kB / 1.474 GB, free: 9.395 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/1.134, allocations: 7.984 kB / 1.474 GB, free: 9.387 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/1.134, allocations: 3.984 kB / 1.474 GB, free: 9.383 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005197/1.139, allocations: 3.16 MB / 1.477 GB, free: 6.07 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.139, allocations: 12.66 kB / 1.477 GB, free: 6.059 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006146/1.14, allocations: 123.7 kB / 1.477 GB, free: 5.938 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-05/1.14, allocations: 8 kB / 1.477 GB, free: 5.93 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.299e-05/1.14, allocations: 27.98 kB / 1.477 GB, free: 5.902 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-05/1.14, allocations: 11.94 kB / 1.477 GB, free: 5.891 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/1.14, allocations: 11.94 kB / 1.477 GB, free: 5.879 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/1.142, allocations: 1.353 MB / 1.478 GB, free: 4.402 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004983/1.143, allocations: 336 kB / 1.478 GB, free: 4.055 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/1.143, allocations: 27.98 kB / 1.478 GB, free: 4.027 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/1.144, allocations: 99.91 kB / 1.479 GB, free: 3.93 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/1.144, allocations: 59.77 kB / 1.479 GB, free: 3.871 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-05/1.144, allocations: 43.91 kB / 1.479 GB, free: 3.828 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001565/1.146, allocations: 0.852 MB / 1.48 GB, free: 2.969 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.8e-07/1.146, allocations: 0 / 1.48 GB, free: 2.969 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001008/1.147, allocations: 295.7 kB / 1.48 GB, free: 2.68 MB / 1.17 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.003321/1.15, allocations: 2.127 MB / 1.482 GB, free: 448 kB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.002549/1.153, allocations: 1.013 MB / 1.483 GB, free: 15.41 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.153, allocations: 4 kB / 1.483 GB, free: 15.41 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001041/1.154, allocations: 0.5164 MB / 1.483 GB, free: 14.88 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/1.156, allocations: 0.5492 MB / 1.484 GB, free: 14.34 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01727/1.174, allocations: 9.415 MB / 1.493 GB, free: 4.527 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008126/1.174, allocations: 1.069 MB / 1.494 GB, free: 3.422 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0009346/1.175, allocations: 272.3 kB / 1.494 GB, free: 3.156 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005785/1.176, allocations: 363.3 kB / 1.495 GB, free: 2.801 MB / 1.186 GB Notification: Performance of SimCode: time 6.72e-07/1.176, allocations: 0 / 1.495 GB, free: 2.801 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06401/1.24, allocations: 31.78 MB / 1.526 GB, free: 3.395 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.729/10.97, allocations: 12.11 kB / 1.526 GB, free: 3.387 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches