Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.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.001727/0.001727, allocations: 108.1 kB / 16.45 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.002151/0.002151, allocations: 216.2 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.614/1.614, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.203/3.203, allocations: 0.49 GB / 0.7916 GB, free: 33.4 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.AssertFuelFlow,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",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.002076/0.002076, allocations: 73.11 kB / 1.149 GB, free: 26.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.343, allocations: 176.1 MB / 1.321 GB, free: 3.305 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow): time 0.005851/0.3489, allocations: 2.292 MB / 1.323 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003357/0.3523, allocations: 1.614 MB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000332/0.3526, allocations: 3.938 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.3536, allocations: 187.1 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007517/0.3543, allocations: 171.2 kB / 1.325 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.3549, allocations: 135.6 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005923/0.3555, allocations: 279 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.3557, allocations: 36.73 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.356, allocations: 127.4 kB / 1.326 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.3562, allocations: 119.4 kB / 1.326 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.688e-05/0.3563, allocations: 16 kB / 1.326 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000203/0.3565, allocations: 55.92 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.3566, allocations: 95.66 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.3568, allocations: 154.8 kB / 1.326 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006224/0.3574, allocations: 402 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3574, allocations: 0 / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3574, allocations: 0 / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.3574, allocations: 4 kB / 1.326 GB, free: 13.62 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001285/0.3587, allocations: 0.7305 MB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3588, allocations: 15.92 kB / 1.327 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.086e-05/0.3588, allocations: 42.73 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.3589, allocations: 52.61 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/0.3595, allocations: 412.6 kB / 1.328 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.3596, allocations: 12.12 kB / 1.328 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.733e-05/0.3596, allocations: 19.92 kB / 1.328 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.3598, allocations: 85.66 kB / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3598, allocations: 0 / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.3598, allocations: 4 kB / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.3599, allocations: 4 kB / 1.328 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.36, allocations: 47.97 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009176/0.3609, allocations: 0.5043 MB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003898/0.3613, allocations: 98.72 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.176e-05/0.3614, allocations: 40.77 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.3614, allocations: 0 / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.3616, allocations: 95.31 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.3616, allocations: 0 / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0004492/0.3621, allocations: 181.2 kB / 1.329 GB, free: 11.12 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.3621, allocations: 51.41 kB / 1.329 GB, free: 11.05 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.3628, allocations: 0.5029 MB / 1.329 GB, free: 10.54 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.3628, allocations: 33.7 kB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001985/0.363, allocations: 224.1 kB / 1.329 GB, free: 10.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.363, allocations: 43.72 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.51e-05/0.3631, allocations: 45.7 kB / 1.329 GB, free: 10.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001933/0.3633, allocations: 358.8 kB / 1.33 GB, free: 9.824 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.3634, allocations: 51.98 kB / 1.33 GB, free: 9.773 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.3636, allocations: 84.91 kB / 1.33 GB, free: 9.684 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.3638, allocations: 103.8 kB / 1.33 GB, free: 9.578 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3638, allocations: 4.312 kB / 1.33 GB, free: 9.574 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004199/0.3643, allocations: 211 kB / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.3643, allocations: 8 kB / 1.33 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3643, allocations: 0 / 1.33 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3643, allocations: 3.938 kB / 1.33 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.3645, allocations: 31.98 kB / 1.33 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3645, allocations: 4 kB / 1.33 GB, free: 9.316 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.3646, allocations: 15.94 kB / 1.33 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.3647, allocations: 12.03 kB / 1.33 GB, free: 9.289 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: 7 ($PRE.mFue_flow.tab.nextTimeEvent,$whenCondition1,mFue_flow.tab.nextTimeEventScaled,$PRE.mFue_flow.tab.nextTimeEventScaled,mFue_flow.tab.nextTimeEvent,assFue.hys.y,$PRE.assFue.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0002058/0.3649, allocations: 193.7 kB / 1.331 GB, free: 9.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.703e-05/0.3649, allocations: 47.67 kB / 1.331 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.156e-05/0.365, allocations: 48.05 kB / 1.331 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.365, allocations: 0 / 1.331 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.365, allocations: 3.984 kB / 1.331 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.365, allocations: 4 kB / 1.331 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003275/0.3654, allocations: 309.5 kB / 1.331 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3654, allocations: 4 kB / 1.331 GB, free: 8.625 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.134e-05/0.3654, allocations: 11.98 kB / 1.331 GB, free: 8.613 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3654, allocations: 4 kB / 1.331 GB, free: 8.609 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3655, allocations: 4 kB / 1.331 GB, free: 8.605 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3655, allocations: 3.938 kB / 1.331 GB, free: 8.602 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3655, allocations: 3.938 kB / 1.331 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004151/0.3659, allocations: 220.6 kB / 1.331 GB, free: 8.363 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.366, allocations: 120.8 kB / 1.331 GB, free: 8.227 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.366, allocations: 12.05 kB / 1.331 GB, free: 8.215 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3661, allocations: 7.984 kB / 1.331 GB, free: 8.207 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.3662, allocations: 15.98 kB / 1.331 GB, free: 8.191 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3662, allocations: 4 kB / 1.331 GB, free: 8.188 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004162/0.3666, allocations: 358.8 kB / 1.332 GB, free: 7.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3666, allocations: 0 / 1.332 GB, free: 7.84 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003235/0.3669, allocations: 51.89 kB / 1.332 GB, free: 7.789 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assFue.floChaRat.x) * Number of discrete variables: 4 ($whenCondition1,assFue.hys.y,mFue_flow.tab.nextTimeEvent,mFue_flow.tab.nextTimeEventScaled) * Number of discrete states: 3 (mFue_flow.tab.nextTimeEventScaled,assFue.hys.y,mFue_flow.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.002283/0.3692, allocations: 1.063 MB / 1.333 GB, free: 6.855 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000324/0.3695, allocations: 111.8 kB / 1.333 GB, free: 6.746 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3695, allocations: 0 / 1.333 GB, free: 6.746 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3696, allocations: 39.92 kB / 1.333 GB, free: 6.707 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004342/0.3701, allocations: 69.88 kB / 1.333 GB, free: 6.645 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004341/0.3744, allocations: 3.177 MB / 1.336 GB, free: 3.379 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.3749, allocations: 0.826 MB / 1.337 GB, free: 2.527 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001442/0.375, allocations: 37.92 kB / 1.337 GB, free: 2.488 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.3752, allocations: 131.4 kB / 1.337 GB, free: 2.363 MB / 1.029 GB Notification: Performance of SimCode: time 9.72e-07/0.3752, allocations: 0 / 1.337 GB, free: 2.363 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03483/0.4101, allocations: 7.829 MB / 1.345 GB, free: 10.64 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.56/9.97, allocations: 5.812 kB / 1.345 GB, free: 10.64 MB / 1.045 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow_fmu --startTime=0 --stopTime=1200 --stepSize=0.48 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.fmu > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.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: 17.03623906406574]