Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_10_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.0008388/0.0008418, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005205/0.005205, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.281/1.281, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.338/2.338, allocations: 437.8 MB / 0.7121 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003022/0.0003022, allocations: 20 kB / 0.873 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5865/0.5868, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00252/0.5894, allocations: 2.162 MB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002005/0.5914, allocations: 1.523 MB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.5915, allocations: 3.938 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007702/0.5923, allocations: 307 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003367/0.5927, allocations: 194.8 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005126/0.5932, allocations: 251.3 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.5935, allocations: 374.7 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.5937, allocations: 70.89 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.5939, allocations: 143.2 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.594, allocations: 155.2 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.5941, allocations: 4 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.5942, allocations: 67.94 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.5943, allocations: 119.5 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.5945, allocations: 196.3 kB / 1.029 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004025/0.5949, allocations: 478 kB / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.5949, allocations: 0 / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.744e-06/0.5949, allocations: 0 / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.5949, allocations: 0 / 1.029 GB, free: 9.789 MB / 0.7794 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.0009454/0.5959, allocations: 0.7601 MB / 1.03 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.5959, allocations: 8.031 kB / 1.03 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.607e-05/0.596, allocations: 42.73 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.596, allocations: 60.19 kB / 1.03 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.5965, allocations: 440.5 kB / 1.03 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.5965, allocations: 12 kB / 1.03 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.5966, allocations: 8 kB / 1.03 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.5968, allocations: 138.9 kB / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.5968, allocations: 3.938 kB / 1.03 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.5969, allocations: 8 kB / 1.03 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.5969, allocations: 7.922 kB / 1.03 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.597, allocations: 63.97 kB / 1.03 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007405/0.5978, allocations: 0.5784 MB / 1.031 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.5981, allocations: 126.7 kB / 1.031 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.633e-05/0.5982, allocations: 48.83 kB / 1.031 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.5982, allocations: 4 kB / 1.031 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.5984, allocations: 111.5 kB / 1.031 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.303e-06/0.5984, allocations: 0 / 1.031 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0004513/0.5989, allocations: 232.9 kB / 1.032 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.5989, allocations: 85.11 kB / 1.032 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006652/0.5996, allocations: 0.6837 MB / 1.032 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.5996, allocations: 33.7 kB / 1.032 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.5998, allocations: 260.3 kB / 1.033 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.5999, allocations: 39.53 kB / 1.033 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.5999, allocations: 33.7 kB / 1.033 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6, allocations: 374.8 kB / 1.033 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.6002, allocations: 71.97 kB / 1.033 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.6003, allocations: 126.3 kB / 1.033 GB, free: 5.215 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.6006, allocations: 142.3 kB / 1.033 GB, free: 5.066 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.6006, allocations: 0 / 1.033 GB, free: 5.066 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003822/0.601, allocations: 263.1 kB / 1.034 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.601, allocations: 11.92 kB / 1.034 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.601, allocations: 0 / 1.034 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.601, allocations: 4 kB / 1.034 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.6012, allocations: 35.92 kB / 1.034 GB, free: 4.754 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.6012, allocations: 4 kB / 1.034 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.6013, allocations: 31.89 kB / 1.034 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.6014, allocations: 8 kB / 1.034 GB, free: 4.711 MB / 0.7794 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.0001934/0.6016, allocations: 216.7 kB / 1.034 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.613e-05/0.6016, allocations: 59.19 kB / 1.034 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.126e-05/0.6017, allocations: 57.05 kB / 1.034 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.6017, allocations: 0 / 1.034 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.6017, allocations: 8 kB / 1.034 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.6018, allocations: 7.984 kB / 1.034 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002947/0.6021, allocations: 369.4 kB / 1.034 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.6021, allocations: 0 / 1.034 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-05/0.6021, allocations: 8 kB / 1.034 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6021, allocations: 0 / 1.034 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.6021, allocations: 4 kB / 1.034 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.6021, allocations: 3.938 kB / 1.034 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6021, allocations: 0 / 1.034 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.6024, allocations: 228.3 kB / 1.035 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.827e-05/0.6026, allocations: 132.4 kB / 1.035 GB, free: 3.543 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.728e-05/0.6026, allocations: 8 kB / 1.035 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.6027, allocations: 11.98 kB / 1.035 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.6028, allocations: 19.97 kB / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.6028, allocations: 4 kB / 1.035 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004569/0.6033, allocations: 471 kB / 1.035 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6033, allocations: 0 / 1.035 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002815/0.6036, allocations: 71.89 kB / 1.035 GB, free: 2.973 MB / 0.7794 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.001393/0.605, allocations: 1.075 MB / 1.036 GB, free: 2.035 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003064/0.6053, allocations: 151.9 kB / 1.036 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.6053, allocations: 0 / 1.036 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.6054, allocations: 63.91 kB / 1.037 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.6059, allocations: 90.2 kB / 1.037 GB, free: 1.742 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.6102, allocations: 4.126 MB / 1.041 GB, free: 13.5 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.6105, allocations: 0.8572 MB / 1.041 GB, free: 12.62 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001303/0.6107, allocations: 54.92 kB / 1.042 GB, free: 12.57 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.6109, allocations: 167.4 kB / 1.042 GB, free: 12.41 MB / 0.795 GB Notification: Performance of SimCode: time 3.1e-07/0.6109, allocations: 3.938 kB / 1.042 GB, free: 12.4 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.582/5.193, allocations: 9.135 MB / 1.051 GB, free: 3.477 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000239/5.193, allocations: 253.4 kB / 1.051 GB, free: 3.223 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.93/8.123, allocations: 4 kB / 1.051 GB, free: 3.219 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches