Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.AssertPower,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",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.009323/0.009323, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002149/0.002149, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.772/2.772, allocations: 482.4 MB / 0.7548 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 64.83 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.275, allocations: 162.2 MB / 1.241 GB, free: 9.254 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.003965/0.279, allocations: 2.427 MB / 1.244 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.2812, allocations: 1.517 MB / 1.245 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.2814, allocations: 4 kB / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005857/0.282, allocations: 223.1 kB / 1.246 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003452/0.2823, allocations: 155.2 kB / 1.246 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.2828, allocations: 190.7 kB / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.2832, allocations: 342.9 kB / 1.246 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.2834, allocations: 96.62 kB / 1.246 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.2836, allocations: 143.3 kB / 1.246 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.2838, allocations: 151.2 kB / 1.247 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.761e-05/0.2839, allocations: 20 kB / 1.247 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.284, allocations: 71.97 kB / 1.247 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.2842, allocations: 123.6 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.2843, allocations: 190.5 kB / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005776/0.2849, allocations: 0.5054 MB / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2849, allocations: 0 / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2849, allocations: 0 / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.285, allocations: 0 / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001185/0.2861, allocations: 0.8198 MB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.2862, allocations: 12.03 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.983e-05/0.2862, allocations: 46.73 kB / 1.248 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.125e-05/0.2863, allocations: 68.52 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005452/0.2869, allocations: 436.4 kB / 1.249 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.2869, allocations: 16.12 kB / 1.249 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.287, allocations: 12 kB / 1.249 GB, free: 1.609 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.2873, allocations: 130.8 kB / 1.249 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.2873, allocations: 0 / 1.249 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.2873, allocations: 11.98 kB / 1.249 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2873, allocations: 7.938 kB / 1.249 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.2875, allocations: 79.97 kB / 1.249 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.2885, allocations: 0.6368 MB / 1.25 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.2889, allocations: 142.6 kB / 1.25 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.289, allocations: 44.84 kB / 1.25 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.2891, allocations: 3.984 kB / 1.25 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002087/0.2893, allocations: 107.3 kB / 1.25 GB, free: 384 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.2893, allocations: 4 kB / 1.25 GB, free: 380 kB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0004517/0.2898, allocations: 213.2 kB / 1.25 GB, free: 160 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.2898, allocations: 55.39 kB / 1.25 GB, free: 92 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007691/0.2906, allocations: 0.6476 MB / 1.251 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.2906, allocations: 33.7 kB / 1.251 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.2908, allocations: 252.5 kB / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.704e-05/0.2909, allocations: 43.67 kB / 1.251 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.575e-05/0.291, allocations: 53.64 kB / 1.251 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.2912, allocations: 378.7 kB / 1.252 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.2913, allocations: 79.97 kB / 1.252 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.2915, allocations: 114.7 kB / 1.252 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.2918, allocations: 127.5 kB / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2918, allocations: 3.938 kB / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004387/0.2922, allocations: 279 kB / 1.252 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.2923, allocations: 4 kB / 1.252 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.2923, allocations: 0 / 1.252 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.2923, allocations: 4 kB / 1.252 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.2925, allocations: 35.92 kB / 1.252 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.2925, allocations: 0 / 1.252 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.2927, allocations: 31.86 kB / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.2927, allocations: 8 kB / 1.252 GB, free: 13.97 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.PEleDem.tab.nextTimeEvent,$whenCondition1,PEleDem.tab.nextTimeEventScaled,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent,assPow.minPow.y,$PRE.assPow.minPow.y,assPow.maxPow.y,$PRE.assPow.maxPow.y,assPow.assMesDP.u,assPow.assMesP.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0002265/0.2929, allocations: 218.2 kB / 1.252 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.293, allocations: 51.67 kB / 1.252 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.6e-05/0.2931, allocations: 56.66 kB / 1.253 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2931, allocations: 0 / 1.253 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2931, allocations: 0 / 1.253 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2931, allocations: 4 kB / 1.253 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.2935, allocations: 377.3 kB / 1.253 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2935, allocations: 0 / 1.253 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.077e-05/0.2936, allocations: 8 kB / 1.253 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2936, allocations: 4 kB / 1.253 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.2936, allocations: 7.984 kB / 1.253 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.2936, allocations: 7.984 kB / 1.253 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2936, allocations: 0 / 1.253 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.2941, allocations: 268.5 kB / 1.253 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.2942, allocations: 124.8 kB / 1.253 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.2943, allocations: 4 kB / 1.253 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.2944, allocations: 20.05 kB / 1.253 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.278e-05/0.2945, allocations: 19.97 kB / 1.253 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.2945, allocations: 7.984 kB / 1.253 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004998/0.295, allocations: 430.8 kB / 1.254 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.295, allocations: 0 / 1.254 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000292/0.2953, allocations: 63.89 kB / 1.254 GB, free: 12.23 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assPow.demRat.x) * Number of discrete variables: 7 ($whenCondition1,assPow.assMesP.u,assPow.assMesDP.u,assPow.maxPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (PEleDem.tab.nextTimeEventScaled,assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.002177/0.2975, allocations: 1.124 MB / 1.255 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003408/0.2979, allocations: 163.7 kB / 1.255 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2979, allocations: 0 / 1.255 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.298, allocations: 55.92 kB / 1.255 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.2984, allocations: 74.38 kB / 1.255 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.3031, allocations: 3.806 MB / 1.259 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.3036, allocations: 0.8533 MB / 1.26 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001179/0.3037, allocations: 42.2 kB / 1.26 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.3039, allocations: 163.3 kB / 1.26 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3039, allocations: 0 / 1.26 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.3364, allocations: 9.219 MB / 1.269 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.315/8.651, allocations: 6.719 kB / 1.269 GB, free: 12.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.csv --start-time 0 --stop-time 1800 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches