Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 387.1 MB / 399.7 MB, free: 9.488 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 160.9 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.61/1.61, allocations: 221.3 MB / 0.7871 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009006/0.0009008, allocations: 102.2 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.638e-05/3.641e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3307, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.462/5.793, allocations: 1.928 GB / 3.14 GB, free: 342 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/5.794, allocations: 85.08 kB / 3.14 GB, free: 342 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.345/9.139, allocations: 0.9307 GB / 4.071 GB, free: 223.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.303e-06/9.139, allocations: 0 / 4.071 GB, free: 223.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001158/9.139, allocations: 42.25 kB / 4.071 GB, free: 223.3 MB / 1.151 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.003478/9.142, allocations: 1.53 MB / 4.073 GB, free: 222.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/9.142, allocations: 14.55 kB / 4.073 GB, free: 222.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002711/9.145, allocations: 414.9 kB / 4.073 GB, free: 222.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/9.147, allocations: 1.068 MB / 4.074 GB, free: 222.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.922e-05/9.147, allocations: 66.84 kB / 4.074 GB, free: 222.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/9.147, allocations: 90.2 kB / 4.074 GB, free: 222.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/9.149, allocations: 0.7959 MB / 4.075 GB, free: 222.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/9.149, allocations: 0 / 4.075 GB, free: 222.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.987e-05/9.149, allocations: 34.59 kB / 4.075 GB, free: 222.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/9.149, allocations: 29.19 kB / 4.075 GB, free: 222.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/9.15, allocations: 0.7144 MB / 4.076 GB, free: 222.2 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.004527/9.155, allocations: 3.669 MB / 4.079 GB, free: 220.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/9.156, allocations: 1.063 MB / 4.08 GB, free: 220 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/9.156, allocations: 347.8 kB / 4.081 GB, free: 220 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005829/9.157, allocations: 401.1 kB / 4.081 GB, free: 219.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/9.157, allocations: 38.97 kB / 4.081 GB, free: 219.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 4.709e-06/9.157, allocations: 3.938 kB / 4.081 GB, free: 219.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.001417/9.158, allocations: 0.6809 MB / 4.082 GB, free: 219.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/9.158, allocations: 61.06 kB / 4.082 GB, free: 219.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000831/9.159, allocations: 0.707 MB / 4.083 GB, free: 219.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.596e-05/9.159, allocations: 44.42 kB / 4.083 GB, free: 219.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003025/9.16, allocations: 481 kB / 4.083 GB, free: 219.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/9.16, allocations: 214.2 kB / 4.083 GB, free: 219 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/9.16, allocations: 8.812 kB / 4.083 GB, free: 219 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.075e-05/9.16, allocations: 335 kB / 4.084 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/9.16, allocations: 223.5 kB / 4.084 GB, free: 218.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/9.161, allocations: 372.9 kB / 4.084 GB, free: 218.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004001/9.161, allocations: 283.4 kB / 4.084 GB, free: 218.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/9.161, allocations: 2.375 kB / 4.084 GB, free: 218.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009826/9.162, allocations: 0.6846 MB / 4.085 GB, free: 218.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001668/9.162, allocations: 450.6 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/9.162, allocations: 0 / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/9.162, allocations: 7.781 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/9.163, allocations: 139.1 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/9.163, allocations: 7.25 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/9.164, allocations: 142.3 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.23e-05/9.164, allocations: 22.47 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/9.164, allocations: 6.469 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008138/9.165, allocations: 0.57 MB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/9.165, allocations: 3.969 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/9.165, allocations: 3.953 kB / 4.086 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005409/9.165, allocations: 135.8 kB / 4.087 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/9.165, allocations: 3.312 kB / 4.087 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009296/9.166, allocations: 145.7 kB / 4.087 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/9.166, allocations: 22.59 kB / 4.087 GB, free: 218 MB / 1.151 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000167/9.167, allocations: 139.7 kB / 4.087 GB, free: 217.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/9.167, allocations: 100.4 kB / 4.087 GB, free: 217.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/9.168, allocations: 0.724 MB / 4.088 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/9.168, allocations: 11.17 kB / 4.088 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/9.168, allocations: 0 / 4.088 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007858/9.169, allocations: 0.8838 MB / 4.088 GB, free: 217.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003361/9.172, allocations: 2.189 MB / 4.091 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/9.172, allocations: 3.781 kB / 4.091 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/9.173, allocations: 156.7 kB / 4.091 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/9.173, allocations: 3.656 kB / 4.091 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.761e-05/9.173, allocations: 20.41 kB / 4.091 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/9.173, allocations: 7.25 kB / 4.091 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/9.173, allocations: 11.3 kB / 4.091 GB, free: 216.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/9.174, allocations: 1.292 MB / 4.092 GB, free: 216.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004845/9.175, allocations: 262.5 kB / 4.092 GB, free: 216 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/9.175, allocations: 18.52 kB / 4.092 GB, free: 216 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009015/9.176, allocations: 134.1 kB / 4.092 GB, free: 216 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/9.176, allocations: 45 kB / 4.093 GB, free: 216 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.772e-05/9.176, allocations: 28.33 kB / 4.093 GB, free: 216 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.000682/9.177, allocations: 0.5632 MB / 4.093 GB, free: 215.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/9.177, allocations: 3.688 kB / 4.093 GB, free: 215.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002345/9.179, allocations: 0.7604 MB / 4.094 GB, free: 215.8 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003446/9.183, allocations: 2.331 MB / 4.096 GB, free: 214.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00149/9.184, allocations: 0.9014 MB / 4.097 GB, free: 214.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/9.184, allocations: 3.594 kB / 4.097 GB, free: 214.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004116/9.185, allocations: 314.1 kB / 4.097 GB, free: 214.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003443/9.188, allocations: 0.681 MB / 4.098 GB, free: 214.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/9.191, allocations: 1.75 MB / 4.1 GB, free: 214.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/9.192, allocations: 1.151 MB / 4.101 GB, free: 213.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001669/9.194, allocations: 383 kB / 4.101 GB, free: 213.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/9.194, allocations: 69.42 kB / 4.101 GB, free: 213.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.443e-06/9.194, allocations: 0 / 4.101 GB, free: 213.6 MB / 1.151 GB Notification: Performance of Templates: time 0.06857/9.263, allocations: 53.91 MB / 4.154 GB, free: 187.7 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches