Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.FixedResistances.Validation.LosslessPipe,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Validation_LosslessPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,fileNamePrefix="Buildings_9_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.007985/0.007985, allocations: 103 kB / 15.73 MB, free: 6.035 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.001709/0.001709, allocations: 190 kB / 16.67 MB, free: 5.965 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.467/2.467, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 67.77 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3262, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1917/0.518, allocations: 161.3 MB / 1.245 GB, free: 68 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002317/0.5204, allocations: 0.9642 MB / 1.246 GB, free: 15.1 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003613/0.5207, allocations: 7.938 kB / 1.246 GB, free: 15.09 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0006534/0.5214, allocations: 159 kB / 1.246 GB, free: 14.94 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.5233, allocations: 0.6302 MB / 1.247 GB, free: 14.3 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007257/0.524, allocations: 217.2 kB / 1.247 GB, free: 14.1 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0008004/0.5248, allocations: 0.5304 MB / 1.247 GB, free: 13.57 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004142/0.5252, allocations: 168.2 kB / 1.248 GB, free: 13.4 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005392/0.5258, allocations: 239 kB / 1.248 GB, free: 13.16 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.5261, allocations: 159.3 kB / 1.248 GB, free: 13.01 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.104e-05/0.5262, allocations: 16 kB / 1.248 GB, free: 12.99 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.5272, allocations: 0.5377 MB / 1.249 GB, free: 12.45 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.5274, allocations: 83.78 kB / 1.249 GB, free: 12.37 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.5275, allocations: 111.4 kB / 1.249 GB, free: 12.26 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0008983/0.5284, allocations: 499.5 kB / 1.249 GB, free: 11.77 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.5284, allocations: 0 / 1.249 GB, free: 11.77 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5285, allocations: 0 / 1.249 GB, free: 11.77 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.5285, allocations: 0 / 1.249 GB, free: 11.77 MB / 1.014 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.001759/0.5302, allocations: 0.5961 MB / 1.25 GB, free: 11.13 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.5303, allocations: 12.03 kB / 1.25 GB, free: 11.12 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.15e-05/0.5304, allocations: 54.48 kB / 1.25 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.5307, allocations: 51.67 kB / 1.25 GB, free: 11 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.5312, allocations: 286.4 kB / 1.25 GB, free: 10.68 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.5312, allocations: 8.328 kB / 1.25 GB, free: 10.68 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.5313, allocations: 20 kB / 1.25 GB, free: 10.66 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.5318, allocations: 239.1 kB / 1.25 GB, free: 10.42 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.5318, allocations: 7.938 kB / 1.25 GB, free: 10.41 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.5319, allocations: 8 kB / 1.25 GB, free: 10.4 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.5319, allocations: 11.98 kB / 1.25 GB, free: 10.39 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006128/0.5325, allocations: 247.8 kB / 1.251 GB, free: 10.15 MB / 1.014 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.001639/0.5342, allocations: 0.8353 MB / 1.251 GB, free: 9.238 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003619/0.5346, allocations: 142.4 kB / 1.252 GB, free: 9.09 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.5348, allocations: 116.9 kB / 1.252 GB, free: 8.973 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003028/0.5351, allocations: 190.2 kB / 1.252 GB, free: 8.75 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.5351, allocations: 42.5 kB / 1.252 GB, free: 8.699 MB / 1.014 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.5351, allocations: 3.938 kB / 1.252 GB, free: 8.695 MB / 1.014 GB Notification: Performance of matching and sorting (n=14): time 0.0008846/0.536, allocations: 301.2 kB / 1.252 GB, free: 8.395 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.5361, allocations: 59.41 kB / 1.252 GB, free: 8.324 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.5364, allocations: 241 kB / 1.253 GB, free: 8.082 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.5364, allocations: 29.7 kB / 1.253 GB, free: 8.047 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.5366, allocations: 132.3 kB / 1.253 GB, free: 7.914 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.5366, allocations: 47.3 kB / 1.253 GB, free: 7.867 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.635e-05/0.5367, allocations: 33.7 kB / 1.253 GB, free: 7.828 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5369, allocations: 330.8 kB / 1.253 GB, free: 7.496 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.5371, allocations: 71.94 kB / 1.253 GB, free: 7.426 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.5373, allocations: 106.5 kB / 1.253 GB, free: 7.312 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.5377, allocations: 170.4 kB / 1.253 GB, free: 7.137 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.5377, allocations: 4 kB / 1.253 GB, free: 7.133 MB / 1.014 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000467/0.5382, allocations: 212.6 kB / 1.254 GB, free: 6.922 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.5382, allocations: 7.938 kB / 1.254 GB, free: 6.914 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5382, allocations: 7.984 kB / 1.254 GB, free: 6.906 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.5382, allocations: 0 / 1.254 GB, free: 6.906 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.5384, allocations: 27.98 kB / 1.254 GB, free: 6.879 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.5384, allocations: 0 / 1.254 GB, free: 6.879 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.5386, allocations: 31.8 kB / 1.254 GB, free: 6.848 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.5387, allocations: 4 kB / 1.254 GB, free: 6.844 MB / 1.014 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.0001851/0.5389, allocations: 146.3 kB / 1.254 GB, free: 6.691 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.218e-05/0.5389, allocations: 23.75 kB / 1.254 GB, free: 6.668 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.53e-05/0.539, allocations: 29.83 kB / 1.254 GB, free: 6.641 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.539, allocations: 4 kB / 1.254 GB, free: 6.637 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.539, allocations: 0 / 1.254 GB, free: 6.637 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.539, allocations: 0 / 1.254 GB, free: 6.637 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.5402, allocations: 0.6756 MB / 1.255 GB, free: 5.883 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5402, allocations: 224 / 1.255 GB, free: 5.883 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.5404, allocations: 39.86 kB / 1.255 GB, free: 5.844 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5404, allocations: 0 / 1.255 GB, free: 5.844 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.5404, allocations: 11.98 kB / 1.255 GB, free: 5.832 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.5404, allocations: 4 kB / 1.255 GB, free: 5.828 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5404, allocations: 0 / 1.255 GB, free: 5.828 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/0.541, allocations: 353.1 kB / 1.255 GB, free: 5.445 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.5411, allocations: 116.8 kB / 1.255 GB, free: 5.312 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.5412, allocations: 7.984 kB / 1.255 GB, free: 5.305 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.5414, allocations: 12 kB / 1.255 GB, free: 5.293 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.5414, allocations: 19.86 kB / 1.255 GB, free: 5.273 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.5415, allocations: 4.047 kB / 1.255 GB, free: 5.27 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001818/0.5416, allocations: 180.5 kB / 1.255 GB, free: 5.094 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5417, allocations: 0 / 1.255 GB, free: 5.094 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003607/0.542, allocations: 59.91 kB / 1.255 GB, free: 5.035 MB / 1.014 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.001359/0.5434, allocations: 0.9525 MB / 1.256 GB, free: 4.039 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005003/0.5439, allocations: 171.8 kB / 1.256 GB, free: 3.871 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5439, allocations: 0 / 1.256 GB, free: 3.871 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.5441, allocations: 96.44 kB / 1.257 GB, free: 3.777 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/0.5449, allocations: 117.8 kB / 1.257 GB, free: 3.664 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.5481, allocations: 2.457 MB / 1.259 GB, free: 1.078 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.5486, allocations: 0.7558 MB / 1.26 GB, free: 304 kB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002285/0.5488, allocations: 65.89 kB / 1.26 GB, free: 240 kB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.5489, allocations: 63.41 kB / 1.26 GB, free: 176 kB / 1.014 GB Notification: Performance of SimCode: time 4.8e-07/0.5489, allocations: 0 / 1.26 GB, free: 176 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6782/1.227, allocations: 7.018 MB / 1.267 GB, free: 175.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.837/9.064, allocations: 1.5 kB / 1.267 GB, free: 175.6 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Validation_LosslessPipe_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Validation_LosslessPipe.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Validation_LosslessPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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