Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_FixedResistances_Validation_LosslessPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,fileNamePrefix="Buildings_10_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.001401/0.001401, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.267/1.267, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.577/2.577, allocations: 437.1 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002576/0.002576, allocations: 67.91 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7251/0.7277, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1778/0.9055, allocations: 161.3 MB / 1.175 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00232/0.9079, allocations: 0.968 MB / 1.176 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000371/0.9083, allocations: 11.94 kB / 1.176 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005962/0.909, allocations: 159 kB / 1.176 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001817/0.9108, allocations: 0.634 MB / 1.177 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.9115, allocations: 220.5 kB / 1.177 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006932/0.9122, allocations: 0.5187 MB / 1.177 GB, free: 14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.9127, allocations: 168.2 kB / 1.178 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005275/0.9132, allocations: 235.1 kB / 1.178 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.9135, allocations: 163.3 kB / 1.178 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.955e-05/0.9135, allocations: 16 kB / 1.178 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.9146, allocations: 0.5416 MB / 1.178 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.9147, allocations: 79.8 kB / 1.179 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.9149, allocations: 115.4 kB / 1.179 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009838/0.9159, allocations: 486.6 kB / 1.179 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.9159, allocations: 0 / 1.179 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9159, allocations: 0 / 1.179 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.9159, allocations: 4 kB / 1.179 GB, free: 12.21 MB / 0.9356 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.001657/0.9176, allocations: 0.5961 MB / 1.18 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.9177, allocations: 8.031 kB / 1.18 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.863e-05/0.9178, allocations: 54.55 kB / 1.18 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003186/0.9181, allocations: 43.69 kB / 1.18 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.9185, allocations: 282.3 kB / 1.18 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.9185, allocations: 12.33 kB / 1.18 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.9185, allocations: 16 kB / 1.18 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/0.9191, allocations: 243.1 kB / 1.18 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.9191, allocations: 11.88 kB / 1.18 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.9191, allocations: 4 kB / 1.18 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/0.9191, allocations: 15.98 kB / 1.18 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006838/0.9198, allocations: 251.4 kB / 1.181 GB, free: 10.59 MB / 0.9356 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.001278/0.9211, allocations: 0.8433 MB / 1.181 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.9214, allocations: 142.6 kB / 1.182 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.9217, allocations: 104.8 kB / 1.182 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003127/0.922, allocations: 186.2 kB / 1.182 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.922, allocations: 46.44 kB / 1.182 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.713e-06/0.9221, allocations: 0 / 1.182 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.000897/0.923, allocations: 293.3 kB / 1.182 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.923, allocations: 55.41 kB / 1.182 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.9232, allocations: 245 kB / 1.182 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.9233, allocations: 29.7 kB / 1.182 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.909e-05/0.9234, allocations: 136.2 kB / 1.183 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.9234, allocations: 47.3 kB / 1.183 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.246e-05/0.9235, allocations: 37.7 kB / 1.183 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.9236, allocations: 330.8 kB / 1.183 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.9238, allocations: 63.95 kB / 1.183 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.924, allocations: 111.8 kB / 1.183 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.9244, allocations: 166.5 kB / 1.183 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9244, allocations: 0 / 1.183 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004821/0.9249, allocations: 219 kB / 1.184 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.9249, allocations: 7.938 kB / 1.184 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.925, allocations: 0 / 1.184 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.925, allocations: 4 kB / 1.184 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.9252, allocations: 35.91 kB / 1.184 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.9252, allocations: 4 kB / 1.184 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.9254, allocations: 19.83 kB / 1.184 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.9254, allocations: 8 kB / 1.184 GB, free: 7.301 MB / 0.9356 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.0001443/0.9256, allocations: 147.4 kB / 1.184 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.9256, allocations: 23.66 kB / 1.184 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.039e-05/0.9257, allocations: 33.83 kB / 1.184 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.9257, allocations: 3.938 kB / 1.184 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.9258, allocations: 3.938 kB / 1.184 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.9258, allocations: 4 kB / 1.184 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.9268, allocations: 0.6757 MB / 1.184 GB, free: 6.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.9268, allocations: 4 kB / 1.185 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.927, allocations: 28.19 kB / 1.185 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.927, allocations: 8 kB / 1.185 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.9271, allocations: 4 kB / 1.185 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.9271, allocations: 3.938 kB / 1.185 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.9271, allocations: 4 kB / 1.185 GB, free: 6.277 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005086/0.9276, allocations: 361 kB / 1.185 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.9277, allocations: 116.8 kB / 1.185 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.9277, allocations: 8 kB / 1.185 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.9279, allocations: 7.984 kB / 1.185 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.928, allocations: 23.92 kB / 1.185 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.928, allocations: 4 kB / 1.185 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001709/0.9282, allocations: 180.5 kB / 1.185 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9282, allocations: 0 / 1.185 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003781/0.9286, allocations: 55.94 kB / 1.185 GB, free: 5.477 MB / 0.9356 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.001104/0.9297, allocations: 0.9328 MB / 1.186 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005015/0.9302, allocations: 180.9 kB / 1.186 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.9302, allocations: 0 / 1.186 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.9304, allocations: 104.3 kB / 1.186 GB, free: 4.227 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007442/0.9312, allocations: 127.8 kB / 1.187 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003155/0.9344, allocations: 2.452 MB / 1.189 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.9347, allocations: 0.7558 MB / 1.19 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.000243/0.9349, allocations: 65.89 kB / 1.19 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.9351, allocations: 63.42 kB / 1.19 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of SimCode: time 4e-07/0.9351, allocations: 0 / 1.19 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.9614, allocations: 6.856 MB / 1.197 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.495/8.456, allocations: 18.42 kB / 1.197 GB, free: 9.891 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_FixedResistances_Validation_LosslessPipe_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_FixedResistances_Validation_LosslessPipe.fmu > Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Validation_LosslessPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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