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: "" <> 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.0007201/0.0007202, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004622/0.004622, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.477/2.477, allocations: 462.6 MB / 0.7364 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 14.56 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2755, allocations: 159.6 MB / 1.059 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00279/0.2783, allocations: 2.156 MB / 1.061 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002366/0.2807, allocations: 1.526 MB / 1.062 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.2809, allocations: 3.938 kB / 1.062 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008448/0.2818, allocations: 307.4 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004378/0.2822, allocations: 191.3 kB / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.2829, allocations: 254.1 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.2833, allocations: 374.7 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.2835, allocations: 68.92 kB / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.2837, allocations: 139.2 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002196/0.284, allocations: 151.2 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.284, allocations: 4 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.2842, allocations: 63.95 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2843, allocations: 119.5 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2845, allocations: 200.3 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004486/0.2849, allocations: 470 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.285, allocations: 0 / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.285, allocations: 4 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.285, allocations: 4 kB / 1.065 GB, free: 14.89 MB / 0.8262 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.001069/0.2861, allocations: 0.76 MB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2861, allocations: 11.97 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.053e-05/0.2862, allocations: 42.73 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.692e-05/0.2863, allocations: 56.28 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.2868, allocations: 440.6 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.2868, allocations: 8 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.511e-05/0.2868, allocations: 11.98 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.2871, allocations: 135.9 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.2871, allocations: 3.938 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.2872, allocations: 4 kB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.2872, allocations: 11.94 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.2873, allocations: 71.91 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008228/0.2882, allocations: 0.5822 MB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002881/0.2885, allocations: 126.7 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.904e-05/0.2886, allocations: 48.84 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.2886, allocations: 0 / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.2888, allocations: 122.8 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.2889, allocations: 0 / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005164/0.2894, allocations: 232.8 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.2894, allocations: 85.11 kB / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007219/0.2902, allocations: 0.676 MB / 1.068 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.2902, allocations: 33.7 kB / 1.068 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.2904, allocations: 264.2 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.2905, allocations: 43.53 kB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.2905, allocations: 33.7 kB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.2907, allocations: 370.7 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.2908, allocations: 71.97 kB / 1.069 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.291, allocations: 122.6 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.2912, allocations: 136.5 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2913, allocations: 7.938 kB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004147/0.2917, allocations: 266.8 kB / 1.069 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2917, allocations: 13.34 kB / 1.069 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2917, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.2917, allocations: 0 / 1.069 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.2919, allocations: 35.98 kB / 1.069 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2919, allocations: 4.062 kB / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.2921, allocations: 23.98 kB / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.2921, allocations: 4 kB / 1.069 GB, free: 9.805 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.000206/0.2923, allocations: 211.5 kB / 1.07 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.2924, allocations: 63.19 kB / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.055e-05/0.2925, allocations: 61.03 kB / 1.07 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2925, allocations: 4 kB / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2925, allocations: 0 / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2925, allocations: 0 / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.2928, allocations: 369.3 kB / 1.07 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.2928, allocations: 4 kB / 1.07 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.653e-05/0.2929, allocations: 7.938 kB / 1.07 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2929, allocations: 0 / 1.07 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2929, allocations: 11.98 kB / 1.07 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2929, allocations: 0 / 1.07 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2929, allocations: 3.984 kB / 1.07 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000327/0.2932, allocations: 232.3 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.695e-05/0.2933, allocations: 128.4 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/0.2934, allocations: 8 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.2935, allocations: 15.92 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.2936, allocations: 15.98 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.2936, allocations: 7.984 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004804/0.2941, allocations: 475 kB / 1.071 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2941, allocations: 0 / 1.071 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003043/0.2944, allocations: 71.84 kB / 1.071 GB, free: 8.055 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.001437/0.2958, allocations: 1.077 MB / 1.072 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003172/0.2962, allocations: 153 kB / 1.072 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2962, allocations: 0 / 1.072 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.2963, allocations: 55.92 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.2968, allocations: 85.73 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004769/0.3016, allocations: 4.137 MB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.302, allocations: 0.8652 MB / 1.077 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001513/0.3022, allocations: 46.94 kB / 1.077 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.3024, allocations: 163.4 kB / 1.077 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of SimCode: time 4.4e-07/0.3024, allocations: 0 / 1.077 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5454/0.8478, allocations: 9.138 MB / 1.086 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002481/0.8481, allocations: 266.5 kB / 1.087 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/3.042, allocations: 0 / 1.087 GB, free: 8.301 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