Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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: translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002247/0.002247, allocations: 196.8 kB / 16.26 MB, free: 6.629 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.477/1.477, allocations: 222.9 MB / 239.9 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.863/2.863, allocations: 461.8 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 67.12 kB / 0.8986 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.312, allocations: 157.4 MB / 1.052 GB, free: 8.793 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.938/1.25, allocations: 237 MB / 1.284 GB, free: 20.03 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0128/1.263, allocations: 7.176 MB / 1.291 GB, free: 19.92 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002733/1.266, allocations: 45.44 kB / 1.291 GB, free: 19.92 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002518/1.268, allocations: 0.6118 MB / 1.291 GB, free: 19.91 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006602/1.275, allocations: 1.946 MB / 1.293 GB, free: 19.83 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005555/1.28, allocations: 1.875 MB / 1.295 GB, free: 19.78 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005374/1.286, allocations: 3.278 MB / 1.298 GB, free: 19.77 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001975/1.288, allocations: 1.106 MB / 1.299 GB, free: 19.69 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004287/1.292, allocations: 1.783 MB / 1.301 GB, free: 19.67 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002231/1.294, allocations: 1.024 MB / 1.302 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002943/1.295, allocations: 125.4 kB / 1.302 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005694/1.3, allocations: 2.584 MB / 1.305 GB, free: 19.64 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006146/1.301, allocations: 463 kB / 1.305 GB, free: 19.6 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001199/1.302, allocations: 0.7225 MB / 1.306 GB, free: 19.41 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006384/1.309, allocations: 2.82 MB / 1.309 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.309, allocations: 0 / 1.309 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.134e-06/1.309, allocations: 1.062 kB / 1.309 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.278e-05/1.309, allocations: 1.031 kB / 1.309 GB, free: 19.11 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.003461/1.312, allocations: 1.713 MB / 1.31 GB, free: 18.2 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/1.312, allocations: 11 kB / 1.31 GB, free: 18.2 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002769/1.315, allocations: 421.9 kB / 1.311 GB, free: 18.13 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/1.317, allocations: 0.9629 MB / 1.312 GB, free: 17.78 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.17e-05/1.317, allocations: 60.41 kB / 1.312 GB, free: 17.77 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/1.317, allocations: 83.59 kB / 1.312 GB, free: 17.77 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/1.318, allocations: 0.8629 MB / 1.313 GB, free: 17.72 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/1.318, allocations: 1.469 kB / 1.313 GB, free: 17.72 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.157e-05/1.319, allocations: 39.03 kB / 1.313 GB, free: 17.71 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.051e-05/1.319, allocations: 26.81 kB / 1.313 GB, free: 17.71 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/1.32, allocations: 0.8077 MB / 1.313 GB, free: 17.7 MB / 0.9981 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.004302/1.324, allocations: 3.636 MB / 1.317 GB, free: 16.07 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/1.326, allocations: 1.098 MB / 1.318 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/1.326, allocations: 371.1 kB / 1.318 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000634/1.327, allocations: 407.1 kB / 1.319 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/1.327, allocations: 38.75 kB / 1.319 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.655e-06/1.327, allocations: 1.156 kB / 1.319 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.001929/1.329, allocations: 0.961 MB / 1.32 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/1.329, allocations: 56.38 kB / 1.32 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008832/1.33, allocations: 0.8404 MB / 1.321 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.96e-05/1.33, allocations: 41.11 kB / 1.321 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/1.33, allocations: 481.1 kB / 1.321 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/1.33, allocations: 215 kB / 1.321 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/1.33, allocations: 113.8 kB / 1.322 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.372e-05/1.33, allocations: 328.3 kB / 1.322 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/1.331, allocations: 259.7 kB / 1.322 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/1.331, allocations: 363 kB / 1.322 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008548/1.332, allocations: 0.5901 MB / 1.323 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.332, allocations: 1.062 kB / 1.323 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001122/1.333, allocations: 0.7346 MB / 1.324 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/1.333, allocations: 7.688 kB / 1.324 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/1.333, allocations: 0.6562 kB / 1.324 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/1.333, allocations: 5.406 kB / 1.324 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005383/1.334, allocations: 123.2 kB / 1.324 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/1.334, allocations: 9.312 kB / 1.324 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/1.335, allocations: 128.1 kB / 1.324 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/1.335, allocations: 26.72 kB / 1.324 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007207/1.336, allocations: 0.491 MB / 1.324 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004823/1.336, allocations: 363.4 kB / 1.325 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008843/1.337, allocations: 0.5807 MB / 1.325 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/1.337, allocations: 0 / 1.325 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001135/1.338, allocations: 0.7211 MB / 1.326 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/1.338, allocations: 6.062 kB / 1.326 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-06/1.338, allocations: 0.9688 kB / 1.326 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.76e-06/1.338, allocations: 6.062 kB / 1.326 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/1.339, allocations: 126.9 kB / 1.326 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/1.339, allocations: 4.312 kB / 1.326 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009504/1.34, allocations: 130.6 kB / 1.326 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.252e-05/1.34, allocations: 19.41 kB / 1.326 GB, free: 13.45 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (69): * Single equations (assignments): 69 * 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.0001538/1.34, allocations: 215.3 kB / 1.327 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/1.34, allocations: 101.6 kB / 1.327 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/1.342, allocations: 0.7364 MB / 1.327 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/1.342, allocations: 8.562 kB / 1.327 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/1.342, allocations: 7.266 kB / 1.327 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001067/1.343, allocations: 0.9028 MB / 1.328 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/1.346, allocations: 2.247 MB / 1.33 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/1.346, allocations: 2.75 kB / 1.33 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/1.347, allocations: 133.9 kB / 1.331 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/1.347, allocations: 5.219 kB / 1.331 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/1.347, allocations: 24.2 kB / 1.331 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/1.347, allocations: 8.094 kB / 1.331 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.347, allocations: 11.66 kB / 1.331 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/1.348, allocations: 1.219 MB / 1.332 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/1.349, allocations: 264.2 kB / 1.332 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/1.349, allocations: 22.62 kB / 1.332 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008182/1.35, allocations: 88.67 kB / 1.332 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/1.35, allocations: 56.2 kB / 1.332 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.737e-05/1.35, allocations: 28.52 kB / 1.332 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007504/1.351, allocations: 0.5839 MB / 1.333 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.351, allocations: 0 / 1.333 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00133/1.352, allocations: 0.5342 MB / 1.333 GB, free: 11.37 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,senTem1.T,senTem2.T,senTem3.T) * 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 (60): * Single equations (assignments): 60 * 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.0005329/1.353, allocations: 250.6 kB / 1.334 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001929/1.355, allocations: 1.01 MB / 1.335 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.355, allocations: 2.312 kB / 1.335 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005234/1.355, allocations: 341 kB / 1.335 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/1.358, allocations: 0.6066 MB / 1.336 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/1.361, allocations: 2.56 MB / 1.338 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/1.361, allocations: 1.121 MB / 1.339 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00107/1.362, allocations: 294.5 kB / 1.339 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/1.362, allocations: 80.55 kB / 1.339 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of SimCode: time 4.31e-07/1.362, allocations: 4 kB / 1.339 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of Templates: time 0.02943/1.392, allocations: 20.15 MB / 1.359 GB, free: 2.051 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches