Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.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.AssertWaterTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature",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.0008957/0.0008956, allocations: 90.36 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.005477/0.005477, allocations: 172 kB / 16.26 MB, free: 6.613 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.321/1.321, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.474/2.474, allocations: 443.3 MB / 0.7176 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003314, allocations: 9.469 kB / 0.8797 GB, free: 42.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2695, allocations: 155.2 MB / 1.031 GB, free: 4.418 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.002357/0.2719, allocations: 1.894 MB / 1.033 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001717/0.2736, allocations: 1.316 MB / 1.034 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.673e-05/0.2737, allocations: 7.938 kB / 1.034 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005077/0.2742, allocations: 191.9 kB / 1.035 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.2745, allocations: 111.5 kB / 1.035 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002972/0.2748, allocations: 126.7 kB / 1.035 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000243/0.275, allocations: 219.1 kB / 1.035 GB, free: 0.543 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.2752, allocations: 44.38 kB / 1.035 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2753, allocations: 83.52 kB / 1.035 GB, free: 424 kB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.2754, allocations: 87.55 kB / 1.035 GB, free: 336 kB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.2754, allocations: 4 kB / 1.035 GB, free: 332 kB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2756, allocations: 43.92 kB / 1.035 GB, free: 288 kB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.851e-05/0.2757, allocations: 95.53 kB / 1.035 GB, free: 192 kB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.2758, allocations: 148.7 kB / 1.035 GB, free: 36 kB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.2761, allocations: 334.6 kB / 1.036 GB, free: 15.71 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2761, allocations: 4 kB / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2761, allocations: 0 / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2761, allocations: 0 / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007753/0.2769, allocations: 0.6338 MB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2769, allocations: 8.031 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.234e-05/0.277, allocations: 38.75 kB / 1.036 GB, free: 14.96 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.806e-05/0.2771, allocations: 40.47 kB / 1.037 GB, free: 14.93 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003613/0.2774, allocations: 352.2 kB / 1.037 GB, free: 14.54 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.2774, allocations: 16.11 kB / 1.037 GB, free: 14.53 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.2775, allocations: 4 kB / 1.037 GB, free: 14.52 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.2776, allocations: 73.66 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.2776, allocations: 0 / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.2777, allocations: 4 kB / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2777, allocations: 3.938 kB / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.086e-05/0.2778, allocations: 35.98 kB / 1.037 GB, free: 14.4 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006041/0.2784, allocations: 464.5 kB / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.2786, allocations: 66.61 kB / 1.037 GB, free: 13.82 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.654e-05/0.2786, allocations: 28.84 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.2787, allocations: 4 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.2788, allocations: 71.39 kB / 1.038 GB, free: 13.71 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.2788, allocations: 0 / 1.038 GB, free: 13.71 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0003039/0.2791, allocations: 149.2 kB / 1.038 GB, free: 13.55 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.2792, allocations: 51.41 kB / 1.038 GB, free: 13.49 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005103/0.2797, allocations: 0.5372 MB / 1.038 GB, free: 12.95 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2797, allocations: 33.64 kB / 1.038 GB, free: 12.91 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.2799, allocations: 219.9 kB / 1.039 GB, free: 12.69 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.2799, allocations: 11.91 kB / 1.039 GB, free: 12.68 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.2799, allocations: 25.7 kB / 1.039 GB, free: 12.64 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.2801, allocations: 358.8 kB / 1.039 GB, free: 12.29 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.744e-05/0.2802, allocations: 51.89 kB / 1.039 GB, free: 12.23 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.2803, allocations: 80.11 kB / 1.039 GB, free: 12.15 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.2804, allocations: 87.61 kB / 1.039 GB, free: 12.06 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2804, allocations: 0 / 1.039 GB, free: 12.06 MB / 0.795 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002768/0.2807, allocations: 193 kB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.2807, allocations: 4 kB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2807, allocations: 4.062 kB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.2808, allocations: 7.938 kB / 1.039 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.2809, allocations: 23.92 kB / 1.039 GB, free: 11.82 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.2809, allocations: 12 kB / 1.039 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.281, allocations: 15.98 kB / 1.039 GB, free: 11.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.281, allocations: 4 kB / 1.039 GB, free: 11.79 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.TWat.tab.nextTimeEvent,$whenCondition1,TWat.tab.nextTimeEventScaled,$PRE.TWat.tab.nextTimeEventScaled,TWat.tab.nextTimeEvent,assWatTem.hys.y,$PRE.assWatTem.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001586/0.2812, allocations: 191.2 kB / 1.04 GB, free: 11.6 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.2812, allocations: 39.44 kB / 1.04 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.2813, allocations: 47.8 kB / 1.04 GB, free: 11.51 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2813, allocations: 3.938 kB / 1.04 GB, free: 11.51 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2813, allocations: 8 kB / 1.04 GB, free: 11.5 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.2813, allocations: 0 / 1.04 GB, free: 11.5 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.2816, allocations: 301.4 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2816, allocations: 4 kB / 1.04 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-05/0.2816, allocations: 0 / 1.04 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2816, allocations: 4 kB / 1.04 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.2816, allocations: 3.984 kB / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2816, allocations: 3.938 kB / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2816, allocations: 0 / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.2818, allocations: 152.5 kB / 1.04 GB, free: 10.97 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.481e-05/0.2819, allocations: 108.6 kB / 1.04 GB, free: 10.85 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.818e-05/0.282, allocations: 11.98 kB / 1.04 GB, free: 10.84 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.11e-05/0.282, allocations: 7.938 kB / 1.04 GB, free: 10.83 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.2821, allocations: 11.92 kB / 1.04 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.2821, allocations: 7.984 kB / 1.04 GB, free: 10.81 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003418/0.2825, allocations: 366.8 kB / 1.041 GB, free: 10.45 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2825, allocations: 4 kB / 1.041 GB, free: 10.45 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002418/0.2827, allocations: 47.91 kB / 1.041 GB, free: 10.4 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Number of discrete states: 3 (TWat.tab.nextTimeEventScaled,assWatTem.hys.y,TWat.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001252/0.284, allocations: 0.9888 MB / 1.042 GB, free: 9.543 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002102/0.2842, allocations: 95.91 kB / 1.042 GB, free: 9.449 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2842, allocations: 0 / 1.042 GB, free: 9.449 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.311e-05/0.2843, allocations: 27.98 kB / 1.042 GB, free: 9.422 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.2846, allocations: 57.81 kB / 1.042 GB, free: 9.367 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.2878, allocations: 3.197 MB / 1.045 GB, free: 6.074 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.2882, allocations: 0.8141 MB / 1.046 GB, free: 5.234 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 7.392e-05/0.2883, allocations: 33.64 kB / 1.046 GB, free: 5.199 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.2884, allocations: 115.4 kB / 1.046 GB, free: 5.086 MB / 0.795 GB Notification: Performance of SimCode: time 5.51e-07/0.2884, allocations: 0 / 1.046 GB, free: 5.086 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.315, allocations: 6.735 MB / 1.052 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.3152, allocations: 269.2 kB / 1.053 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.103, allocations: 0 / 1.053 GB, free: 14.22 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches