Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,fileNamePrefix="Buildings_latest_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.007557/0.007557, allocations: 103.1 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.001739/0.001739, allocations: 200.4 kB / 16.68 MB, free: 5.957 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.509/2.509, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 67.91 kB / 1.054 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8228/0.8243, allocations: 157.4 MB / 1.207 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1573/0.9816, allocations: 161.3 MB / 1.365 GB, free: 11.63 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.9835, allocations: 0.9625 MB / 1.366 GB, free: 10.66 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003742/0.9839, allocations: 7.938 kB / 1.366 GB, free: 10.66 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.0005983/0.9845, allocations: 167 kB / 1.366 GB, free: 10.49 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.001563/0.9861, allocations: 0.634 MB / 1.367 GB, free: 9.855 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006585/0.9868, allocations: 218.7 kB / 1.367 GB, free: 9.645 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.0007232/0.9875, allocations: 0.5226 MB / 1.367 GB, free: 9.121 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003647/0.9879, allocations: 168.2 kB / 1.367 GB, free: 8.957 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004852/0.9884, allocations: 243 kB / 1.368 GB, free: 8.719 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.9887, allocations: 159.3 kB / 1.368 GB, free: 8.562 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.9887, allocations: 12 kB / 1.368 GB, free: 8.551 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009252/0.9896, allocations: 0.5416 MB / 1.368 GB, free: 8.008 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.9898, allocations: 79.78 kB / 1.368 GB, free: 7.93 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.9899, allocations: 115.4 kB / 1.369 GB, free: 7.816 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.000821/0.9907, allocations: 490.6 kB / 1.369 GB, free: 7.336 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.9908, allocations: 0 / 1.369 GB, free: 7.336 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.462e-06/0.9908, allocations: 0 / 1.369 GB, free: 7.336 MB / 1.092 GB Notification: Performance of Transformations before backend: time 8.856e-06/0.9908, allocations: 0 / 1.369 GB, free: 7.336 MB / 1.092 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.001437/0.9922, allocations: 0.6078 MB / 1.37 GB, free: 6.68 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.9923, allocations: 11.97 kB / 1.37 GB, free: 6.668 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.904e-05/0.9923, allocations: 58.42 kB / 1.37 GB, free: 6.602 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.9926, allocations: 47.69 kB / 1.37 GB, free: 6.555 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.9931, allocations: 290.3 kB / 1.37 GB, free: 6.23 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.9931, allocations: 16.31 kB / 1.37 GB, free: 6.215 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.9931, allocations: 16 kB / 1.37 GB, free: 6.199 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/0.9936, allocations: 238.9 kB / 1.37 GB, free: 5.961 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.9937, allocations: 0 / 1.37 GB, free: 5.961 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.9937, allocations: 4 kB / 1.37 GB, free: 5.957 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.9937, allocations: 11.98 kB / 1.37 GB, free: 5.945 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005469/0.9943, allocations: 263.6 kB / 1.371 GB, free: 5.688 MB / 1.092 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.001249/0.9955, allocations: 0.82 MB / 1.371 GB, free: 4.793 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.9958, allocations: 150.5 kB / 1.371 GB, free: 4.637 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.996, allocations: 104.8 kB / 1.372 GB, free: 4.531 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002583/0.9963, allocations: 190.2 kB / 1.372 GB, free: 4.309 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.9963, allocations: 42.5 kB / 1.372 GB, free: 4.258 MB / 1.092 GB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.9964, allocations: 0 / 1.372 GB, free: 4.258 MB / 1.092 GB Notification: Performance of matching and sorting (n=14): time 0.0008143/0.9972, allocations: 304.9 kB / 1.372 GB, free: 3.957 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.9972, allocations: 51.41 kB / 1.372 GB, free: 3.895 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.9974, allocations: 245 kB / 1.372 GB, free: 3.641 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.9975, allocations: 25.7 kB / 1.372 GB, free: 3.609 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 9.174e-05/0.9976, allocations: 144.2 kB / 1.373 GB, free: 3.465 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.9976, allocations: 47.3 kB / 1.373 GB, free: 3.418 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.9977, allocations: 33.7 kB / 1.373 GB, free: 3.379 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.9978, allocations: 334.8 kB / 1.373 GB, free: 3.043 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.998, allocations: 63.95 kB / 1.373 GB, free: 2.98 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.9982, allocations: 102.5 kB / 1.373 GB, free: 2.871 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.9986, allocations: 166.4 kB / 1.373 GB, free: 2.699 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.9986, allocations: 7.938 kB / 1.373 GB, free: 2.691 MB / 1.092 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004566/0.999, allocations: 217.2 kB / 1.373 GB, free: 2.473 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.9991, allocations: 12 kB / 1.373 GB, free: 2.461 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.9991, allocations: 0 / 1.373 GB, free: 2.461 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.9991, allocations: 4 kB / 1.373 GB, free: 2.457 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.9993, allocations: 31.97 kB / 1.373 GB, free: 2.426 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.9993, allocations: 4 kB / 1.373 GB, free: 2.422 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.9995, allocations: 23.83 kB / 1.374 GB, free: 2.398 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.9995, allocations: 7.938 kB / 1.374 GB, free: 2.391 MB / 1.092 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.0001297/0.9996, allocations: 141.8 kB / 1.374 GB, free: 2.242 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.785e-05/0.9997, allocations: 23.75 kB / 1.374 GB, free: 2.219 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.14e-05/0.9998, allocations: 37.77 kB / 1.374 GB, free: 2.188 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.9998, allocations: 0 / 1.374 GB, free: 2.188 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9998, allocations: 0 / 1.374 GB, free: 2.188 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.9998, allocations: 0 / 1.374 GB, free: 2.188 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009812/1.001, allocations: 0.6756 MB / 1.374 GB, free: 1.434 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/1.001, allocations: 4 kB / 1.374 GB, free: 1.43 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/1.001, allocations: 35.91 kB / 1.374 GB, free: 1.395 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/1.001, allocations: 4.047 kB / 1.374 GB, free: 1.391 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/1.001, allocations: 8.203 kB / 1.374 GB, free: 1.383 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/1.001, allocations: 4 kB / 1.374 GB, free: 1.379 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.001, allocations: 4 kB / 1.374 GB, free: 1.375 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004616/1.001, allocations: 353 kB / 1.375 GB, free: 0.9922 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/1.002, allocations: 112.9 kB / 1.375 GB, free: 0.8633 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/1.002, allocations: 8 kB / 1.375 GB, free: 0.8555 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/1.002, allocations: 7.984 kB / 1.375 GB, free: 0.8477 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.927e-05/1.002, allocations: 23.86 kB / 1.375 GB, free: 0.8242 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/1.002, allocations: 8 kB / 1.375 GB, free: 0.8164 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0001356/1.002, allocations: 180.5 kB / 1.375 GB, free: 0.6406 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.1e-07/1.002, allocations: 0 / 1.375 GB, free: 0.6406 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0003427/1.002, allocations: 63.84 kB / 1.375 GB, free: 0.5781 MB / 1.092 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.001048/1.003, allocations: 0.9377 MB / 1.376 GB, free: 15.6 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.0004456/1.004, allocations: 175.8 kB / 1.376 GB, free: 15.43 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.004, allocations: 0 / 1.376 GB, free: 15.43 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0002088/1.004, allocations: 103.8 kB / 1.376 GB, free: 15.33 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007239/1.005, allocations: 120.8 kB / 1.376 GB, free: 15.21 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003062/1.008, allocations: 2.466 MB / 1.379 GB, free: 12.62 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/1.008, allocations: 0.7519 MB / 1.38 GB, free: 11.84 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0002108/1.008, allocations: 61.89 kB / 1.38 GB, free: 11.78 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/1.009, allocations: 67.41 kB / 1.38 GB, free: 11.71 MB / 1.107 GB Notification: Performance of SimCode: time 8.72e-07/1.009, allocations: 4 kB / 1.38 GB, free: 11.71 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/1.034, allocations: 7.013 MB / 1.387 GB, free: 4.879 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/8.636, allocations: 13.31 kB / 1.387 GB, free: 4.871 MB / 1.107 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_FixedResistances_Validation_LosslessPipe.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_LosslessPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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