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.007742/0.007742, allocations: 98.38 kB / 15.73 MB, free: 6.012 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.002074/0.002074, allocations: 197.1 kB / 16.67 MB, free: 5.949 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.865/2.865, allocations: 482.4 MB / 0.7548 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 71.89 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2858, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003812/0.2897, allocations: 2.451 MB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00234/0.292, allocations: 1.568 MB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.2922, allocations: 7.938 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008472/0.293, allocations: 331 kB / 1.246 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.2934, allocations: 211.1 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006044/0.2941, allocations: 274.2 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004431/0.2945, allocations: 386.8 kB / 1.247 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.2947, allocations: 64.72 kB / 1.247 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.2949, allocations: 167.2 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.2951, allocations: 155.3 kB / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.2952, allocations: 20 kB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.2954, allocations: 87.88 kB / 1.247 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.2955, allocations: 131.5 kB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.2957, allocations: 190.6 kB / 1.247 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005733/0.2963, allocations: 0.4976 MB / 1.248 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2963, allocations: 4 kB / 1.248 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2963, allocations: 0 / 1.248 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.2963, allocations: 0 / 1.248 GB, free: 3.672 MB / 0.9981 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.001177/0.2975, allocations: 0.8606 MB / 1.249 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2976, allocations: 8.031 kB / 1.249 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.693e-05/0.2976, allocations: 46.72 kB / 1.249 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.147e-05/0.2977, allocations: 64.52 kB / 1.249 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.2983, allocations: 437.2 kB / 1.249 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2983, allocations: 12 kB / 1.249 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/0.2983, allocations: 15.98 kB / 1.249 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.2986, allocations: 135.3 kB / 1.249 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2987, allocations: 0 / 1.249 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.2987, allocations: 4 kB / 1.249 GB, free: 1.984 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.2987, allocations: 7.938 kB / 1.249 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.2989, allocations: 63.97 kB / 1.249 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000865/0.2998, allocations: 0.5784 MB / 1.25 GB, free: 1.285 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.3001, allocations: 122.7 kB / 1.25 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3002, allocations: 44.84 kB / 1.25 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.3002, allocations: 8 kB / 1.25 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.3005, allocations: 115.4 kB / 1.25 GB, free: 0.9766 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.3005, allocations: 0 / 1.25 GB, free: 0.9766 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0005272/0.301, allocations: 240.3 kB / 1.25 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.3011, allocations: 77.11 kB / 1.251 GB, free: 0.6445 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4781/0.7792, allocations: 0.6864 MB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/0.7793, allocations: 33.97 kB / 1.251 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.7795, allocations: 259.2 kB / 1.252 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.7795, allocations: 41.44 kB / 1.252 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.736e-05/0.7796, allocations: 54.81 kB / 1.252 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.056e-05/0.7797, allocations: 369.8 kB / 1.252 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.7799, allocations: 71.66 kB / 1.252 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.7801, allocations: 124.3 kB / 1.252 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.7804, allocations: 138.3 kB / 1.252 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.7804, allocations: 0 / 1.252 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004804/0.7809, allocations: 276.1 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.7809, allocations: 5.875 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.7809, allocations: 2.688 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.7809, allocations: 4.125 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.7811, allocations: 31.81 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.7811, allocations: 4.531 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.7813, allocations: 26.2 kB / 1.253 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.7813, allocations: 10.16 kB / 1.253 GB, free: 14.16 MB / 0.9981 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.0001952/0.7815, allocations: 211.9 kB / 1.253 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.316e-05/0.7816, allocations: 62.33 kB / 1.253 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.224e-05/0.7817, allocations: 59.47 kB / 1.253 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.7817, allocations: 1.656 kB / 1.253 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.7817, allocations: 1.406 kB / 1.253 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.7817, allocations: 0.6094 kB / 1.253 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.782, allocations: 367.5 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.782, allocations: 5.391 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.052e-05/0.7821, allocations: 13.81 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.7821, allocations: 0.7812 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.7821, allocations: 5.125 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.7821, allocations: 1.516 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7821, allocations: 0 / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003504/0.7825, allocations: 224.7 kB / 1.254 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.518e-05/0.7826, allocations: 137.5 kB / 1.254 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/0.7826, allocations: 7.25 kB / 1.254 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.7828, allocations: 10.12 kB / 1.254 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.7828, allocations: 17.33 kB / 1.254 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.7828, allocations: 9.234 kB / 1.254 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004954/0.7833, allocations: 467.8 kB / 1.254 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7833, allocations: 0 / 1.254 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003288/0.7837, allocations: 69 kB / 1.254 GB, free: 13.48 MB / 0.9981 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.001939/0.7856, allocations: 1.098 MB / 1.255 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003591/0.786, allocations: 150.2 kB / 1.255 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.786, allocations: 0.875 kB / 1.255 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.7862, allocations: 61.69 kB / 1.255 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004991/0.7867, allocations: 102.1 kB / 1.256 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.7911, allocations: 3.899 MB / 1.259 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.7914, allocations: 0.8613 MB / 1.26 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001477/0.7915, allocations: 57.39 kB / 1.26 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.7917, allocations: 167 kB / 1.26 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of SimCode: time 3.8e-07/0.7917, allocations: 0 / 1.26 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03507/0.8268, allocations: 9.818 MB / 1.27 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.514/9.341, allocations: 7.844 kB / 1.27 GB, free: 8.492 MB / 0.9981 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 400 --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