Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_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.007063/0.00707, allocations: 98.64 kB / 15.73 MB, free: 6.008 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.001572/0.001572, allocations: 193.4 kB / 16.67 MB, free: 5.93 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.424/2.424, allocations: 472.7 MB / 0.7453 GB, free: 440 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.001361, allocations: 55.91 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6946/0.696, allocations: 159.9 MB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003732/0.6998, allocations: 2.454 MB / 1.228 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002274/0.702, allocations: 1.576 MB / 1.229 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.7022, allocations: 7.938 kB / 1.229 GB, free: 9.324 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008319/0.7031, allocations: 327 kB / 1.229 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004051/0.7035, allocations: 210.2 kB / 1.23 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006114/0.7041, allocations: 282.1 kB / 1.23 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003964/0.7045, allocations: 378.8 kB / 1.23 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.7047, allocations: 80.52 kB / 1.23 GB, free: 8.078 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.7049, allocations: 163.3 kB / 1.231 GB, free: 7.918 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.7051, allocations: 159.3 kB / 1.231 GB, free: 7.762 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.879e-05/0.7051, allocations: 20 kB / 1.231 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.7053, allocations: 79.89 kB / 1.231 GB, free: 7.664 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.7055, allocations: 127.5 kB / 1.231 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.7056, allocations: 194.5 kB / 1.231 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005709/0.7062, allocations: 0.5013 MB / 1.232 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.7062, allocations: 0 / 1.232 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7062, allocations: 0 / 1.232 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.7062, allocations: 0 / 1.232 GB, free: 6.852 MB / 0.9512 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.001179/0.7074, allocations: 0.8567 MB / 1.232 GB, free: 5.938 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.7075, allocations: 8.031 kB / 1.232 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.713e-05/0.7075, allocations: 42.73 kB / 1.232 GB, free: 5.879 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.154e-05/0.7076, allocations: 64.56 kB / 1.233 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005307/0.7082, allocations: 441.2 kB / 1.233 GB, free: 5.344 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.7082, allocations: 8 kB / 1.233 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.7082, allocations: 19.98 kB / 1.233 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.7085, allocations: 139.3 kB / 1.233 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.7085, allocations: 0 / 1.233 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.7085, allocations: 4 kB / 1.233 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.7086, allocations: 3.938 kB / 1.233 GB, free: 5.16 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.7087, allocations: 71.91 kB / 1.233 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008176/0.7096, allocations: 0.5706 MB / 1.234 GB, free: 4.469 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.7099, allocations: 130.7 kB / 1.234 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.71, allocations: 44.84 kB / 1.234 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.71, allocations: 0 / 1.234 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.7102, allocations: 119.4 kB / 1.234 GB, free: 4.156 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=13): time 1.753e-06/0.7102, allocations: 4 kB / 1.234 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13): time 0.0004861/0.7107, allocations: 240.2 kB / 1.234 GB, free: 3.914 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.7108, allocations: 77.11 kB / 1.234 GB, free: 3.82 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007216/0.7115, allocations: 0.6915 MB / 1.235 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.7116, allocations: 25.7 kB / 1.235 GB, free: 3.09 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.7118, allocations: 268.4 kB / 1.235 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.7118, allocations: 43.72 kB / 1.235 GB, free: 2.777 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.7e-05/0.7119, allocations: 53.66 kB / 1.235 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.7121, allocations: 370.8 kB / 1.236 GB, free: 2.348 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.7122, allocations: 71.97 kB / 1.236 GB, free: 2.277 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.7124, allocations: 125 kB / 1.236 GB, free: 2.137 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.7126, allocations: 136.9 kB / 1.236 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7126, allocations: 0 / 1.236 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004127/0.7131, allocations: 269.1 kB / 1.236 GB, free: 1.727 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.7131, allocations: 8 kB / 1.236 GB, free: 1.719 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.7131, allocations: 4.062 kB / 1.236 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.7131, allocations: 0 / 1.236 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.7133, allocations: 39.91 kB / 1.236 GB, free: 1.676 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.7133, allocations: 3.984 kB / 1.236 GB, free: 1.672 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.7134, allocations: 27.88 kB / 1.236 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.7135, allocations: 4 kB / 1.236 GB, free: 1.641 MB / 0.9512 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.000206/0.7137, allocations: 216 kB / 1.237 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.7137, allocations: 63.56 kB / 1.237 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.246e-05/0.7138, allocations: 61.05 kB / 1.237 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.7139, allocations: 0 / 1.237 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.7139, allocations: 0 / 1.237 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7139, allocations: 0 / 1.237 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003053/0.7142, allocations: 369.4 kB / 1.237 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7142, allocations: 4 kB / 1.237 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/0.7142, allocations: 11.92 kB / 1.237 GB, free: 0.8633 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.7142, allocations: 3.938 kB / 1.237 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.7143, allocations: 7.938 kB / 1.237 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.7143, allocations: 0 / 1.237 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.7143, allocations: 4 kB / 1.237 GB, free: 0.8477 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003473/0.7146, allocations: 228.6 kB / 1.237 GB, free: 0.6055 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.458e-05/0.7147, allocations: 124.8 kB / 1.237 GB, free: 476 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.7148, allocations: 4 kB / 1.237 GB, free: 472 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.7149, allocations: 11.98 kB / 1.237 GB, free: 460 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.536e-05/0.715, allocations: 15.98 kB / 1.237 GB, free: 444 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.715, allocations: 11.98 kB / 1.237 GB, free: 432 kB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004892/0.7155, allocations: 467 kB / 1.238 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7155, allocations: 0 / 1.238 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003016/0.7158, allocations: 75.81 kB / 1.238 GB, free: 15.9 MB / 0.9669 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.001525/0.7173, allocations: 1.092 MB / 1.239 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003465/0.7177, allocations: 151.1 kB / 1.239 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.7177, allocations: 0 / 1.239 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.7178, allocations: 63.86 kB / 1.239 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.7183, allocations: 94.69 kB / 1.239 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00424/0.7226, allocations: 3.903 MB / 1.243 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.723, allocations: 0.8572 MB / 1.244 GB, free: 9.754 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001278/0.7231, allocations: 50.94 kB / 1.244 GB, free: 9.703 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.7233, allocations: 167.4 kB / 1.244 GB, free: 9.539 MB / 0.9669 GB Notification: Performance of SimCode: time 4.31e-07/0.7233, allocations: 0 / 1.244 GB, free: 9.539 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.75, allocations: 9.813 MB / 1.254 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.953, allocations: 9.125 kB / 1.254 GB, free: 15.89 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches