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.001071/0.001071, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001035/0.001035, allocations: 193 kB / 16.14 MB, free: 6.711 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.385/1.385, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.372/2.372, allocations: 390.2 MB / 0.6643 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 63.91 kB / 0.812 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7271/0.7287, allocations: 140.4 MB / 0.949 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.2088/0.9375, allocations: 159.1 MB / 1.104 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002197/0.9398, allocations: 0.9663 MB / 1.105 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.94, allocations: 11.88 kB / 1.105 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006778/0.9408, allocations: 135.3 kB / 1.105 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.9427, allocations: 0.5954 MB / 1.106 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008358/0.9436, allocations: 199 kB / 1.106 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001019/0.9446, allocations: 0.7411 MB / 1.107 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.945, allocations: 160.2 kB / 1.107 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005839/0.9456, allocations: 215.1 kB / 1.107 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/0.946, allocations: 167.3 kB / 1.107 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.946, allocations: 12 kB / 1.107 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.9473, allocations: 0.639 MB / 1.108 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.9474, allocations: 79.72 kB / 1.108 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.9476, allocations: 107.4 kB / 1.108 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007195/0.9483, allocations: 0.5102 MB / 1.109 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.9483, allocations: 0 / 1.109 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.263e-06/0.9483, allocations: 0 / 1.109 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.9484, allocations: 0 / 1.109 GB, free: 13.95 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.001548/0.9499, allocations: 0.5923 MB / 1.109 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.95, allocations: 12.03 kB / 1.109 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.565e-05/0.95, allocations: 54.47 kB / 1.109 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.9503, allocations: 55.67 kB / 1.109 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.9507, allocations: 274.3 kB / 1.11 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.9507, allocations: 20.33 kB / 1.11 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.9508, allocations: 16 kB / 1.11 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.9513, allocations: 238.9 kB / 1.11 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.9513, allocations: 0 / 1.11 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.9514, allocations: 8 kB / 1.11 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.9514, allocations: 11.94 kB / 1.11 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.9521, allocations: 247.8 kB / 1.11 GB, free: 12.34 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.001486/0.9536, allocations: 0.8392 MB / 1.111 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000435/0.954, allocations: 142.4 kB / 1.111 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.9543, allocations: 112.9 kB / 1.111 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003196/0.9547, allocations: 194.2 kB / 1.112 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.9547, allocations: 34.5 kB / 1.112 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.874e-06/0.9547, allocations: 0 / 1.112 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.001207/0.9559, allocations: 299 kB / 1.112 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.956, allocations: 55.41 kB / 1.112 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.9563, allocations: 241 kB / 1.112 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.9564, allocations: 29.7 kB / 1.112 GB, free: 10.25 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.9565, allocations: 136.2 kB / 1.112 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.504e-05/0.9566, allocations: 55.28 kB / 1.112 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/0.9567, allocations: 33.7 kB / 1.112 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.9568, allocations: 334.8 kB / 1.113 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.9571, allocations: 67.94 kB / 1.113 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003212/0.9575, allocations: 108.8 kB / 1.113 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.9579, allocations: 174.9 kB / 1.113 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.9579, allocations: 0 / 1.113 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004613/0.9584, allocations: 215.8 kB / 1.113 GB, free: 9.113 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.9584, allocations: 7.938 kB / 1.113 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.9584, allocations: 4 kB / 1.113 GB, free: 9.102 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.9585, allocations: 0 / 1.113 GB, free: 9.102 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.9587, allocations: 31.97 kB / 1.113 GB, free: 9.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.9587, allocations: 3.984 kB / 1.113 GB, free: 9.066 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.9589, allocations: 31.83 kB / 1.113 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.9589, allocations: 8.047 kB / 1.113 GB, free: 9.027 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.0001371/0.9591, allocations: 137.8 kB / 1.113 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.9591, allocations: 31.64 kB / 1.113 GB, free: 8.852 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.157e-05/0.9592, allocations: 33.78 kB / 1.114 GB, free: 8.82 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.9592, allocations: 0 / 1.114 GB, free: 8.82 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.9593, allocations: 3.984 kB / 1.114 GB, free: 8.816 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.9593, allocations: 0 / 1.114 GB, free: 8.816 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.9603, allocations: 0.6757 MB / 1.114 GB, free: 8.062 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.9603, allocations: 4.219 kB / 1.114 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.9605, allocations: 31.92 kB / 1.114 GB, free: 8.027 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.9605, allocations: 4 kB / 1.114 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.9606, allocations: 7.984 kB / 1.114 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.9606, allocations: 4 kB / 1.114 GB, free: 8.012 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.9606, allocations: 4 kB / 1.114 GB, free: 8.008 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.9611, allocations: 353 kB / 1.115 GB, free: 7.625 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.9612, allocations: 116.8 kB / 1.115 GB, free: 7.492 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.9613, allocations: 0 / 1.115 GB, free: 7.492 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.9615, allocations: 19.98 kB / 1.115 GB, free: 7.473 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.9615, allocations: 19.86 kB / 1.115 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.9616, allocations: 8 kB / 1.115 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001656/0.9617, allocations: 176.5 kB / 1.115 GB, free: 7.273 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9617, allocations: 0 / 1.115 GB, free: 7.273 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003729/0.9621, allocations: 55.94 kB / 1.115 GB, free: 7.219 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.001091/0.9632, allocations: 0.9526 MB / 1.116 GB, free: 6.227 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004801/0.9637, allocations: 171.8 kB / 1.116 GB, free: 6.059 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.9637, allocations: 0 / 1.116 GB, free: 6.059 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.9639, allocations: 96.19 kB / 1.116 GB, free: 5.965 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.965, allocations: 120.5 kB / 1.116 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.9693, allocations: 2.514 MB / 1.119 GB, free: 3.199 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.9697, allocations: 0.7599 MB / 1.119 GB, free: 2.414 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003046/0.9701, allocations: 61.91 kB / 1.119 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.9702, allocations: 63.42 kB / 1.12 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of SimCode: time 7.61e-07/0.9702, allocations: 0 / 1.12 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/1.001, allocations: 6.545 MB / 1.126 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/1.001, allocations: 247.3 kB / 1.126 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.917, allocations: 0 / 1.126 GB, free: 11.67 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