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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.009891/0.009891, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.002309/0.002309, allocations: 195.1 kB / 16.67 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.669/2.669, allocations: 469.4 MB / 0.7422 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 59.91 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8494/0.8509, allocations: 159.1 MB / 1.22 GB, free: 2.297 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2083/1.059, allocations: 194 MB / 1.409 GB, free: 15.55 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.01172/1.071, allocations: 6.938 MB / 1.416 GB, free: 8.602 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/1.073, allocations: 43.69 kB / 1.416 GB, free: 8.559 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.002276/1.075, allocations: 0.7064 MB / 1.417 GB, free: 7.848 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.00674/1.082, allocations: 2.439 MB / 1.419 GB, free: 5.398 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.004043/1.086, allocations: 1.433 MB / 1.42 GB, free: 3.984 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.004679/1.091, allocations: 3 MB / 1.423 GB, free: 0.9766 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/1.093, allocations: 0.8918 MB / 1.424 GB, free: 72 kB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/1.096, allocations: 1.15 MB / 1.425 GB, free: 14.92 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/1.098, allocations: 0.8015 MB / 1.426 GB, free: 14.12 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 0.0003817/1.098, allocations: 100 kB / 1.426 GB, free: 14.02 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004344/1.103, allocations: 2.066 MB / 1.428 GB, free: 11.95 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.0006507/1.103, allocations: 366.8 kB / 1.429 GB, free: 11.59 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.001147/1.104, allocations: 0.5831 MB / 1.429 GB, free: 11.01 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.004985/1.109, allocations: 2.407 MB / 1.432 GB, free: 8.594 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/1.109, allocations: 0 / 1.432 GB, free: 8.594 MB / 1.154 GB Notification: Performance of FrontEnd: time 2.535e-06/1.109, allocations: 0 / 1.432 GB, free: 8.594 MB / 1.154 GB Notification: Performance of Transformations before backend: time 5.979e-05/1.11, allocations: 0 / 1.432 GB, free: 8.594 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.004495/1.114, allocations: 1.673 MB / 1.433 GB, free: 6.859 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 8.116e-05/1.114, allocations: 12.62 kB / 1.433 GB, free: 6.848 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003973/1.115, allocations: 110.5 kB / 1.433 GB, free: 6.73 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003318/1.118, allocations: 0.5416 MB / 1.434 GB, free: 6.188 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/1.121, allocations: 1.048 MB / 1.435 GB, free: 5.094 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.65e-05/1.121, allocations: 53.31 kB / 1.435 GB, free: 5.043 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/1.121, allocations: 68 kB / 1.435 GB, free: 4.977 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002897/1.124, allocations: 1.109 MB / 1.436 GB, free: 3.844 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/1.124, allocations: 4 kB / 1.436 GB, free: 3.84 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/1.124, allocations: 24 kB / 1.436 GB, free: 3.816 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.125e-05/1.124, allocations: 33.31 kB / 1.436 GB, free: 3.785 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003363/1.128, allocations: 1.168 MB / 1.437 GB, free: 2.613 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.006977/1.135, allocations: 3.179 MB / 1.44 GB, free: 15.36 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/1.137, allocations: 0.6879 MB / 1.441 GB, free: 14.66 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008535/1.137, allocations: 418.2 kB / 1.441 GB, free: 14.25 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008816/1.138, allocations: 1.029 MB / 1.442 GB, free: 13 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/1.14, allocations: 0.5143 MB / 1.443 GB, free: 12.46 MB / 1.17 GB Notification: Performance of pre-optimization done (n=57): time 6.272e-06/1.14, allocations: 3.984 kB / 1.443 GB, free: 12.45 MB / 1.17 GB Notification: Performance of matching and sorting (n=57): time 0.003358/1.143, allocations: 1.225 MB / 1.444 GB, free: 11.22 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.093e-05/1.143, allocations: 144.8 kB / 1.444 GB, free: 11.05 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002237/1.145, allocations: 1.176 MB / 1.445 GB, free: 9.859 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0001625/1.145, allocations: 37.7 kB / 1.445 GB, free: 9.816 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.000408/1.146, allocations: 449.8 kB / 1.446 GB, free: 9.371 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/1.146, allocations: 194.3 kB / 1.446 GB, free: 9.18 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/1.146, allocations: 146.1 kB / 1.446 GB, free: 9.031 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001081/1.147, allocations: 334 kB / 1.447 GB, free: 8.699 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/1.148, allocations: 432.9 kB / 1.447 GB, free: 8.277 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/1.149, allocations: 0.5976 MB / 1.448 GB, free: 7.633 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/1.152, allocations: 0.9262 MB / 1.448 GB, free: 6.652 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/1.152, allocations: 0 / 1.448 GB, free: 6.652 MB / 1.17 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003497/1.155, allocations: 1.202 MB / 1.45 GB, free: 5.43 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 5.938e-05/1.155, allocations: 41.69 kB / 1.45 GB, free: 5.383 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/1.155, allocations: 0 / 1.45 GB, free: 5.383 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.638e-05/1.155, allocations: 8 kB / 1.45 GB, free: 5.375 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/1.156, allocations: 195.9 kB / 1.45 GB, free: 5.184 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/1.156, allocations: 4 kB / 1.45 GB, free: 5.18 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/1.158, allocations: 251.1 kB / 1.45 GB, free: 4.934 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/1.158, allocations: 31.98 kB / 1.45 GB, free: 4.902 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.0006301/1.159, allocations: 327.3 kB / 1.45 GB, free: 4.566 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/1.159, allocations: 119.2 kB / 1.451 GB, free: 4.449 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002411/1.162, allocations: 0.9973 MB / 1.452 GB, free: 3.449 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-05/1.162, allocations: 19.88 kB / 1.452 GB, free: 3.43 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.128e-06/1.162, allocations: 0 / 1.452 GB, free: 3.43 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/1.162, allocations: 3.984 kB / 1.452 GB, free: 3.426 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005736/1.168, allocations: 3.158 MB / 1.455 GB, free: 116 kB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.168, allocations: 8.516 kB / 1.455 GB, free: 108 kB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006791/1.168, allocations: 124 kB / 1.455 GB, free: 15.98 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.554e-05/1.168, allocations: 8 kB / 1.455 GB, free: 15.97 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.899e-05/1.168, allocations: 27.94 kB / 1.455 GB, free: 15.95 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.853e-05/1.168, allocations: 19.92 kB / 1.455 GB, free: 15.93 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/1.168, allocations: 15.88 kB / 1.455 GB, free: 15.91 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/1.171, allocations: 1.346 MB / 1.456 GB, free: 14.45 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007734/1.172, allocations: 344 kB / 1.456 GB, free: 14.09 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003078/1.172, allocations: 16 kB / 1.457 GB, free: 14.07 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/1.173, allocations: 103.9 kB / 1.457 GB, free: 13.97 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/1.174, allocations: 59.7 kB / 1.457 GB, free: 13.91 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/1.174, allocations: 47.97 kB / 1.457 GB, free: 13.87 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.001794/1.176, allocations: 0.8443 MB / 1.458 GB, free: 13.02 MB / 1.186 GB Notification: Performance of sort global known variables: time 4.31e-07/1.176, allocations: 0 / 1.458 GB, free: 13.02 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.001457/1.177, allocations: 299.6 kB / 1.458 GB, free: 12.72 MB / 1.186 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.003612/1.181, allocations: 2.15 MB / 1.46 GB, free: 10.47 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.002747/1.184, allocations: 1.013 MB / 1.461 GB, free: 9.438 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/1.184, allocations: 0 / 1.461 GB, free: 9.438 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001063/1.185, allocations: 0.5147 MB / 1.461 GB, free: 8.914 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/1.188, allocations: 0.5508 MB / 1.462 GB, free: 8.371 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01877/1.207, allocations: 9.404 MB / 1.471 GB, free: 14.56 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000751/1.208, allocations: 1.073 MB / 1.472 GB, free: 13.46 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.00125/1.209, allocations: 275.5 kB / 1.472 GB, free: 13.19 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/1.209, allocations: 359.3 kB / 1.473 GB, free: 12.84 MB / 1.201 GB Notification: Performance of SimCode: time 8.22e-07/1.209, allocations: 0 / 1.473 GB, free: 12.84 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06383/1.273, allocations: 31.78 MB / 1.504 GB, free: 13.43 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/11.69, allocations: 6.5 kB / 1.504 GB, free: 13.43 MB / 1.232 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 50 --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