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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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_latest_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_latest_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.009447/0.009446, allocations: 101.5 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.002169/0.002169, allocations: 196.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.4/1.4, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.825/2.825, allocations: 461.9 MB / 0.7348 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001389, allocations: 65.27 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3039, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004281/0.3082, allocations: 2.518 MB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002507/0.3108, allocations: 1.541 MB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.3111, allocations: 7.938 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000986/0.3121, allocations: 311.4 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.3126, allocations: 195.3 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006727/0.3133, allocations: 245.8 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004579/0.3137, allocations: 374.7 kB / 1.058 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.3139, allocations: 68.98 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.3141, allocations: 147.3 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.3144, allocations: 155.2 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.178e-05/0.3144, allocations: 8 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.3146, allocations: 67.89 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.3148, allocations: 123.5 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.3149, allocations: 182.6 kB / 1.059 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.3153, allocations: 379.1 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.3154, allocations: 4 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.3154, allocations: 0 / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.948e-06/0.3154, allocations: 0 / 1.059 GB, free: 1.973 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.001289/0.3167, allocations: 0.8336 MB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3167, allocations: 11.97 kB / 1.06 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.3168, allocations: 60.19 kB / 1.06 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/0.3174, allocations: 432.8 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.3174, allocations: 19.94 kB / 1.06 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.3175, allocations: 8 kB / 1.06 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.3178, allocations: 140.3 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.3178, allocations: 0 / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.3178, allocations: 0 / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.3178, allocations: 11.92 kB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.318, allocations: 79.83 kB / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008842/0.3189, allocations: 0.5705 MB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.3192, allocations: 126.8 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.3193, allocations: 44.84 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.3194, allocations: 3.984 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.3196, allocations: 107.3 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.3197, allocations: 7.938 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005243/0.3202, allocations: 237.1 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.3202, allocations: 81.09 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007223/0.321, allocations: 0.6837 MB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.321, allocations: 25.7 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.3212, allocations: 272.2 kB / 1.063 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.3213, allocations: 35.59 kB / 1.063 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.51e-05/0.3213, allocations: 49.7 kB / 1.063 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3215, allocations: 370.8 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.3217, allocations: 79.91 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.3219, allocations: 123 kB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.3221, allocations: 132.4 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3221, allocations: 7.938 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004545/0.3226, allocations: 279.2 kB / 1.064 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3226, allocations: 8 kB / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3226, allocations: 3.938 kB / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3226, allocations: 0 / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.3228, allocations: 35.92 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3228, allocations: 0 / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.323, allocations: 27.83 kB / 1.064 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.323, allocations: 8.062 kB / 1.064 GB, free: 12.84 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.000211/0.3232, allocations: 211.5 kB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/0.3233, allocations: 55.28 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.081e-05/0.3234, allocations: 61.05 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3234, allocations: 0 / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3234, allocations: 0 / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3234, allocations: 3.984 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.3238, allocations: 369.4 kB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.3238, allocations: 11.94 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.819e-05/0.3238, allocations: 7.938 kB / 1.064 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3239, allocations: 0 / 1.064 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.3239, allocations: 4 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3239, allocations: 0 / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3239, allocations: 3.984 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003525/0.3242, allocations: 216.4 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.3244, allocations: 132.4 kB / 1.065 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.3244, allocations: 8 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.3245, allocations: 11.98 kB / 1.065 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.3246, allocations: 19.97 kB / 1.065 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.3246, allocations: 4 kB / 1.065 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004891/0.3251, allocations: 471 kB / 1.065 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3251, allocations: 0 / 1.065 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003131/0.3255, allocations: 71.84 kB / 1.065 GB, free: 11.12 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.001002/0.3265, allocations: 437.7 kB / 1.066 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003551/0.3268, allocations: 155.9 kB / 1.066 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3268, allocations: 0 / 1.066 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.327, allocations: 55.91 kB / 1.066 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005031/0.3275, allocations: 87.67 kB / 1.066 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.3288, allocations: 0.9918 MB / 1.067 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.3293, allocations: 0.8691 MB / 1.068 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.3294, allocations: 27.44 kB / 1.068 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3294, allocations: 0 / 1.068 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of Templates: time 0.009564/0.3389, allocations: 5.707 MB / 1.073 GB, free: 2.938 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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 & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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