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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0017/0.0017, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001986/0.001986, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.532/1.532, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.537/2.537, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001999, allocations: 67.67 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.283, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003895/0.287, allocations: 2.522 MB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002583/0.2896, allocations: 1.545 MB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.2898, allocations: 3.938 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009769/0.2908, allocations: 311.4 kB / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004864/0.2913, allocations: 198.4 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007243/0.2921, allocations: 242.8 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004659/0.2925, allocations: 398.7 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.2927, allocations: 72.92 kB / 1.058 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.2929, allocations: 163.2 kB / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.2932, allocations: 171.2 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.2932, allocations: 20 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.2934, allocations: 67.97 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.2935, allocations: 139.4 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.2937, allocations: 190.7 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004894/0.2942, allocations: 0.4942 MB / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2942, allocations: 0 / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2942, allocations: 0 / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.2942, allocations: 0 / 1.059 GB, free: 2.148 MB / 0.8106 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.001119/0.2953, allocations: 0.8258 MB / 1.06 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.2954, allocations: 8.625 kB / 1.06 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.727e-05/0.2954, allocations: 46.73 kB / 1.06 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.32e-05/0.2955, allocations: 60.19 kB / 1.06 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000503/0.296, allocations: 436.5 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2961, allocations: 8 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.2961, allocations: 12 kB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000281/0.2964, allocations: 139.3 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2964, allocations: 3.938 kB / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.2964, allocations: 0 / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.2964, allocations: 7.938 kB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.2966, allocations: 83.88 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008175/0.2974, allocations: 0.5666 MB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.2977, allocations: 122.8 kB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.2979, allocations: 56.77 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.2979, allocations: 0 / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.2981, allocations: 111.5 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.452e-06/0.2981, allocations: 0 / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0004937/0.2986, allocations: 244.8 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.2987, allocations: 77.11 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007377/0.2994, allocations: 0.6799 MB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.2995, allocations: 33.7 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.2997, allocations: 268.2 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.2997, allocations: 35.55 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2998, allocations: 53.69 kB / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3, allocations: 378.8 kB / 1.063 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.3001, allocations: 67.97 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.3003, allocations: 122.4 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.3006, allocations: 140.3 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3006, allocations: 0 / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004253/0.301, allocations: 270.6 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.301, allocations: 7.938 kB / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.301, allocations: 4 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3011, allocations: 0 / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.3012, allocations: 31.98 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.3012, allocations: 0 / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.3014, allocations: 27.95 kB / 1.064 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.3014, allocations: 15.92 kB / 1.064 GB, free: 12.98 MB / 0.8262 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.0002106/0.3016, allocations: 211.5 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.889e-05/0.3017, allocations: 55.28 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.708e-05/0.3018, allocations: 61.05 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3018, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3018, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3018, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.3022, allocations: 381.2 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.3022, allocations: 0 / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.63e-05/0.3022, allocations: 11.94 kB / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3022, allocations: 0 / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3022, allocations: 7.984 kB / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.3022, allocations: 0 / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3022, allocations: 0 / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.3026, allocations: 227.2 kB / 1.064 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.363e-05/0.3027, allocations: 124.5 kB / 1.065 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.3028, allocations: 7.984 kB / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.3029, allocations: 8.047 kB / 1.065 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.307e-05/0.303, allocations: 23.95 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.303, allocations: 11.94 kB / 1.065 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004783/0.3035, allocations: 467 kB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3035, allocations: 0 / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002983/0.3038, allocations: 71.83 kB / 1.065 GB, free: 11.25 MB / 0.8262 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.001499/0.3053, allocations: 1.079 MB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003652/0.3057, allocations: 160.4 kB / 1.066 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3057, allocations: 4.125 kB / 1.066 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3058, allocations: 55.98 kB / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.3063, allocations: 97.44 kB / 1.066 GB, free: 10 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.3112, allocations: 4.107 MB / 1.07 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.3117, allocations: 0.861 MB / 1.071 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001673/0.3118, allocations: 54.94 kB / 1.071 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.3121, allocations: 167.4 kB / 1.072 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of SimCode: time 6.31e-07/0.3121, allocations: 0 / 1.072 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.882/1.194, allocations: 9.474 MB / 1.081 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002819/1.194, allocations: 267.2 kB / 1.081 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.707/3.902, allocations: 6.438 kB / 1.081 GB, free: 11.14 MB / 0.8419 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 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.mat","/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