Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.FixedResistances.Validation.LosslessPipe,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe",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.001327/0.001327, 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.001275/0.001275, allocations: 188.5 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.21/1.21, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.566/2.566, allocations: 461.9 MB / 0.7343 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 64.95 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2383, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1445/0.3829, allocations: 159.1 MB / 1.208 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001526/0.3845, allocations: 0.9625 MB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.3846, allocations: 7.938 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004321/0.3851, allocations: 135.2 kB / 1.209 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.3862, allocations: 0.5916 MB / 1.209 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004576/0.3867, allocations: 203.3 kB / 1.21 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000486/0.3872, allocations: 0.5265 MB / 1.21 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.3875, allocations: 172.2 kB / 1.21 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003356/0.3878, allocations: 235.1 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.388, allocations: 175.3 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.388, allocations: 12 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006742/0.3887, allocations: 0.5687 MB / 1.211 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.813e-05/0.3888, allocations: 75.8 kB / 1.211 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.3889, allocations: 123.4 kB / 1.211 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.3895, allocations: 0.5063 MB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3895, allocations: 8 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3895, allocations: 0 / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.3895, allocations: 0 / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001241/0.3908, allocations: 0.5922 MB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3908, allocations: 8.625 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.03e-05/0.3909, allocations: 54.55 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.3911, allocations: 47.59 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.3914, allocations: 274.4 kB / 1.213 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3914, allocations: 16.27 kB / 1.213 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.3915, allocations: 20 kB / 1.213 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/0.3919, allocations: 235.1 kB / 1.213 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3919, allocations: 0 / 1.213 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.392, allocations: 11.98 kB / 1.213 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.384e-05/0.392, allocations: 11.98 kB / 1.213 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005849/0.3926, allocations: 247.8 kB / 1.213 GB, free: 3.023 MB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.3937, allocations: 0.847 MB / 1.214 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.394, allocations: 134.5 kB / 1.214 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.3942, allocations: 112.9 kB / 1.215 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002409/0.3945, allocations: 190.2 kB / 1.215 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.3945, allocations: 46.44 kB / 1.215 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.3945, allocations: 0 / 1.215 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0007624/0.3953, allocations: 300.4 kB / 1.215 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.3954, allocations: 55.41 kB / 1.215 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.3956, allocations: 245 kB / 1.215 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.3956, allocations: 29.7 kB / 1.215 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.3957, allocations: 132.3 kB / 1.215 GB, free: 0.793 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.3957, allocations: 55.2 kB / 1.216 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.3958, allocations: 33.7 kB / 1.216 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3959, allocations: 326.8 kB / 1.216 GB, free: 380 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.3961, allocations: 71.94 kB / 1.216 GB, free: 308 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.3963, allocations: 104.6 kB / 1.216 GB, free: 196 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.3966, allocations: 166.4 kB / 1.216 GB, free: 20 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.3967, allocations: 4 kB / 1.216 GB, free: 16 kB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004394/0.3971, allocations: 217.3 kB / 1.216 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.3971, allocations: 7.938 kB / 1.216 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3971, allocations: 0 / 1.216 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3972, allocations: 4 kB / 1.216 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3973, allocations: 23.98 kB / 1.216 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3974, allocations: 15.86 kB / 1.216 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.3975, allocations: 27.88 kB / 1.216 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.3976, allocations: 12 kB / 1.216 GB, free: 15.71 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001202/0.3977, allocations: 141.8 kB / 1.217 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.637e-05/0.3977, allocations: 27.66 kB / 1.217 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.686e-05/0.3978, allocations: 29.83 kB / 1.217 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3978, allocations: 4 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3978, allocations: 0 / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.3978, allocations: 0 / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009665/0.3988, allocations: 0.6795 MB / 1.217 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3988, allocations: 224 / 1.217 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.399, allocations: 35.97 kB / 1.217 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.399, allocations: 0 / 1.217 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.399, allocations: 8 kB / 1.217 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.399, allocations: 4 kB / 1.217 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.399, allocations: 3.938 kB / 1.217 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004537/0.3995, allocations: 356.1 kB / 1.218 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.175e-05/0.3996, allocations: 120.7 kB / 1.218 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.3996, allocations: 4 kB / 1.218 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.3998, allocations: 19.98 kB / 1.218 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.3999, allocations: 15.86 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.3999, allocations: 4 kB / 1.218 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001371/0.4, allocations: 180.5 kB / 1.218 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4, allocations: 3.938 kB / 1.218 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003201/0.4004, allocations: 59.91 kB / 1.218 GB, free: 13.89 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 0.0008993/0.4013, allocations: 0.94 MB / 1.219 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000423/0.4017, allocations: 175.8 kB / 1.219 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4017, allocations: 0 / 1.219 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.4019, allocations: 108.2 kB / 1.219 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006905/0.4026, allocations: 125.7 kB / 1.219 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.4054, allocations: 2.513 MB / 1.222 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.4057, allocations: 0.7518 MB / 1.223 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002144/0.4059, allocations: 65.89 kB / 1.223 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.406, allocations: 67.42 kB / 1.223 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.406, allocations: 0 / 1.223 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.524/1.93, allocations: 6.703 MB / 1.229 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002434/1.93, allocations: 272.2 kB / 1.23 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.183/4.113, allocations: 0 / 1.23 GB, free: 2.199 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_LosslessPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,res.dp,res.sta_a.T,res.sta_b.T Variables in the result:m_flow.duration,m_flow.height,m_flow.offset,m_flow.startTime,m_flow.y,res.allowFlowReversal,res.dp,res.from_dp,res.m_flow,res.m_flow_nominal,res.m_flow_small,res.port_a.Xi_outflow[1],res.port_a.h_outflow,res.port_a.m_flow,res.port_a.p,res.port_b.Xi_outflow[1],res.port_b.h_outflow,res.port_b.m_flow,res.port_b.p,res.show_T,res.sta_a.T,res.sta_a.X[1],res.sta_a.X[2],res.sta_a.p,res.sta_b.T,res.sta_b.X[1],res.sta_b.X[2],res.sta_b.p,sin.T,sin.X[1],sin.X[2],sin.nPorts,sin.p,sin.ports[1].Xi_outflow[1],sin.ports[1].h_outflow,sin.ports[1].m_flow,sin.ports[1].p,sin.use_C_in,sin.use_T_in,sin.use_X_in,sin.use_Xi_in,sin.use_p_in,sin.verifyInputs,sou.T,sou.X[1],sou.X[2],sou.m_flow,sou.m_flow_in,sou.nPorts,sou.ports[1].Xi_outflow[1],sou.ports[1].h_outflow,sou.ports[1].m_flow,sou.ports[1].p,sou.use_C_in,sou.use_T_in,sou.use_X_in,sou.use_Xi_in,sou.use_m_flow_in,sou.verifyInputs,time