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.001738/0.001738, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0019/0.001901, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.658/2.658, allocations: 461.9 MB / 0.7346 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 65.88 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2946, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1582/0.4528, allocations: 161.3 MB / 1.21 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001893/0.4547, allocations: 0.9693 MB / 1.211 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003142/0.4551, allocations: 7.938 kB / 1.211 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005553/0.4557, allocations: 155 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.4573, allocations: 0.6457 MB / 1.212 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.4579, allocations: 215.2 kB / 1.212 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006213/0.4585, allocations: 0.5226 MB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.4589, allocations: 172.2 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004654/0.4594, allocations: 239.1 kB / 1.213 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.4597, allocations: 159.3 kB / 1.213 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.4597, allocations: 16 kB / 1.213 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000991/0.4607, allocations: 0.5377 MB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.4608, allocations: 83.78 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.461, allocations: 107.4 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008726/0.4619, allocations: 490.6 kB / 1.215 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.4619, allocations: 0 / 1.215 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4619, allocations: 0 / 1.215 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.4619, allocations: 0 / 1.215 GB, free: 2.035 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.001535/0.4635, allocations: 0.6001 MB / 1.215 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.4635, allocations: 8.625 kB / 1.215 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.159e-05/0.4636, allocations: 50.55 kB / 1.215 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/0.4639, allocations: 51.59 kB / 1.215 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.4642, allocations: 274.4 kB / 1.216 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.4642, allocations: 12.33 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.4643, allocations: 16 kB / 1.216 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005121/0.4648, allocations: 239.1 kB / 1.216 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.4648, allocations: 7.938 kB / 1.216 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.4649, allocations: 11.94 kB / 1.216 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.4649, allocations: 8 kB / 1.216 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006221/0.4655, allocations: 251.8 kB / 1.216 GB, free: 432 kB / 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.001258/0.4668, allocations: 0.8431 MB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.4671, allocations: 142.5 kB / 1.217 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.4673, allocations: 108.9 kB / 1.217 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002651/0.4676, allocations: 186.2 kB / 1.217 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.4677, allocations: 46.44 kB / 1.217 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.4677, allocations: 0 / 1.217 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0008614/0.4685, allocations: 297.2 kB / 1.218 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.4686, allocations: 51.41 kB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.4688, allocations: 245 kB / 1.218 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.4688, allocations: 29.7 kB / 1.218 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.391e-05/0.4689, allocations: 136.3 kB / 1.218 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.469, allocations: 51.2 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.868e-05/0.4691, allocations: 33.7 kB / 1.218 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.4692, allocations: 330.8 kB / 1.219 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.4694, allocations: 71.94 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.4696, allocations: 106.4 kB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.47, allocations: 162.5 kB / 1.219 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.47, allocations: 4 kB / 1.219 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004553/0.4704, allocations: 211.6 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.4705, allocations: 12 kB / 1.219 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4705, allocations: 4 kB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.4705, allocations: 4 kB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.4707, allocations: 27.92 kB / 1.219 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.4707, allocations: 4 kB / 1.219 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.4709, allocations: 23.88 kB / 1.219 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.4709, allocations: 11.97 kB / 1.219 GB, free: 13.12 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.0001393/0.4711, allocations: 153.7 kB / 1.219 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.4711, allocations: 23.66 kB / 1.219 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.88e-05/0.4712, allocations: 29.83 kB / 1.219 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.4712, allocations: 0 / 1.219 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4712, allocations: 0 / 1.219 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4712, allocations: 7.938 kB / 1.219 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.4722, allocations: 0.6717 MB / 1.22 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4723, allocations: 4 kB / 1.22 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.4724, allocations: 27.97 kB / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.4725, allocations: 4 kB / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.4725, allocations: 8.219 kB / 1.22 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.4725, allocations: 7.938 kB / 1.22 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4725, allocations: 4 kB / 1.22 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004873/0.473, allocations: 353.1 kB / 1.22 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.4731, allocations: 124.7 kB / 1.22 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.4732, allocations: 4 kB / 1.22 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.4733, allocations: 8 kB / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.4734, allocations: 15.92 kB / 1.221 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.4734, allocations: 15.98 kB / 1.221 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001599/0.4736, allocations: 176.5 kB / 1.221 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4736, allocations: 0 / 1.221 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003571/0.4739, allocations: 52 kB / 1.221 GB, free: 11.31 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.001055/0.475, allocations: 0.9382 MB / 1.222 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004704/0.4755, allocations: 179.8 kB / 1.222 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4755, allocations: 0 / 1.222 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002158/0.4757, allocations: 95.81 kB / 1.222 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000784/0.4765, allocations: 131 kB / 1.222 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.4797, allocations: 2.45 MB / 1.224 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.48, allocations: 0.7596 MB / 1.225 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002543/0.4803, allocations: 61.91 kB / 1.225 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.4804, allocations: 63.41 kB / 1.225 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of SimCode: time 4.71e-07/0.4804, allocations: 0 / 1.225 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02484/0.5053, allocations: 6.865 MB / 1.232 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.608/8.114, allocations: 12.55 kB / 1.232 GB, free: 15.75 MB / 0.9981 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