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.001468/0.001468, allocations: 108.6 kB / 15.73 MB, free: 76 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.001429/0.001429, allocations: 191.7 kB / 16.66 MB, free: 6.59 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.283/1.283, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.545/2.545, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 63.91 kB / 1.083 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2561, allocations: 162.3 MB / 1.242 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003302/0.2595, allocations: 2.459 MB / 1.244 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001992/0.2615, allocations: 1.572 MB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.2616, allocations: 3.938 kB / 1.246 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007511/0.2623, allocations: 327 kB / 1.246 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003672/0.2627, allocations: 223.1 kB / 1.246 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.2632, allocations: 258.6 kB / 1.247 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003814/0.2636, allocations: 398.6 kB / 1.247 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.2637, allocations: 64.72 kB / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.2639, allocations: 163.3 kB / 1.247 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.2641, allocations: 151.3 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.2642, allocations: 23.94 kB / 1.247 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.2643, allocations: 79.94 kB / 1.247 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.2645, allocations: 127.5 kB / 1.248 GB, free: 4 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.2646, allocations: 198.5 kB / 1.248 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.2651, allocations: 0.5015 MB / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2651, allocations: 0 / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2651, allocations: 0 / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.096e-06/0.2652, allocations: 0 / 1.248 GB, free: 3.301 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.001007/0.2662, allocations: 0.8489 MB / 1.249 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.2662, allocations: 12.03 kB / 1.249 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.2663, allocations: 42.75 kB / 1.249 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.033e-05/0.2663, allocations: 64.52 kB / 1.249 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.2668, allocations: 445.2 kB / 1.25 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.2668, allocations: 12 kB / 1.25 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.014e-05/0.2669, allocations: 11.94 kB / 1.25 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002531/0.2671, allocations: 142.1 kB / 1.25 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.964e-06/0.2671, allocations: 0 / 1.25 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2672, allocations: 0 / 1.25 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2672, allocations: 11.94 kB / 1.25 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.2673, allocations: 75.89 kB / 1.25 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.2681, allocations: 0.5745 MB / 1.25 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.2683, allocations: 122.8 kB / 1.25 GB, free: 0.7812 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.899e-05/0.2685, allocations: 48.83 kB / 1.251 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.2685, allocations: 7.938 kB / 1.251 GB, free: 0.7227 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.2687, allocations: 110.6 kB / 1.251 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.2687, allocations: 0 / 1.251 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0004498/0.2692, allocations: 241.2 kB / 1.251 GB, free: 372 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.2692, allocations: 81.11 kB / 1.251 GB, free: 272 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4181/0.6873, allocations: 0.6804 MB / 1.252 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.6873, allocations: 33.2 kB / 1.252 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.6875, allocations: 263.7 kB / 1.252 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.643e-05/0.6876, allocations: 38.47 kB / 1.252 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.711e-05/0.6877, allocations: 55.34 kB / 1.252 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.297e-05/0.6877, allocations: 372.4 kB / 1.252 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.6879, allocations: 71.52 kB / 1.252 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.6881, allocations: 121.2 kB / 1.253 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.6883, allocations: 135.3 kB / 1.253 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.6883, allocations: 0.5938 kB / 1.253 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004205/0.6887, allocations: 271.6 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.6887, allocations: 7.109 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.6888, allocations: 1.688 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.6888, allocations: 1.875 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.6889, allocations: 39.12 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.6889, allocations: 4.578 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.6891, allocations: 26.47 kB / 1.253 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.6891, allocations: 6.844 kB / 1.253 GB, free: 14.34 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.0001735/0.6893, allocations: 212.5 kB / 1.253 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.688e-05/0.6894, allocations: 63.77 kB / 1.253 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.384e-05/0.6895, allocations: 59.75 kB / 1.253 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.6895, allocations: 2 kB / 1.253 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.6895, allocations: 1.219 kB / 1.253 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.6895, allocations: 1.344 kB / 1.253 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.6898, allocations: 367.3 kB / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6898, allocations: 1.781 kB / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-05/0.6898, allocations: 15.62 kB / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.6898, allocations: 0.8125 kB / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.6899, allocations: 5.797 kB / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.6899, allocations: 0.7188 kB / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6899, allocations: 0 / 1.254 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.6902, allocations: 225.4 kB / 1.254 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.66e-05/0.6902, allocations: 135.8 kB / 1.254 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.6903, allocations: 6.609 kB / 1.254 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.6904, allocations: 10.44 kB / 1.254 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.6905, allocations: 18.66 kB / 1.254 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.6905, allocations: 10.31 kB / 1.254 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004531/0.6909, allocations: 466.3 kB / 1.255 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.31e-07/0.6909, allocations: 3.781 kB / 1.255 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002803/0.6912, allocations: 70.97 kB / 1.255 GB, free: 13.51 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.001631/0.6929, allocations: 1.097 MB / 1.256 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003099/0.6932, allocations: 149 kB / 1.256 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.6932, allocations: 0.9688 kB / 1.256 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.6933, allocations: 54.41 kB / 1.256 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.6938, allocations: 105.5 kB / 1.256 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003927/0.6977, allocations: 3.907 MB / 1.26 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.698, allocations: 0.8605 MB / 1.261 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001263/0.6981, allocations: 48.69 kB / 1.261 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.6983, allocations: 167.1 kB / 1.261 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of SimCode: time 2.71e-07/0.6983, allocations: 3.938 kB / 1.261 GB, free: 9.801 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.242/7.94, allocations: 9.811 MB / 1.27 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.21/26.15, allocations: 24.31 kB / 1.27 GB, free: 8.332 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 & /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=400 --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