Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.001684/0.001684, allocations: 108 kB / 15.61 MB, free: 152 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.001961/0.001961, allocations: 194.1 kB / 16.53 MB, free: 6.699 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.313/2.313, allocations: 390.3 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 67.89 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5119/0.5133, allocations: 140.4 MB / 0.9497 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.0031/0.5164, allocations: 2.449 MB / 0.9521 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001788/0.5182, allocations: 1.574 MB / 0.9537 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.5183, allocations: 2.844 kB / 0.9537 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007634/0.5191, allocations: 335 kB / 0.954 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003492/0.5195, allocations: 212.6 kB / 0.9542 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.52, allocations: 266.1 kB / 0.9544 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.5203, allocations: 388.3 kB / 0.9548 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.5205, allocations: 68.48 kB / 0.9549 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.5206, allocations: 161.8 kB / 0.955 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.5208, allocations: 162.9 kB / 0.9552 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.746e-05/0.5208, allocations: 21.97 kB / 0.9552 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.521, allocations: 76.73 kB / 0.9553 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.5211, allocations: 128.5 kB / 0.9554 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.5213, allocations: 191.2 kB / 0.9556 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003907/0.5217, allocations: 0.493 MB / 0.9561 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.5217, allocations: 0 / 0.9561 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5217, allocations: 0 / 0.9561 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.5217, allocations: 0 / 0.9561 GB, free: 4.41 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008883/0.5226, allocations: 0.8281 MB / 0.9569 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.5226, allocations: 10.5 kB / 0.9569 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.177e-05/0.5227, allocations: 41.89 kB / 0.9569 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.932e-05/0.5227, allocations: 58.59 kB / 0.957 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.5231, allocations: 439.2 kB / 0.9574 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.5232, allocations: 9.5 kB / 0.9574 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.5232, allocations: 6.875 kB / 0.9574 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.5234, allocations: 142.4 kB / 0.9575 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.5235, allocations: 1.375 kB / 0.9575 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.5235, allocations: 5.375 kB / 0.9575 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.5235, allocations: 5.312 kB / 0.9576 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.5236, allocations: 71.64 kB / 0.9576 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006651/0.5243, allocations: 0.5805 MB / 0.9582 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.5246, allocations: 115.1 kB / 0.9583 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.5247, allocations: 54.67 kB / 0.9584 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.5248, allocations: 2.156 kB / 0.9584 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.525, allocations: 121.5 kB / 0.9585 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.525, allocations: 0 / 0.9585 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004721/0.5255, allocations: 227.8 kB / 0.9587 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.5255, allocations: 82.61 kB / 0.9588 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006852/0.5262, allocations: 0.6853 MB / 0.9594 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.5262, allocations: 36.98 kB / 0.9595 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.5264, allocations: 267.6 kB / 0.9597 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.5264, allocations: 37.23 kB / 0.9598 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.961e-05/0.5265, allocations: 55.84 kB / 0.9598 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.477e-05/0.5266, allocations: 371.9 kB / 0.9602 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.5267, allocations: 74.83 kB / 0.9602 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.5269, allocations: 124.3 kB / 0.9604 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.5271, allocations: 135.3 kB / 0.9605 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5271, allocations: 3.938 kB / 0.9605 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003973/0.5275, allocations: 263.4 kB / 0.9607 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.5276, allocations: 7.312 kB / 0.9607 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.5276, allocations: 5.531 kB / 0.9608 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.5276, allocations: 1.281 kB / 0.9608 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.5278, allocations: 34.73 kB / 0.9608 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.5278, allocations: 1.25 kB / 0.9608 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.5279, allocations: 30.08 kB / 0.9608 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.528, allocations: 5.938 kB / 0.9608 GB, free: 0.6875 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001736/0.5281, allocations: 210.7 kB / 0.961 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.5282, allocations: 68.86 kB / 0.9611 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.732e-05/0.5283, allocations: 61.53 kB / 0.9611 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5283, allocations: 1.125 kB / 0.9612 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5283, allocations: 1.344 kB / 0.9612 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.5283, allocations: 3.938 kB / 0.9612 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.5286, allocations: 369.5 kB / 0.9615 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5286, allocations: 1.219 kB / 0.9615 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.818e-05/0.5286, allocations: 10.41 kB / 0.9615 GB, free: 104 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.5287, allocations: 1.375 kB / 0.9615 GB, free: 104 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.5287, allocations: 9.359 kB / 0.9615 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5287, allocations: 4 kB / 0.9615 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.5287, allocations: 1.406 kB / 0.9615 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.529, allocations: 221.9 kB / 0.9617 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.763e-05/0.5292, allocations: 130.2 kB / 0.9619 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.286e-05/0.5292, allocations: 3.5 kB / 0.9619 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.5293, allocations: 11.7 kB / 0.9619 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.5294, allocations: 25.59 kB / 0.9619 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.5294, allocations: 10.28 kB / 0.9619 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004846/0.5299, allocations: 466 kB / 0.9624 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5299, allocations: 0 / 0.9624 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003009/0.5302, allocations: 60.66 kB / 0.9624 GB, free: 15.52 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001519/0.5317, allocations: 1.088 MB / 0.9635 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003578/0.5321, allocations: 158.5 kB / 0.9636 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5321, allocations: 1.094 kB / 0.9636 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.5323, allocations: 55.88 kB / 0.9637 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.5328, allocations: 87.2 kB / 0.9638 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.5373, allocations: 4.009 MB / 0.9677 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.5377, allocations: 0.8713 MB / 0.9685 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001483/0.5379, allocations: 41.95 kB / 0.9686 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.5381, allocations: 174.8 kB / 0.9687 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.5381, allocations: 0 / 0.9687 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.564, allocations: 9.669 MB / 0.9782 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.879, allocations: 8.656 kB / 0.9782 GB, free: 4.457 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches