Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.0009486/0.0009486, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006165/0.006165, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.144/2.144, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003754, allocations: 16 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6161/0.6165, allocations: 142.4 MB / 0.9552 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002498/0.6191, allocations: 2.137 MB / 0.9573 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002152/0.6213, allocations: 1.523 MB / 0.9588 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.6215, allocations: 2.75 kB / 0.9588 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008222/0.6224, allocations: 312.1 kB / 0.9591 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004244/0.6228, allocations: 194.8 kB / 0.9592 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.6234, allocations: 235.5 kB / 0.9595 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004561/0.6239, allocations: 377.9 kB / 0.9598 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.624, allocations: 73.14 kB / 0.9599 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.6243, allocations: 135.8 kB / 0.96 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000199/0.6245, allocations: 159.9 kB / 0.9602 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.6245, allocations: 5.5 kB / 0.9602 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.6247, allocations: 62.28 kB / 0.9602 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.6248, allocations: 126.4 kB / 0.9604 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.625, allocations: 198.7 kB / 0.9606 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.6254, allocations: 479.1 kB / 0.961 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.6255, allocations: 0 / 0.961 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.967e-06/0.6255, allocations: 1.125 kB / 0.961 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.58e-05/0.6255, allocations: 0 / 0.961 GB, free: 3.363 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009928/0.6265, allocations: 0.7574 MB / 0.9617 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.6265, allocations: 9.125 kB / 0.9618 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.6266, allocations: 46.11 kB / 0.9618 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.6267, allocations: 58.75 kB / 0.9619 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.6272, allocations: 435.7 kB / 0.9623 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.6272, allocations: 9.281 kB / 0.9623 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.6272, allocations: 11.59 kB / 0.9623 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.6275, allocations: 145.4 kB / 0.9624 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.6275, allocations: 0 / 0.9624 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.6275, allocations: 5.375 kB / 0.9624 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.6275, allocations: 6.625 kB / 0.9624 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.6277, allocations: 71.2 kB / 0.9625 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007583/0.6284, allocations: 0.5759 MB / 0.9631 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.6287, allocations: 123.7 kB / 0.9632 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.827e-05/0.6288, allocations: 54.67 kB / 0.9632 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.6289, allocations: 6.469 kB / 0.9633 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.6291, allocations: 110.5 kB / 0.9634 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.6291, allocations: 0 / 0.9634 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004774/0.6296, allocations: 229.9 kB / 0.9636 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.6296, allocations: 83.58 kB / 0.9637 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006911/0.6303, allocations: 0.6901 MB / 0.9643 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.6303, allocations: 37.02 kB / 0.9644 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.6305, allocations: 259.1 kB / 0.9646 GB, free: 500 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.6305, allocations: 38.81 kB / 0.9646 GB, free: 468 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.6305, allocations: 28.67 kB / 0.9647 GB, free: 440 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.092e-05/0.6306, allocations: 375.2 kB / 0.965 GB, free: 72 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.6307, allocations: 69 kB / 0.9651 GB, free: 44 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.6309, allocations: 126 kB / 0.9652 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.6312, allocations: 139.9 kB / 0.9654 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.6312, allocations: 0 / 0.9654 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004412/0.6316, allocations: 265.4 kB / 0.9656 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.6317, allocations: 9.656 kB / 0.9656 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.6317, allocations: 1.281 kB / 0.9656 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.6317, allocations: 1.375 kB / 0.9656 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.6318, allocations: 38.31 kB / 0.9657 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.6319, allocations: 2 kB / 0.9657 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.632, allocations: 29.11 kB / 0.9657 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.6321, allocations: 10.88 kB / 0.9657 GB, free: 15.7 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002153/0.6323, allocations: 210.3 kB / 0.9659 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.14e-05/0.6324, allocations: 64.59 kB / 0.966 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.388e-05/0.6325, allocations: 57.48 kB / 0.966 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.6325, allocations: 1.844 kB / 0.966 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.6325, allocations: 0 / 0.966 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.6325, allocations: 4.906 kB / 0.966 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003441/0.6329, allocations: 369.7 kB / 0.9664 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.6329, allocations: 0 / 0.9664 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.631e-05/0.6329, allocations: 11.2 kB / 0.9664 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.6329, allocations: 0.9375 kB / 0.9664 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.6329, allocations: 6.062 kB / 0.9664 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.6329, allocations: 0 / 0.9664 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.633, allocations: 8.922 kB / 0.9664 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003552/0.6333, allocations: 227.7 kB / 0.9666 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.6334, allocations: 133.9 kB / 0.9667 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.564e-05/0.6335, allocations: 6.031 kB / 0.9667 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.6336, allocations: 17.02 kB / 0.9668 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.492e-05/0.6337, allocations: 23.19 kB / 0.9668 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.6337, allocations: 4.781 kB / 0.9668 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005384/0.6343, allocations: 470 kB / 0.9672 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6343, allocations: 0 / 0.9672 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003265/0.6346, allocations: 68.08 kB / 0.9673 GB, free: 14.52 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001441/0.6361, allocations: 1.087 MB / 0.9684 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003388/0.6364, allocations: 155.3 kB / 0.9685 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6364, allocations: 0 / 0.9685 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.6365, allocations: 56.84 kB / 0.9686 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000496/0.637, allocations: 85.77 kB / 0.9686 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005235/0.6423, allocations: 4.122 MB / 0.9727 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.6427, allocations: 0.8642 MB / 0.9735 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001402/0.6429, allocations: 46.53 kB / 0.9736 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.6431, allocations: 169.6 kB / 0.9737 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.6431, allocations: 0 / 0.9737 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.729/3.372, allocations: 9.14 MB / 0.9826 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/3.372, allocations: 264.6 kB / 0.9829 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.901/6.273, allocations: 0 / 0.9829 GB, free: 2.77 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches