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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001172/0.001172, allocations: 90.67 kB / 15.36 MB, free: 0.7344 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.01174/0.01174, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.312/1.312, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.173/2.173, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5575/0.5579, allocations: 142.4 MB / 0.9552 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1621/0.72, allocations: 157 MB / 1.109 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001849/0.7219, allocations: 0.9552 MB / 1.109 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004163/0.7223, allocations: 7.938 kB / 1.109 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.723, allocations: 131.2 kB / 1.11 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.7248, allocations: 0.6032 MB / 1.11 GB, free: 56 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00067/0.7255, allocations: 196.5 kB / 1.11 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0009704/0.7265, allocations: 0.7449 MB / 1.111 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.7269, allocations: 160.2 kB / 1.111 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.7275, allocations: 211 kB / 1.111 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.7278, allocations: 167.3 kB / 1.112 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.7279, allocations: 11.94 kB / 1.112 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.729, allocations: 0.6351 MB / 1.112 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.7292, allocations: 79.77 kB / 1.112 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.7294, allocations: 129.2 kB / 1.112 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0009191/0.7303, allocations: 0.5062 MB / 1.113 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.7303, allocations: 0 / 1.113 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.234e-06/0.7303, allocations: 0 / 1.113 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.7303, allocations: 0 / 1.113 GB, free: 13.22 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.001465/0.7318, allocations: 0.5611 MB / 1.113 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.7318, allocations: 12.03 kB / 1.113 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.7319, allocations: 46.55 kB / 1.114 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000281/0.7322, allocations: 51.69 kB / 1.114 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.7326, allocations: 266.4 kB / 1.114 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.7326, allocations: 12.33 kB / 1.114 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.7326, allocations: 20 kB / 1.114 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/0.7331, allocations: 250.9 kB / 1.114 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.7332, allocations: 7.938 kB / 1.114 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.7332, allocations: 4 kB / 1.114 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.7332, allocations: 11.98 kB / 1.114 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005822/0.7338, allocations: 255.8 kB / 1.114 GB, free: 11.64 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.001213/0.735, allocations: 0.8509 MB / 1.115 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.7353, allocations: 146.5 kB / 1.115 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.7356, allocations: 124.8 kB / 1.115 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000238/0.7358, allocations: 190.2 kB / 1.116 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.7358, allocations: 46.44 kB / 1.116 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.7359, allocations: 0 / 1.116 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0007945/0.7367, allocations: 314.9 kB / 1.116 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.7367, allocations: 51.41 kB / 1.116 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.7369, allocations: 241 kB / 1.116 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.7369, allocations: 33.7 kB / 1.116 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.737, allocations: 136.2 kB / 1.116 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.073e-05/0.7371, allocations: 51.3 kB / 1.116 GB, free: 9.312 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.7371, allocations: 13.72 kB / 1.116 GB, free: 9.293 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.7372, allocations: 334.8 kB / 1.117 GB, free: 8.957 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.7374, allocations: 71.95 kB / 1.117 GB, free: 8.887 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.7376, allocations: 112.7 kB / 1.117 GB, free: 8.77 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.738, allocations: 183.5 kB / 1.117 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.738, allocations: 0 / 1.117 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004393/0.7384, allocations: 223 kB / 1.117 GB, free: 8.359 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.7385, allocations: 12 kB / 1.117 GB, free: 8.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.7385, allocations: 0 / 1.117 GB, free: 8.348 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.7385, allocations: 4 kB / 1.117 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.7387, allocations: 35.91 kB / 1.117 GB, free: 8.309 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.7387, allocations: 0 / 1.117 GB, free: 8.309 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.7389, allocations: 31.73 kB / 1.117 GB, free: 8.277 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.7389, allocations: 8 kB / 1.117 GB, free: 8.27 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.0001154/0.739, allocations: 137.8 kB / 1.118 GB, free: 8.125 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.7391, allocations: 23.75 kB / 1.118 GB, free: 8.102 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.292e-05/0.7391, allocations: 29.83 kB / 1.118 GB, free: 8.074 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.7391, allocations: 4 kB / 1.118 GB, free: 8.07 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.7392, allocations: 3.938 kB / 1.118 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.7392, allocations: 3.984 kB / 1.118 GB, free: 8.062 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009516/0.7401, allocations: 0.6873 MB / 1.118 GB, free: 7.297 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.7401, allocations: 7.938 kB / 1.118 GB, free: 7.289 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.7403, allocations: 31.97 kB / 1.118 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.7403, allocations: 4 kB / 1.118 GB, free: 7.254 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.7403, allocations: 7.938 kB / 1.118 GB, free: 7.246 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.7403, allocations: 7.938 kB / 1.118 GB, free: 7.238 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.7403, allocations: 7.984 kB / 1.118 GB, free: 7.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000469/0.7408, allocations: 361.3 kB / 1.119 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-05/0.7409, allocations: 116.8 kB / 1.119 GB, free: 6.707 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.741, allocations: 4 kB / 1.119 GB, free: 6.703 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.7411, allocations: 15.98 kB / 1.119 GB, free: 6.688 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.7412, allocations: 15.92 kB / 1.119 GB, free: 6.672 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.7412, allocations: 8 kB / 1.119 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001429/0.7414, allocations: 180.5 kB / 1.119 GB, free: 6.488 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7414, allocations: 0 / 1.119 GB, free: 6.488 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003293/0.7417, allocations: 59.84 kB / 1.119 GB, free: 6.43 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.0009251/0.7426, allocations: 0.9551 MB / 1.12 GB, free: 5.438 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004272/0.7431, allocations: 179.9 kB / 1.12 GB, free: 5.262 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7431, allocations: 0 / 1.12 GB, free: 5.262 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.7433, allocations: 99.81 kB / 1.12 GB, free: 5.164 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.7441, allocations: 128.7 kB / 1.12 GB, free: 5.035 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.7469, allocations: 2.558 MB / 1.123 GB, free: 2.344 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.7472, allocations: 0.7599 MB / 1.124 GB, free: 1.559 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002216/0.7474, allocations: 57.91 kB / 1.124 GB, free: 1.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.7476, allocations: 63.42 kB / 1.124 GB, free: 1.441 MB / 0.8731 GB Notification: Performance of SimCode: time 3.61e-07/0.7476, allocations: 0 / 1.124 GB, free: 1.441 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.494/2.241, allocations: 6.426 MB / 1.13 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/2.242, allocations: 248.8 kB / 1.13 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/4.369, allocations: 0 / 1.13 GB, free: 10.96 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