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 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.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.001408/0.001408, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00162/0.00162, allocations: 193.5 kB / 16.14 MB, free: 6.699 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.24/1.24, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.418/2.418, allocations: 461.8 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 73.11 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.254, allocations: 157.4 MB / 1.052 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.00347/0.2575, allocations: 2.489 MB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.2594, allocations: 1.483 MB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.2595, allocations: 7.938 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005294/0.2601, allocations: 219.5 kB / 1.056 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.2603, allocations: 135.5 kB / 1.056 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.2607, allocations: 163.7 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.261, allocations: 330.8 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.2612, allocations: 84.7 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.2613, allocations: 127.4 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.2615, allocations: 147.2 kB / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.716e-05/0.2615, allocations: 8 kB / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.2617, allocations: 59.95 kB / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.2618, allocations: 115.5 kB / 1.057 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.2619, allocations: 178.6 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003935/0.2623, allocations: 482.1 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2623, allocations: 0 / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.81e-07/0.2623, allocations: 0 / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.2624, allocations: 4 kB / 1.058 GB, free: 2.152 MB / 0.8106 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.001028/0.2634, allocations: 0.8046 MB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2634, allocations: 15.91 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/0.2635, allocations: 42.75 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.597e-05/0.2636, allocations: 60.19 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.264, allocations: 427.8 kB / 1.059 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.264, allocations: 20.11 kB / 1.059 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.2641, allocations: 16 kB / 1.059 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.2643, allocations: 129.6 kB / 1.06 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.2643, allocations: 0 / 1.06 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.2644, allocations: 8 kB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2644, allocations: 0 / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.2645, allocations: 79.97 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009029/0.2655, allocations: 0.6522 MB / 1.06 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.2658, allocations: 134.7 kB / 1.06 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.629e-05/0.2659, allocations: 44.84 kB / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.2659, allocations: 0 / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001818/0.2661, allocations: 107.3 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 2.625e-06/0.2661, allocations: 11.88 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0004057/0.2666, allocations: 205.3 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.2666, allocations: 55.39 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006258/0.2672, allocations: 0.6476 MB / 1.061 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.2673, allocations: 33.7 kB / 1.061 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.2674, allocations: 252.4 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.292e-05/0.2675, allocations: 39.53 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.978e-05/0.2676, allocations: 53.61 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2677, allocations: 378.7 kB / 1.062 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.2679, allocations: 79.97 kB / 1.062 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.268, allocations: 117.3 kB / 1.062 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.2682, allocations: 127.7 kB / 1.062 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.2683, allocations: 4 kB / 1.062 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003831/0.2686, allocations: 275.5 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.2687, allocations: 5.25 kB / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2687, allocations: 0 / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2687, allocations: 4 kB / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.2689, allocations: 35.92 kB / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2689, allocations: 0 / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.269, allocations: 35.81 kB / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.2691, allocations: 4 kB / 1.063 GB, free: 13.05 MB / 0.8262 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.000198/0.2693, allocations: 213.7 kB / 1.063 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.2693, allocations: 51.34 kB / 1.063 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.018e-05/0.2694, allocations: 56.66 kB / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2694, allocations: 0 / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2694, allocations: 4 kB / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2695, allocations: 0 / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.2698, allocations: 373.3 kB / 1.063 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2698, allocations: 3.938 kB / 1.063 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.426e-05/0.2698, allocations: 8 kB / 1.063 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.2699, allocations: 11.98 kB / 1.063 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.2699, allocations: 0 / 1.063 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2699, allocations: 0 / 1.063 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2699, allocations: 0 / 1.063 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.2703, allocations: 272.3 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.15e-05/0.2704, allocations: 124.5 kB / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.2705, allocations: 0 / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.2706, allocations: 20.05 kB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.471e-05/0.2707, allocations: 31.89 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.2707, allocations: 4 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004225/0.2711, allocations: 430.8 kB / 1.064 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2711, allocations: 0 / 1.064 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002718/0.2714, allocations: 63.88 kB / 1.064 GB, free: 11.33 MB / 0.8262 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.001407/0.2728, allocations: 1.1 MB / 1.065 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002984/0.2731, allocations: 159.8 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2731, allocations: 0 / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.2732, allocations: 63.84 kB / 1.066 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.2736, allocations: 74.95 kB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004295/0.2779, allocations: 3.985 MB / 1.07 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.2783, allocations: 0.8575 MB / 1.07 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001147/0.2785, allocations: 46.25 kB / 1.071 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.2787, allocations: 159.4 kB / 1.071 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.2787, allocations: 0 / 1.071 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.2969, allocations: 8.676 MB / 1.079 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000223/0.2972, allocations: 254.8 kB / 1.079 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.214, allocations: 4.062 kB / 1.079 GB, free: 12.14 MB / 0.8419 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 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.mat","/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