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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001155/0.001155, 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.001243/0.001243, allocations: 198.1 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.622/2.622, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 63.89 kB / 0.8686 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6551/0.6564, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1785/0.8349, allocations: 159.1 MB / 1.172 GB, free: 3.109 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002011/0.837, allocations: 0.9732 MB / 1.173 GB, free: 2.137 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000396/0.8374, allocations: 7.938 kB / 1.173 GB, free: 2.129 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0006458/0.8381, allocations: 127.2 kB / 1.173 GB, free: 2.004 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001548/0.8397, allocations: 0.6109 MB / 1.174 GB, free: 1.391 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006196/0.8403, allocations: 191.5 kB / 1.174 GB, free: 1.207 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0008728/0.8412, allocations: 0.741 MB / 1.175 GB, free: 472 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003888/0.8416, allocations: 160.2 kB / 1.175 GB, free: 312 kB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005433/0.8422, allocations: 215 kB / 1.175 GB, free: 96 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.8425, allocations: 171.3 kB / 1.175 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.8425, allocations: 12 kB / 1.175 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009989/0.8435, allocations: 0.6312 MB / 1.176 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.8437, allocations: 79.77 kB / 1.176 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.8438, allocations: 111.4 kB / 1.176 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007409/0.8446, allocations: 0.5102 MB / 1.176 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.8446, allocations: 0 / 1.176 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.42e-07/0.8446, allocations: 0 / 1.176 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.685e-06/0.8446, allocations: 0 / 1.176 GB, free: 14.58 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.001444/0.846, allocations: 0.5941 MB / 1.177 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.8461, allocations: 12.03 kB / 1.177 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.321e-05/0.8462, allocations: 58.55 kB / 1.177 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002602/0.8464, allocations: 43.69 kB / 1.177 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.8468, allocations: 282.3 kB / 1.177 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.8468, allocations: 12.33 kB / 1.177 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.8468, allocations: 16 kB / 1.177 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.8473, allocations: 243.1 kB / 1.178 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.8473, allocations: 0 / 1.178 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.8474, allocations: 8 kB / 1.178 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.8474, allocations: 8 kB / 1.178 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006444/0.848, allocations: 259.6 kB / 1.178 GB, free: 12.96 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.001261/0.8493, allocations: 0.8316 MB / 1.179 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.8496, allocations: 146.5 kB / 1.179 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.8499, allocations: 112.9 kB / 1.179 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002705/0.8502, allocations: 194.1 kB / 1.179 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.8502, allocations: 38.5 kB / 1.179 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.8502, allocations: 0 / 1.179 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0008289/0.8511, allocations: 298.4 kB / 1.18 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.8511, allocations: 55.41 kB / 1.18 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.8513, allocations: 241 kB / 1.18 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.8514, allocations: 33.7 kB / 1.18 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.699e-05/0.8514, allocations: 128.3 kB / 1.18 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.8515, allocations: 51.3 kB / 1.18 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.8516, allocations: 41.55 kB / 1.18 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.8517, allocations: 330.8 kB / 1.18 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.8519, allocations: 71.94 kB / 1.18 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.8521, allocations: 104 kB / 1.181 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.8524, allocations: 172.1 kB / 1.181 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.8524, allocations: 0 / 1.181 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004462/0.8529, allocations: 209.3 kB / 1.181 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.8529, allocations: 7.938 kB / 1.181 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.8529, allocations: 3.984 kB / 1.181 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.8529, allocations: 7.938 kB / 1.181 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.8531, allocations: 27.92 kB / 1.181 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.8532, allocations: 8.062 kB / 1.181 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.8533, allocations: 19.83 kB / 1.181 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.8534, allocations: 15.98 kB / 1.181 GB, free: 9.66 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.0001178/0.8535, allocations: 137.8 kB / 1.181 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-05/0.8536, allocations: 31.59 kB / 1.181 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.107e-05/0.8536, allocations: 29.83 kB / 1.181 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.8536, allocations: 4 kB / 1.181 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.8537, allocations: 4 kB / 1.181 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.8537, allocations: 0 / 1.181 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009899/0.8547, allocations: 0.6795 MB / 1.182 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.8547, allocations: 0 / 1.182 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.8548, allocations: 31.97 kB / 1.182 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.8549, allocations: 7.938 kB / 1.182 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.8549, allocations: 8 kB / 1.182 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.8549, allocations: 4 kB / 1.182 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.8549, allocations: 4 kB / 1.182 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004767/0.8554, allocations: 354.8 kB / 1.182 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.8555, allocations: 116.8 kB / 1.182 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.8555, allocations: 4 kB / 1.182 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.8557, allocations: 15.98 kB / 1.182 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.8558, allocations: 7.938 kB / 1.182 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.8558, allocations: 11.98 kB / 1.182 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001481/0.8559, allocations: 180.5 kB / 1.183 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.856, allocations: 0 / 1.183 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003592/0.8563, allocations: 67.83 kB / 1.183 GB, free: 7.836 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.0009452/0.8573, allocations: 0.9334 MB / 1.184 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004446/0.8577, allocations: 179.8 kB / 1.184 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.8577, allocations: 0 / 1.184 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.858, allocations: 95.81 kB / 1.184 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000727/0.8587, allocations: 114.6 kB / 1.184 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.8617, allocations: 2.515 MB / 1.186 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.8621, allocations: 0.7521 MB / 1.187 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0002338/0.8623, allocations: 61.91 kB / 1.187 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.8624, allocations: 67.41 kB / 1.187 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.8624, allocations: 0 / 1.187 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.679/1.541, allocations: 6.547 MB / 1.194 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/1.542, allocations: 252.7 kB / 1.194 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/3.673, allocations: 0 / 1.194 GB, free: 12.3 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