Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 111 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002221/0.002221, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.282/3.282, allocations: 0.49 GB / 0.7916 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 72.16 kB / 1.149 GB, free: 26.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3476, allocations: 176.1 MB / 1.321 GB, free: 3.336 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.005164/0.3528, allocations: 2.477 MB / 1.323 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003226/0.356, allocations: 1.673 MB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003239/0.3564, allocations: 11.88 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0007366/0.3571, allocations: 218.9 kB / 1.325 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000613/0.3577, allocations: 195.1 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.3582, allocations: 159.5 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006108/0.3588, allocations: 358.8 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.359, allocations: 68.62 kB / 1.326 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.3594, allocations: 155.4 kB / 1.326 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.3597, allocations: 159.2 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.284e-05/0.3597, allocations: 20 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.3599, allocations: 67.97 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3601, allocations: 135.5 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.3603, allocations: 190.6 kB / 1.327 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006817/0.3609, allocations: 0.5132 MB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3609, allocations: 0 / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3609, allocations: 0 / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.861e-05/0.361, allocations: 0 / 1.327 GB, free: 12.94 MB / 1.029 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.001353/0.3623, allocations: 0.8353 MB / 1.328 GB, free: 12.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3623, allocations: 15.98 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.3624, allocations: 46.73 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.3625, allocations: 60.56 kB / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006018/0.3631, allocations: 437.2 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.3631, allocations: 16.12 kB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.3632, allocations: 12 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002904/0.3635, allocations: 137.6 kB / 1.329 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3635, allocations: 0 / 1.329 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.3635, allocations: 7.984 kB / 1.329 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3635, allocations: 4 kB / 1.329 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.3637, allocations: 83.91 kB / 1.329 GB, free: 11.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.3648, allocations: 0.6446 MB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004011/0.3652, allocations: 130.7 kB / 1.329 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.3653, allocations: 44.84 kB / 1.329 GB, free: 10.32 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.3653, allocations: 0 / 1.329 GB, free: 10.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.3656, allocations: 107.3 kB / 1.33 GB, free: 10.2 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.794e-06/0.3656, allocations: 4 kB / 1.33 GB, free: 10.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.000544/0.3661, allocations: 217.5 kB / 1.33 GB, free: 9.977 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.3662, allocations: 51.41 kB / 1.33 GB, free: 9.914 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008765/0.367, allocations: 0.6719 MB / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.3671, allocations: 33.7 kB / 1.33 GB, free: 9.191 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/0.3673, allocations: 256.5 kB / 1.331 GB, free: 8.938 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.573e-05/0.3674, allocations: 31.73 kB / 1.331 GB, free: 8.906 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.3675, allocations: 57.64 kB / 1.331 GB, free: 8.844 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002052/0.3677, allocations: 374.7 kB / 1.331 GB, free: 8.469 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.3678, allocations: 87.95 kB / 1.331 GB, free: 8.383 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.368, allocations: 117.1 kB / 1.331 GB, free: 8.258 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.3683, allocations: 127.3 kB / 1.331 GB, free: 8.129 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3683, allocations: 0 / 1.331 GB, free: 8.129 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004877/0.3688, allocations: 278.7 kB / 1.332 GB, free: 7.852 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3688, allocations: 4 kB / 1.332 GB, free: 7.848 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.3688, allocations: 0 / 1.332 GB, free: 7.848 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.3688, allocations: 4 kB / 1.332 GB, free: 7.844 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.369, allocations: 43.91 kB / 1.332 GB, free: 7.801 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.369, allocations: 0 / 1.332 GB, free: 7.801 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001918/0.3692, allocations: 27.88 kB / 1.332 GB, free: 7.773 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.3692, allocations: 11.98 kB / 1.332 GB, free: 7.762 MB / 1.029 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.0002462/0.3695, allocations: 205.8 kB / 1.332 GB, free: 7.551 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.3695, allocations: 59.61 kB / 1.332 GB, free: 7.492 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.3697, allocations: 56.78 kB / 1.332 GB, free: 7.43 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.3697, allocations: 4 kB / 1.332 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.3697, allocations: 3.984 kB / 1.332 GB, free: 7.422 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3697, allocations: 0 / 1.332 GB, free: 7.422 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004073/0.3701, allocations: 381.4 kB / 1.333 GB, free: 7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3701, allocations: 3.938 kB / 1.333 GB, free: 6.996 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.099e-05/0.3701, allocations: 11.94 kB / 1.333 GB, free: 6.984 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3702, allocations: 4 kB / 1.333 GB, free: 6.98 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.3702, allocations: 3.984 kB / 1.333 GB, free: 6.977 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.782e-06/0.3702, allocations: 7.984 kB / 1.333 GB, free: 6.969 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3702, allocations: 0 / 1.333 GB, free: 6.969 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004946/0.3707, allocations: 264.6 kB / 1.333 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.3708, allocations: 136.7 kB / 1.333 GB, free: 6.539 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.74e-05/0.3708, allocations: 4 kB / 1.333 GB, free: 6.535 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.371, allocations: 20.05 kB / 1.333 GB, free: 6.516 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.3711, allocations: 23.91 kB / 1.333 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.3711, allocations: 4 kB / 1.333 GB, free: 6.488 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000533/0.3716, allocations: 451 kB / 1.333 GB, free: 6.055 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3716, allocations: 0 / 1.333 GB, free: 6.055 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003031/0.3719, allocations: 55.94 kB / 1.333 GB, free: 6 MB / 1.029 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.002193/0.3741, allocations: 1.113 MB / 1.335 GB, free: 5.016 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000338/0.3744, allocations: 155.8 kB / 1.335 GB, free: 4.863 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3744, allocations: 0 / 1.335 GB, free: 4.863 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.3746, allocations: 51.92 kB / 1.335 GB, free: 4.812 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004346/0.375, allocations: 71.91 kB / 1.335 GB, free: 4.746 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.3799, allocations: 3.847 MB / 1.339 GB, free: 0.8086 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005084/0.3804, allocations: 0.8608 MB / 1.339 GB, free: 15.93 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001341/0.3805, allocations: 42.27 kB / 1.339 GB, free: 15.88 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.3807, allocations: 159.4 kB / 1.34 GB, free: 15.73 MB / 1.045 GB Notification: Performance of SimCode: time 6.31e-07/0.3807, allocations: 0 / 1.34 GB, free: 15.73 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07746/0.4582, allocations: 9.356 MB / 1.349 GB, free: 6.484 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.025/9.483, allocations: 0 / 1.349 GB, free: 6.484 MB / 1.045 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower_fmu --startTime=0 --stopTime=1800 --stepSize=0.72 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.692191099049523]