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.007382/0.007382, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001683/0.001683, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.171/2.171, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 71.88 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8025/0.8037, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1802/0.984, allocations: 161.3 MB / 1.245 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00196/0.986, allocations: 0.9646 MB / 1.246 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003446/0.9863, allocations: 9.375 kB / 1.246 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0006175/0.987, allocations: 151.4 kB / 1.246 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001781/0.9888, allocations: 0.6401 MB / 1.247 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006712/0.9895, allocations: 217.4 kB / 1.247 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0007385/0.9903, allocations: 0.5197 MB / 1.247 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003632/0.9906, allocations: 179.5 kB / 1.248 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005223/0.9912, allocations: 226.7 kB / 1.248 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.9914, allocations: 161.4 kB / 1.248 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.9915, allocations: 19.06 kB / 1.248 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009975/0.9925, allocations: 0.5416 MB / 1.249 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.9926, allocations: 83.72 kB / 1.249 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.9928, allocations: 119.3 kB / 1.249 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008137/0.9936, allocations: 490.7 kB / 1.249 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.9936, allocations: 0 / 1.249 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.232e-06/0.9936, allocations: 3.938 kB / 1.249 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.9936, allocations: 0 / 1.249 GB, free: 8.191 MB / 0.9825 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.001472/0.9951, allocations: 0.6038 MB / 1.25 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.9952, allocations: 8.031 kB / 1.25 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.6e-05/0.9952, allocations: 50.55 kB / 1.25 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/0.9955, allocations: 47.69 kB / 1.25 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.9959, allocations: 282.4 kB / 1.25 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.996, allocations: 16.33 kB / 1.25 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.081e-05/0.996, allocations: 16 kB / 1.25 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005133/0.9965, allocations: 239.1 kB / 1.25 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.9966, allocations: 0 / 1.25 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.9966, allocations: 7.984 kB / 1.25 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.9966, allocations: 8 kB / 1.25 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005839/0.9972, allocations: 259.8 kB / 1.251 GB, free: 6.57 MB / 0.9825 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.001252/0.9985, allocations: 0.8352 MB / 1.251 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.9988, allocations: 146.6 kB / 1.252 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.999, allocations: 108.8 kB / 1.252 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002605/0.9993, allocations: 186.2 kB / 1.252 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.9993, allocations: 38.5 kB / 1.252 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.9994, allocations: 4 kB / 1.252 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0008562/1, allocations: 301.2 kB / 1.252 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/1, allocations: 55.39 kB / 1.252 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/1, allocations: 241 kB / 1.253 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/1.001, allocations: 25.7 kB / 1.253 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/1.001, allocations: 144.2 kB / 1.253 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.478e-05/1.001, allocations: 47.3 kB / 1.253 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.884e-05/1.001, allocations: 33.7 kB / 1.253 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000105/1.001, allocations: 334.8 kB / 1.253 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/1.001, allocations: 67.94 kB / 1.253 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/1.001, allocations: 98.52 kB / 1.253 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003676/1.002, allocations: 174 kB / 1.253 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.002, allocations: 0 / 1.253 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004744/1.002, allocations: 213.3 kB / 1.254 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/1.002, allocations: 10.44 kB / 1.254 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/1.002, allocations: 4.062 kB / 1.254 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/1.002, allocations: 11.94 kB / 1.254 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/1.002, allocations: 31.91 kB / 1.254 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/1.002, allocations: 4 kB / 1.254 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/1.003, allocations: 27.73 kB / 1.254 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/1.003, allocations: 4 kB / 1.254 GB, free: 3.27 MB / 0.9825 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.0001286/1.003, allocations: 142.4 kB / 1.254 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/1.003, allocations: 23.75 kB / 1.254 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.601e-05/1.003, allocations: 33.83 kB / 1.254 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/1.003, allocations: 0 / 1.254 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.003, allocations: 0 / 1.254 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/1.003, allocations: 3.984 kB / 1.254 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/1.004, allocations: 0.6794 MB / 1.255 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/1.004, allocations: 4 kB / 1.255 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/1.004, allocations: 31.97 kB / 1.255 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/1.004, allocations: 4 kB / 1.255 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/1.004, allocations: 4 kB / 1.255 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/1.004, allocations: 4.156 kB / 1.255 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.004, allocations: 11.98 kB / 1.255 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004893/1.005, allocations: 353.1 kB / 1.255 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/1.005, allocations: 112.8 kB / 1.255 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/1.005, allocations: 8 kB / 1.255 GB, free: 1.727 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/1.005, allocations: 7.984 kB / 1.255 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/1.005, allocations: 15.92 kB / 1.255 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/1.005, allocations: 12 kB / 1.255 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001515/1.005, allocations: 180.5 kB / 1.255 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.1e-07/1.005, allocations: 0 / 1.255 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003626/1.006, allocations: 59.84 kB / 1.255 GB, free: 1.453 MB / 0.9825 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.0009939/1.007, allocations: 0.9369 MB / 1.256 GB, free: 484 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004554/1.007, allocations: 175.8 kB / 1.256 GB, free: 308 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.007, allocations: 3.938 kB / 1.256 GB, free: 304 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002189/1.007, allocations: 99.81 kB / 1.257 GB, free: 204 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/1.008, allocations: 125.9 kB / 1.257 GB, free: 84 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/1.011, allocations: 2.454 MB / 1.259 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/1.011, allocations: 0.7558 MB / 1.26 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002021/1.012, allocations: 57.91 kB / 1.26 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/1.012, allocations: 67.36 kB / 1.26 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/1.012, allocations: 4 kB / 1.26 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/1.038, allocations: 6.934 MB / 1.267 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.924, allocations: 14.25 kB / 1.267 GB, free: 5.812 MB / 0.9981 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