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.001323/0.001323, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001384/0.001384, allocations: 194.7 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.371/1.371, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.247/2.247, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5576/0.5589, allocations: 140.4 MB / 0.9492 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1727/0.7316, allocations: 159.1 MB / 1.105 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.7333, allocations: 0.9469 MB / 1.106 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002996/0.7336, allocations: 11.94 kB / 1.106 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005086/0.7341, allocations: 143.2 kB / 1.106 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.7354, allocations: 0.5955 MB / 1.106 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005024/0.7359, allocations: 202.9 kB / 1.106 GB, free: 444 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.7365, allocations: 0.5265 MB / 1.107 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.7368, allocations: 176 kB / 1.107 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.7371, allocations: 239.1 kB / 1.107 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.7373, allocations: 171.3 kB / 1.108 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.7373, allocations: 12 kB / 1.108 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006656/0.738, allocations: 0.5726 MB / 1.108 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/0.7381, allocations: 79.73 kB / 1.108 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 9.909e-05/0.7382, allocations: 111.5 kB / 1.108 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0005753/0.7388, allocations: 0.5103 MB / 1.109 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7388, allocations: 7.984 kB / 1.109 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of FrontEnd: time 7.61e-07/0.7388, allocations: 0 / 1.109 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.7388, allocations: 0 / 1.109 GB, free: 14.04 MB / 0.8731 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.001218/0.74, allocations: 0.5999 MB / 1.109 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.7401, allocations: 8.031 kB / 1.109 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.31e-05/0.7401, allocations: 62.47 kB / 1.109 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.7404, allocations: 43.69 kB / 1.109 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.7407, allocations: 278.3 kB / 1.11 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.7407, allocations: 12.33 kB / 1.11 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.7407, allocations: 12 kB / 1.11 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.7412, allocations: 246.9 kB / 1.11 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.7412, allocations: 0 / 1.11 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.7412, allocations: 4 kB / 1.11 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.7412, allocations: 11.98 kB / 1.11 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.7418, allocations: 251.8 kB / 1.11 GB, free: 12.42 MB / 0.8731 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.001043/0.7428, allocations: 0.8469 MB / 1.111 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.7431, allocations: 142.5 kB / 1.111 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.7433, allocations: 108.9 kB / 1.111 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002265/0.7435, allocations: 194.1 kB / 1.112 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.7436, allocations: 38.5 kB / 1.112 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.7436, allocations: 4 kB / 1.112 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0007221/0.7443, allocations: 293.3 kB / 1.112 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.7443, allocations: 51.41 kB / 1.112 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.7445, allocations: 245 kB / 1.112 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.7446, allocations: 25.7 kB / 1.112 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 7.133e-05/0.7446, allocations: 144.2 kB / 1.112 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.654e-05/0.7447, allocations: 51.28 kB / 1.112 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.417e-05/0.7448, allocations: 37.7 kB / 1.112 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.109e-05/0.7449, allocations: 326.8 kB / 1.113 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.745, allocations: 67.94 kB / 1.113 GB, free: 9.699 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.7452, allocations: 102.5 kB / 1.113 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.7455, allocations: 172.2 kB / 1.113 GB, free: 9.414 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7455, allocations: 0 / 1.113 GB, free: 9.414 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003936/0.7459, allocations: 217.2 kB / 1.113 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.746, allocations: 12 kB / 1.113 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.746, allocations: 0 / 1.113 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.746, allocations: 4 kB / 1.113 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.7462, allocations: 27.98 kB / 1.113 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.7462, allocations: 11.92 kB / 1.113 GB, free: 9.141 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.7463, allocations: 19.83 kB / 1.113 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.7464, allocations: 4 kB / 1.113 GB, free: 9.117 MB / 0.8731 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.0001107/0.7465, allocations: 145.8 kB / 1.113 GB, free: 8.965 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.855e-05/0.7465, allocations: 27.66 kB / 1.113 GB, free: 8.938 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.248e-05/0.7466, allocations: 33.77 kB / 1.113 GB, free: 8.906 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.7466, allocations: 4 kB / 1.113 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.7466, allocations: 0 / 1.113 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.7466, allocations: 0 / 1.113 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009043/0.7476, allocations: 0.6718 MB / 1.114 GB, free: 8.152 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.7476, allocations: 7.938 kB / 1.114 GB, free: 8.145 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001478/0.7477, allocations: 31.97 kB / 1.114 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.7477, allocations: 224 / 1.114 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.7478, allocations: 8 kB / 1.114 GB, free: 8.105 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.7478, allocations: 8.016 kB / 1.114 GB, free: 8.098 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.7478, allocations: 7.922 kB / 1.114 GB, free: 8.09 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004614/0.7482, allocations: 359 kB / 1.115 GB, free: 7.703 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.7483, allocations: 112.8 kB / 1.115 GB, free: 7.574 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.216e-05/0.7484, allocations: 8 kB / 1.115 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.7486, allocations: 11.98 kB / 1.115 GB, free: 7.555 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/0.7486, allocations: 27.86 kB / 1.115 GB, free: 7.527 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.7486, allocations: 4 kB / 1.115 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001405/0.7488, allocations: 180.5 kB / 1.115 GB, free: 7.348 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7488, allocations: 0 / 1.115 GB, free: 7.348 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003148/0.7491, allocations: 59.94 kB / 1.115 GB, free: 7.289 MB / 0.8731 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.0009312/0.75, allocations: 0.9386 MB / 1.116 GB, free: 6.312 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004187/0.7505, allocations: 183.7 kB / 1.116 GB, free: 6.133 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7505, allocations: 0 / 1.116 GB, free: 6.133 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.7507, allocations: 95.81 kB / 1.116 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000661/0.7514, allocations: 119.5 kB / 1.116 GB, free: 5.922 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.7541, allocations: 2.517 MB / 1.119 GB, free: 3.273 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.7544, allocations: 0.7519 MB / 1.119 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002197/0.7546, allocations: 69.89 kB / 1.12 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.7547, allocations: 63.42 kB / 1.12 GB, free: 2.367 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.7547, allocations: 0 / 1.12 GB, free: 2.367 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5227/1.277, allocations: 6.712 MB / 1.126 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002571/1.278, allocations: 249.6 kB / 1.126 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.755, allocations: 3.938 kB / 1.126 GB, free: 11.59 MB / 0.8887 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