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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006208/0.006208, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001742/0.001742, allocations: 193.8 kB / 16.79 MB, free: 5.809 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.365/1.365, allocations: 222.9 MB / 240.5 MB, free: 4.562 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.596/2.596, allocations: 437 MB / 0.7106 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.91 kB / 0.8692 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6241/0.6256, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004312/0.6299, allocations: 2.52 MB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002506/0.6325, allocations: 1.553 MB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.6327, allocations: 4 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.6338, allocations: 307 kB / 1.022 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004999/0.6343, allocations: 191.3 kB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000726/0.635, allocations: 248.7 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000514/0.6355, allocations: 378.7 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.6357, allocations: 62.69 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.636, allocations: 151.3 kB / 1.023 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.6363, allocations: 159.2 kB / 1.023 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.14e-05/0.6363, allocations: 8 kB / 1.023 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.6365, allocations: 71.89 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.6367, allocations: 119.5 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.6369, allocations: 186.5 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.6373, allocations: 375.2 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.6374, allocations: 4 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.6374, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.6374, allocations: 0 / 1.023 GB, free: 12.48 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.001384/0.6388, allocations: 0.8259 MB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.6388, allocations: 8.031 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.639, allocations: 60.19 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005772/0.6396, allocations: 436.7 kB / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.6396, allocations: 15.92 kB / 1.025 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.6396, allocations: 12 kB / 1.025 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.6399, allocations: 139.3 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.6399, allocations: 0 / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.64, allocations: 0 / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.64, allocations: 11.88 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.6402, allocations: 71.91 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009533/0.6411, allocations: 0.5705 MB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.6415, allocations: 126.7 kB / 1.026 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.6416, allocations: 44.84 kB / 1.026 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.6416, allocations: 4 kB / 1.026 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.6419, allocations: 119.3 kB / 1.026 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.6419, allocations: 0 / 1.026 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0005501/0.6424, allocations: 230.2 kB / 1.026 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.6425, allocations: 77.11 kB / 1.026 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008166/0.6433, allocations: 0.6915 MB / 1.027 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.6434, allocations: 37.7 kB / 1.027 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002063/0.6436, allocations: 268.2 kB / 1.027 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.229e-05/0.6436, allocations: 35.55 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.574e-05/0.6437, allocations: 49.7 kB / 1.027 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.6439, allocations: 374.8 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.644, allocations: 67.97 kB / 1.028 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.6442, allocations: 126.6 kB / 1.028 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.6445, allocations: 140.8 kB / 1.028 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.6445, allocations: 3.938 kB / 1.028 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005127/0.645, allocations: 264.8 kB / 1.028 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.6451, allocations: 12.06 kB / 1.028 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.6451, allocations: 0 / 1.028 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.6451, allocations: 3.984 kB / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.6453, allocations: 31.98 kB / 1.028 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.6453, allocations: 4 kB / 1.028 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.6455, allocations: 19.92 kB / 1.028 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.6456, allocations: 15.94 kB / 1.028 GB, free: 7.375 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.0002764/0.6458, allocations: 212 kB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.497e-05/0.6459, allocations: 63.19 kB / 1.028 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.6461, allocations: 57.05 kB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.6461, allocations: 0 / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6461, allocations: 0 / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.6461, allocations: 7.984 kB / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003712/0.6465, allocations: 369.4 kB / 1.029 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.6465, allocations: 3.938 kB / 1.029 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.95e-05/0.6465, allocations: 7.938 kB / 1.029 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.6465, allocations: 4 kB / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.6466, allocations: 0 / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.6466, allocations: 11.92 kB / 1.029 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.6466, allocations: 0 / 1.029 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.647, allocations: 226.3 kB / 1.029 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.6471, allocations: 132.3 kB / 1.029 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.064e-05/0.6472, allocations: 8 kB / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.6473, allocations: 7.984 kB / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.041e-05/0.6474, allocations: 19.98 kB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.6474, allocations: 7.984 kB / 1.029 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005453/0.648, allocations: 471 kB / 1.03 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.648, allocations: 0 / 1.03 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003395/0.6483, allocations: 67.91 kB / 1.03 GB, free: 5.641 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.001007/0.6493, allocations: 432.9 kB / 1.03 GB, free: 5.371 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003815/0.6497, allocations: 155.8 kB / 1.03 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6497, allocations: 0 / 1.03 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.6499, allocations: 58.66 kB / 1.03 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.6504, allocations: 94.53 kB / 1.03 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.6519, allocations: 0.9966 MB / 1.031 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.6524, allocations: 0.8613 MB / 1.032 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/0.6525, allocations: 27.44 kB / 1.032 GB, free: 3.129 MB / 0.7794 GB Notification: Performance of SimCode: time 3.6e-07/0.6525, allocations: 0 / 1.032 GB, free: 3.129 MB / 0.7794 GB Notification: Performance of Templates: time 0.009924/0.6624, allocations: 5.709 MB / 1.038 GB, free: 13.46 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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 & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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