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.001339/0.001339, 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.001773/0.001773, 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.475/1.475, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.778/2.778, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 66.59 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3506, allocations: 157.4 MB / 1.052 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.9644/1.315, allocations: 237.7 MB / 1.284 GB, free: 20.17 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01302/1.328, allocations: 7.293 MB / 1.291 GB, free: 20.01 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002495/1.331, allocations: 49.41 kB / 1.291 GB, free: 20.01 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0021/1.333, allocations: 0.5784 MB / 1.292 GB, free: 20 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006224/1.339, allocations: 1.955 MB / 1.294 GB, free: 19.89 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00598/1.345, allocations: 1.857 MB / 1.296 GB, free: 19.84 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.006045/1.351, allocations: 4.426 MB / 1.3 GB, free: 19.83 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/1.353, allocations: 0.9451 MB / 1.301 GB, free: 19.69 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004377/1.357, allocations: 1.594 MB / 1.303 GB, free: 19.67 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002574/1.36, allocations: 0.9986 MB / 1.303 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002827/1.36, allocations: 62.03 kB / 1.304 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006547/1.367, allocations: 2.834 MB / 1.306 GB, free: 19.63 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000809/1.367, allocations: 407.6 kB / 1.307 GB, free: 19.6 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001386/1.369, allocations: 0.6562 MB / 1.307 GB, free: 19.4 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005913/1.375, allocations: 2.771 MB / 1.31 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/1.375, allocations: 1.219 kB / 1.31 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/1.375, allocations: 4 kB / 1.31 GB, free: 19.1 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.59e-05/1.375, allocations: 0 / 1.31 GB, free: 19.1 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.003256/1.378, allocations: 1.718 MB / 1.312 GB, free: 18.18 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/1.378, allocations: 9.688 kB / 1.312 GB, free: 18.18 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002913/1.381, allocations: 422.9 kB / 1.312 GB, free: 18.11 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/1.383, allocations: 0.955 MB / 1.313 GB, free: 17.75 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/1.383, allocations: 68.16 kB / 1.313 GB, free: 17.75 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/1.383, allocations: 81.12 kB / 1.313 GB, free: 17.75 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/1.385, allocations: 0.8646 MB / 1.314 GB, free: 17.7 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/1.385, allocations: 0 / 1.314 GB, free: 17.7 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.421e-05/1.385, allocations: 36.25 kB / 1.314 GB, free: 17.69 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/1.385, allocations: 26.41 kB / 1.314 GB, free: 17.69 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/1.386, allocations: 0.8104 MB / 1.315 GB, free: 17.68 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.004298/1.39, allocations: 3.633 MB / 1.318 GB, free: 16.03 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/1.392, allocations: 1.1 MB / 1.32 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005405/1.392, allocations: 373.4 kB / 1.32 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006056/1.393, allocations: 407.3 kB / 1.32 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/1.393, allocations: 44.73 kB / 1.32 GB, free: 15 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 1.974e-06/1.393, allocations: 4 kB / 1.32 GB, free: 15 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002/1.395, allocations: 0.9498 MB / 1.321 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/1.395, allocations: 63.94 kB / 1.321 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009448/1.396, allocations: 0.8414 MB / 1.322 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/1.396, allocations: 39.8 kB / 1.322 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000263/1.396, allocations: 478.3 kB / 1.323 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/1.396, allocations: 214 kB / 1.323 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/1.397, allocations: 111 kB / 1.323 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.635e-05/1.397, allocations: 331.9 kB / 1.323 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/1.397, allocations: 255.5 kB / 1.324 GB, free: 14 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005139/1.398, allocations: 369.7 kB / 1.324 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009185/1.398, allocations: 0.5861 MB / 1.324 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.398, allocations: 4 kB / 1.324 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001185/1.4, allocations: 0.7355 MB / 1.325 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/1.4, allocations: 4.781 kB / 1.325 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/1.4, allocations: 0 / 1.325 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/1.4, allocations: 6.281 kB / 1.325 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/1.4, allocations: 129.7 kB / 1.325 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/1.4, allocations: 8.844 kB / 1.325 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/1.401, allocations: 125.8 kB / 1.325 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/1.401, allocations: 30.92 kB / 1.325 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007858/1.402, allocations: 495.6 kB / 1.326 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004763/1.403, allocations: 362.6 kB / 1.326 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008774/1.404, allocations: 0.5789 MB / 1.327 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.994e-06/1.404, allocations: 0 / 1.327 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001173/1.405, allocations: 0.7215 MB / 1.328 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/1.405, allocations: 6.906 kB / 1.328 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/1.405, allocations: 7.219 kB / 1.328 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.841e-06/1.405, allocations: 9.547 kB / 1.328 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005339/1.405, allocations: 123.9 kB / 1.328 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/1.405, allocations: 7.594 kB / 1.328 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/1.406, allocations: 126.4 kB / 1.328 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-05/1.407, allocations: 22.62 kB / 1.328 GB, free: 13.34 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.0001807/1.407, allocations: 215.2 kB / 1.328 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/1.407, allocations: 98.88 kB / 1.328 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/1.408, allocations: 0.74 MB / 1.329 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/1.408, allocations: 8.656 kB / 1.329 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.408, allocations: 3.938 kB / 1.329 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001074/1.409, allocations: 0.8968 MB / 1.33 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/1.413, allocations: 2.247 MB / 1.332 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/1.413, allocations: 7.125 kB / 1.332 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006297/1.413, allocations: 139.9 kB / 1.332 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/1.413, allocations: 5.406 kB / 1.332 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/1.413, allocations: 15.56 kB / 1.332 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.367e-06/1.413, allocations: 8.594 kB / 1.332 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/1.413, allocations: 18.62 kB / 1.332 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/1.415, allocations: 1.221 MB / 1.333 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004932/1.416, allocations: 260.3 kB / 1.334 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/1.416, allocations: 20.56 kB / 1.334 GB, free: 11.44 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008403/1.417, allocations: 85.78 kB / 1.334 GB, free: 11.44 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/1.417, allocations: 52.88 kB / 1.334 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.142e-05/1.417, allocations: 24.73 kB / 1.334 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007916/1.418, allocations: 0.5859 MB / 1.334 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.418, allocations: 0 / 1.334 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001344/1.419, allocations: 0.5381 MB / 1.335 GB, free: 11.25 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.0005315/1.42, allocations: 237 kB / 1.335 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001949/1.422, allocations: 0.9394 MB / 1.336 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.422, allocations: 0 / 1.336 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006077/1.422, allocations: 341.5 kB / 1.336 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003069/1.425, allocations: 0.6323 MB / 1.337 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003339/1.429, allocations: 2.555 MB / 1.339 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006846/1.429, allocations: 1.124 MB / 1.341 GB, free: 8.836 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001335/1.431, allocations: 296.7 kB / 1.341 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/1.431, allocations: 77.98 kB / 1.341 GB, free: 8.77 MB / 0.9981 GB Notification: Performance of SimCode: time 8.12e-07/1.431, allocations: 3.938 kB / 1.341 GB, free: 8.766 MB / 0.9981 GB Notification: Performance of Templates: time 0.03346/1.464, allocations: 19.76 MB / 1.36 GB, free: 0.9258 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