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.00107/0.00107, 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.001126/0.001126, allocations: 198.8 kB / 16.54 MB, free: 6.672 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.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.279/2.279, allocations: 390.3 MB / 0.6647 GB, free: 304 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 64.03 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6269/0.6283, allocations: 140.4 MB / 0.9497 GB, free: 9.391 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.LosslessPipe): time 0.1778/0.8062, allocations: 161.3 MB / 1.107 GB, free: 40 kB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002008/0.8082, allocations: 0.9678 MB / 1.108 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.8085, allocations: 11.94 kB / 1.108 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.8091, allocations: 159 kB / 1.108 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.8106, allocations: 0.634 MB / 1.109 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.8112, allocations: 218.2 kB / 1.109 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0006756/0.8119, allocations: 0.5187 MB / 1.11 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003299/0.8122, allocations: 180 kB / 1.11 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004516/0.8127, allocations: 239.1 kB / 1.11 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.8129, allocations: 151.4 kB / 1.11 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.813, allocations: 16 kB / 1.11 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009515/0.8139, allocations: 0.5378 MB / 1.111 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.8141, allocations: 87.66 kB / 1.111 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.8142, allocations: 111.5 kB / 1.111 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007315/0.8149, allocations: 478.7 kB / 1.111 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.815, allocations: 4 kB / 1.111 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.956e-06/0.815, allocations: 3.984 kB / 1.111 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.815, allocations: 0 / 1.111 GB, free: 11.75 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.001405/0.8164, allocations: 0.6039 MB / 1.112 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.8164, allocations: 12.03 kB / 1.112 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.958e-05/0.8165, allocations: 50.48 kB / 1.112 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002536/0.8168, allocations: 51.69 kB / 1.112 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.8171, allocations: 274.3 kB / 1.112 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.8171, allocations: 12.33 kB / 1.112 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.8172, allocations: 19.98 kB / 1.112 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.8177, allocations: 235.1 kB / 1.113 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.8177, allocations: 4 kB / 1.113 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.8177, allocations: 8 kB / 1.113 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.637e-05/0.8178, allocations: 11.98 kB / 1.113 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006193/0.8184, allocations: 251.8 kB / 1.113 GB, free: 10.13 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.00122/0.8196, allocations: 0.8314 MB / 1.114 GB, free: 9.219 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.8199, allocations: 154.5 kB / 1.114 GB, free: 9.059 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.8202, allocations: 104.8 kB / 1.114 GB, free: 8.953 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002561/0.8204, allocations: 186.2 kB / 1.114 GB, free: 8.734 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.8205, allocations: 42.5 kB / 1.114 GB, free: 8.684 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.8205, allocations: 3.938 kB / 1.114 GB, free: 8.68 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.000811/0.8213, allocations: 299.8 kB / 1.114 GB, free: 8.383 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.8213, allocations: 51.41 kB / 1.115 GB, free: 8.32 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.8215, allocations: 245 kB / 1.115 GB, free: 8.078 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.8216, allocations: 25.7 kB / 1.115 GB, free: 8.047 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.8217, allocations: 144.2 kB / 1.115 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.8217, allocations: 47.28 kB / 1.115 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.525e-05/0.8218, allocations: 41.64 kB / 1.115 GB, free: 7.809 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.8219, allocations: 334.8 kB / 1.115 GB, free: 7.473 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.8221, allocations: 63.95 kB / 1.115 GB, free: 7.41 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.8223, allocations: 106.5 kB / 1.115 GB, free: 7.297 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.8227, allocations: 162.4 kB / 1.116 GB, free: 7.129 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.8227, allocations: 0 / 1.116 GB, free: 7.129 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000441/0.8231, allocations: 217.3 kB / 1.116 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.8231, allocations: 15.94 kB / 1.116 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.8232, allocations: 0 / 1.116 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.8232, allocations: 0 / 1.116 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.8234, allocations: 31.97 kB / 1.116 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.8234, allocations: 0 / 1.116 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.8235, allocations: 23.83 kB / 1.116 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.8236, allocations: 8 kB / 1.116 GB, free: 6.832 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.0001349/0.8237, allocations: 145.8 kB / 1.116 GB, free: 6.68 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.8238, allocations: 27.66 kB / 1.116 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.352e-05/0.8239, allocations: 37.86 kB / 1.116 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.8239, allocations: 0 / 1.116 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.8239, allocations: 0 / 1.116 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.8239, allocations: 0 / 1.116 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009997/0.8249, allocations: 0.6718 MB / 1.117 GB, free: 5.867 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.8249, allocations: 0 / 1.117 GB, free: 5.867 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.8251, allocations: 39.91 kB / 1.117 GB, free: 5.828 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.8251, allocations: 8 kB / 1.117 GB, free: 5.82 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.8251, allocations: 224 / 1.117 GB, free: 5.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.8251, allocations: 8.078 kB / 1.117 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.8251, allocations: 7.984 kB / 1.117 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004829/0.8256, allocations: 354.4 kB / 1.117 GB, free: 5.422 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.908e-05/0.8257, allocations: 120.8 kB / 1.117 GB, free: 5.285 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.8258, allocations: 4 kB / 1.117 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.8259, allocations: 11.98 kB / 1.117 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.826, allocations: 23.86 kB / 1.117 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.826, allocations: 4 kB / 1.117 GB, free: 5.242 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000155/0.8262, allocations: 184.5 kB / 1.118 GB, free: 5.062 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8262, allocations: 0 / 1.118 GB, free: 5.062 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003532/0.8265, allocations: 59.94 kB / 1.118 GB, free: 5.004 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.0009806/0.8275, allocations: 0.9331 MB / 1.118 GB, free: 4.035 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004493/0.828, allocations: 179.8 kB / 1.119 GB, free: 3.859 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.828, allocations: 4 kB / 1.119 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.8282, allocations: 95.8 kB / 1.119 GB, free: 3.762 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007571/0.829, allocations: 130.8 kB / 1.119 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.8321, allocations: 2.458 MB / 1.121 GB, free: 1.047 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.8324, allocations: 0.7597 MB / 1.122 GB, free: 268 kB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002463/0.8327, allocations: 57.91 kB / 1.122 GB, free: 208 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.8328, allocations: 63.42 kB / 1.122 GB, free: 148 kB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.8328, allocations: 0 / 1.122 GB, free: 148 kB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.8598, allocations: 6.861 MB / 1.129 GB, free: 9.43 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.604, allocations: 12.17 kB / 1.129 GB, free: 9.422 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