Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_10_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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00121/0.001211, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.206/1.206, allocations: 222.9 MB / 239.8 MB, free: 4.539 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.381/2.381, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.91 kB / 0.8687 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5123/0.5136, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.003733/0.5173, allocations: 2.491 MB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002237/0.5196, allocations: 1.478 MB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.5198, allocations: 7.938 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006092/0.5205, allocations: 211.1 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003577/0.5208, allocations: 139.4 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.5213, allocations: 167.7 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004009/0.5217, allocations: 322.9 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.5219, allocations: 95.03 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.5221, allocations: 123.4 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.5223, allocations: 147.2 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.5223, allocations: 11.94 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.5225, allocations: 47.97 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.5226, allocations: 127.5 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.5228, allocations: 174.6 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.5232, allocations: 498 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.5233, allocations: 0 / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.304e-06/0.5233, allocations: 8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.5233, allocations: 0 / 1.023 GB, free: 12.77 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001097/0.5244, allocations: 0.789 MB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.5244, allocations: 8.031 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.5245, allocations: 50.73 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.289e-05/0.5246, allocations: 56.19 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.525, allocations: 431.9 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.5251, allocations: 12.12 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.5251, allocations: 16 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.5254, allocations: 122.8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.5254, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.5254, allocations: 12 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.5254, allocations: 0 / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.5256, allocations: 87.89 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009049/0.5265, allocations: 0.6445 MB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.5269, allocations: 138.6 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.505e-05/0.527, allocations: 48.88 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.527, allocations: 11.92 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.5272, allocations: 103.3 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.5272, allocations: 4 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004209/0.5277, allocations: 205 kB / 1.025 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.5277, allocations: 59.34 kB / 1.025 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006392/0.5283, allocations: 0.6475 MB / 1.026 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.5284, allocations: 33.7 kB / 1.026 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.5286, allocations: 256.4 kB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.699e-05/0.5286, allocations: 43.48 kB / 1.026 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.102e-05/0.5287, allocations: 57.59 kB / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.5288, allocations: 378.7 kB / 1.027 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.529, allocations: 75.97 kB / 1.027 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.5292, allocations: 120.8 kB / 1.027 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.5294, allocations: 123.7 kB / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5294, allocations: 0 / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003796/0.5298, allocations: 270.4 kB / 1.027 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.5298, allocations: 4 kB / 1.027 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.5298, allocations: 3.984 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.5298, allocations: 4 kB / 1.027 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.53, allocations: 39.92 kB / 1.027 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.53, allocations: 7.984 kB / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.5302, allocations: 27.83 kB / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.5302, allocations: 7.984 kB / 1.027 GB, free: 7.676 MB / 0.7794 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.0001982/0.5304, allocations: 214.2 kB / 1.028 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.5305, allocations: 51.34 kB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.496e-05/0.5306, allocations: 56.66 kB / 1.028 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.5306, allocations: 7.984 kB / 1.028 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5306, allocations: 0 / 1.028 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5306, allocations: 0 / 1.028 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002907/0.5309, allocations: 369.4 kB / 1.028 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.5309, allocations: 0 / 1.028 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.294e-05/0.531, allocations: 12 kB / 1.028 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.531, allocations: 4 kB / 1.028 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.531, allocations: 0 / 1.028 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.531, allocations: 3.984 kB / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.531, allocations: 0 / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/0.5314, allocations: 264.2 kB / 1.028 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.573e-05/0.5315, allocations: 128.4 kB / 1.028 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.614e-05/0.5316, allocations: 4 kB / 1.028 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.5317, allocations: 24.05 kB / 1.028 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.5318, allocations: 19.97 kB / 1.028 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.5318, allocations: 11.98 kB / 1.028 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004058/0.5322, allocations: 430.7 kB / 1.029 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5322, allocations: 0 / 1.029 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002679/0.5325, allocations: 59.91 kB / 1.029 GB, free: 5.957 MB / 0.7794 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.001453/0.5339, allocations: 1.119 MB / 1.03 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002981/0.5342, allocations: 152.5 kB / 1.03 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5342, allocations: 0 / 1.03 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.5344, allocations: 51.98 kB / 1.03 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.5348, allocations: 77.95 kB / 1.03 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.539, allocations: 3.982 MB / 1.034 GB, free: 0.6133 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.5393, allocations: 0.8581 MB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.5395, allocations: 38.28 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.5397, allocations: 155.4 kB / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.5397, allocations: 0 / 1.035 GB, free: 15.54 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4356/0.9753, allocations: 8.686 MB / 1.044 GB, free: 7.031 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003782/0.9757, allocations: 258.3 kB / 1.044 GB, free: 6.77 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.915, allocations: 0 / 1.044 GB, free: 6.77 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches