Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.AssertFuelFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",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.001224/0.001224, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001222/0.001222, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.322/1.322, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 390.2 MB / 0.6644 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 63.89 kB / 0.8122 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5283/0.5299, allocations: 140.4 MB / 0.9492 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow): time 0.002587/0.5325, allocations: 2.31 MB / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.534, allocations: 1.415 MB / 0.9529 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.571e-05/0.5341, allocations: 2.25 kB / 0.9529 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004519/0.5345, allocations: 184.6 kB / 0.9531 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002555/0.5348, allocations: 125.1 kB / 0.9532 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.5351, allocations: 140.7 kB / 0.9533 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000241/0.5353, allocations: 272.3 kB / 0.9536 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.5355, allocations: 58.61 kB / 0.9536 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.5356, allocations: 107 kB / 0.9537 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.5357, allocations: 116.9 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.5358, allocations: 13.31 kB / 0.9539 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.5359, allocations: 60.11 kB / 0.9539 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.869e-05/0.536, allocations: 102.5 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.314e-05/0.536, allocations: 141.1 kB / 0.9541 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002808/0.5363, allocations: 392.3 kB / 0.9545 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.5363, allocations: 1.406 kB / 0.9545 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5363, allocations: 0 / 0.9545 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.5364, allocations: 4 kB / 0.9545 GB, free: 5.086 MB / 0.7169 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.0007538/0.5371, allocations: 0.6966 MB / 0.9552 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.5372, allocations: 9.25 kB / 0.9552 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.151e-05/0.5372, allocations: 41.92 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.163e-05/0.5373, allocations: 45.59 kB / 0.9553 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.5376, allocations: 412.9 kB / 0.9557 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.5376, allocations: 11.78 kB / 0.9557 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.5377, allocations: 13.59 kB / 0.9557 GB, free: 4 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.5379, allocations: 90.48 kB / 0.9558 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.5379, allocations: 0 / 0.9558 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.5379, allocations: 5.094 kB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5379, allocations: 2.438 kB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.538, allocations: 50.22 kB / 0.9559 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005599/0.5386, allocations: 0.4923 MB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.5389, allocations: 100.4 kB / 0.9564 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.471e-05/0.539, allocations: 41.41 kB / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.539, allocations: 1.125 kB / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.5391, allocations: 94.12 kB / 0.9566 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.763e-06/0.5391, allocations: 3.984 kB / 0.9566 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.00031/0.5395, allocations: 177.6 kB / 0.9567 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.9e-05/0.5395, allocations: 56.98 kB / 0.9568 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.5399, allocations: 0.4938 MB / 0.9573 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.5399, allocations: 31.08 kB / 0.9573 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.54, allocations: 226.2 kB / 0.9575 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.54, allocations: 27.73 kB / 0.9575 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.187e-05/0.5401, allocations: 48.95 kB / 0.9576 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.963e-05/0.5402, allocations: 359.2 kB / 0.9579 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.181e-05/0.5403, allocations: 46.11 kB / 0.958 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.5404, allocations: 82.23 kB / 0.9581 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.5405, allocations: 109.1 kB / 0.9582 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5405, allocations: 5.281 kB / 0.9582 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002774/0.5408, allocations: 205.6 kB / 0.9584 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.5408, allocations: 4.031 kB / 0.9584 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.5408, allocations: 0.9062 kB / 0.9584 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.5409, allocations: 2.406 kB / 0.9584 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.541, allocations: 32.2 kB / 0.9584 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.541, allocations: 5.344 kB / 0.9584 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.5411, allocations: 27.14 kB / 0.9584 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.5412, allocations: 9.75 kB / 0.9584 GB, free: 1.895 MB / 0.7169 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.0001283/0.5413, allocations: 189.5 kB / 0.9586 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.5414, allocations: 43.69 kB / 0.9587 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.554e-05/0.5414, allocations: 47.34 kB / 0.9587 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5414, allocations: 1.062 kB / 0.9587 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.5414, allocations: 4 kB / 0.9587 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.5414, allocations: 1.094 kB / 0.9587 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.5416, allocations: 320.5 kB / 0.959 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.5416, allocations: 0 / 0.959 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.971e-05/0.5417, allocations: 8.156 kB / 0.959 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.5417, allocations: 0 / 0.959 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.5417, allocations: 9.234 kB / 0.959 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.5417, allocations: 5.188 kB / 0.959 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.5417, allocations: 0 / 0.959 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.542, allocations: 224.3 kB / 0.9592 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.5421, allocations: 114.9 kB / 0.9594 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.774e-05/0.5421, allocations: 5.594 kB / 0.9594 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.493e-05/0.5422, allocations: 8.703 kB / 0.9594 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.5423, allocations: 8.359 kB / 0.9594 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.5423, allocations: 3.375 kB / 0.9594 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002863/0.5426, allocations: 357.2 kB / 0.9597 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5426, allocations: 0 / 0.9597 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002446/0.5428, allocations: 45.44 kB / 0.9598 GB, free: 0.8672 MB / 0.7169 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.001178/0.544, allocations: 1.075 MB / 0.9608 GB, free: 72 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.5443, allocations: 118.5 kB / 0.9609 GB, free: 16 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5443, allocations: 0.9688 kB / 0.9609 GB, free: 16 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.5444, allocations: 42.88 kB / 0.961 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.5448, allocations: 72.16 kB / 0.961 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.548, allocations: 3.262 MB / 0.9642 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.5484, allocations: 0.8233 MB / 0.965 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000108/0.5485, allocations: 37.55 kB / 0.9651 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.5486, allocations: 126.7 kB / 0.9652 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.5486, allocations: 0 / 0.9652 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.096/3.644, allocations: 7.428 MB / 0.9724 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002915/3.645, allocations: 255.6 kB / 0.9727 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.712/6.356, allocations: 0 / 0.9727 GB, free: 8.809 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches