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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.00099/0.0009902, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008251/0.008251, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.277/1.277, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.482/2.482, allocations: 462.6 MB / 0.7364 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 15.75 kB / 0.9029 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2623, allocations: 159.6 MB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1506/0.4129, allocations: 157 MB / 1.212 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.4147, allocations: 0.9524 MB / 1.213 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002695/0.415, allocations: 7.938 kB / 1.213 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004985/0.4155, allocations: 127.2 kB / 1.213 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.4169, allocations: 0.6044 MB / 1.214 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005234/0.4174, allocations: 202.5 kB / 1.214 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007592/0.4182, allocations: 0.7332 MB / 1.215 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.4185, allocations: 160.2 kB / 1.215 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004107/0.419, allocations: 215.1 kB / 1.215 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.4192, allocations: 163.3 kB / 1.215 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.4192, allocations: 8 kB / 1.215 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008936/0.4201, allocations: 0.6428 MB / 1.216 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.423e-05/0.4202, allocations: 75.77 kB / 1.216 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.4204, allocations: 133.1 kB / 1.216 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006738/0.4211, allocations: 0.5024 MB / 1.217 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.4211, allocations: 4 kB / 1.217 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4211, allocations: 0 / 1.217 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.4211, allocations: 0 / 1.217 GB, free: 2.754 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.001283/0.4224, allocations: 0.5572 MB / 1.217 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.4224, allocations: 11.97 kB / 1.217 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.4225, allocations: 50.55 kB / 1.217 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.4227, allocations: 47.69 kB / 1.217 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.423, allocations: 274.3 kB / 1.217 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.4231, allocations: 16.33 kB / 1.217 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.4231, allocations: 16 kB / 1.217 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004846/0.4236, allocations: 247.1 kB / 1.218 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.4236, allocations: 4 kB / 1.218 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.4236, allocations: 7.938 kB / 1.218 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.4237, allocations: 11.98 kB / 1.218 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005835/0.4243, allocations: 263.8 kB / 1.218 GB, free: 1.164 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.001132/0.4254, allocations: 0.8471 MB / 1.219 GB, free: 244 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.4257, allocations: 142.5 kB / 1.219 GB, free: 92 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.4259, allocations: 116.9 kB / 1.219 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002431/0.4262, allocations: 190.2 kB / 1.219 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.4262, allocations: 42.5 kB / 1.219 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 2.595e-06/0.4262, allocations: 0 / 1.219 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0008164/0.4271, allocations: 324.5 kB / 1.22 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.4271, allocations: 55.41 kB / 1.22 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.4273, allocations: 241 kB / 1.22 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.4274, allocations: 29.7 kB / 1.22 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/0.4275, allocations: 132.2 kB / 1.22 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.4275, allocations: 51.3 kB / 1.22 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/0.4275, allocations: 25.66 kB / 1.22 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4276, allocations: 330.8 kB / 1.22 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.4278, allocations: 71.95 kB / 1.22 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.4281, allocations: 110.5 kB / 1.221 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.4284, allocations: 174.4 kB / 1.221 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4284, allocations: 0 / 1.221 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004562/0.4289, allocations: 233.2 kB / 1.221 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.4289, allocations: 7.938 kB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.4289, allocations: 4 kB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.4289, allocations: 0 / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.4291, allocations: 39.97 kB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.4292, allocations: 4 kB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.4293, allocations: 27.83 kB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.4294, allocations: 4 kB / 1.221 GB, free: 13.8 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.0001205/0.4295, allocations: 141.8 kB / 1.221 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.557e-05/0.4296, allocations: 31.59 kB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.185e-05/0.4296, allocations: 33.83 kB / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.4296, allocations: 0 / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4296, allocations: 0 / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.4297, allocations: 3.984 kB / 1.221 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/0.4306, allocations: 0.6874 MB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.4307, allocations: 0 / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.4308, allocations: 36.19 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.4308, allocations: 4 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.4309, allocations: 8 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.4309, allocations: 3.938 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4309, allocations: 7.984 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004937/0.4314, allocations: 365 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.4315, allocations: 112.8 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.4315, allocations: 4 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.4317, allocations: 19.89 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.4317, allocations: 15.92 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.4318, allocations: 4 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001478/0.4319, allocations: 184.5 kB / 1.223 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4319, allocations: 0 / 1.223 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003238/0.4323, allocations: 56 kB / 1.223 GB, free: 11.97 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.0009169/0.4332, allocations: 0.9728 MB / 1.224 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004296/0.4336, allocations: 175.8 kB / 1.224 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4336, allocations: 0 / 1.224 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.4339, allocations: 108.3 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007706/0.4346, allocations: 110.2 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.4375, allocations: 2.558 MB / 1.227 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.4378, allocations: 0.7521 MB / 1.227 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002176/0.4381, allocations: 61.91 kB / 1.227 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.4382, allocations: 67.36 kB / 1.227 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.4382, allocations: 4 kB / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.4543, allocations: 6.415 MB / 1.234 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.4545, allocations: 256.8 kB / 1.234 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.184, allocations: 6.531 kB / 1.234 GB, free: 0.5039 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