Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001445/0.001445, allocations: 104.2 kB / 16.41 MB, free: 6.516 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.001676/0.001676, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002179/0.002179, allocations: 289.2 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.94/0.94, allocations: 169.3 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 95.86 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4773/0.4793, allocations: 86.97 MB / 0.767 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.6914/1.171, allocations: 239.9 MB / 1.001 GB, free: 19.51 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01055/1.181, allocations: 7.205 MB / 1.008 GB, free: 19.39 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/1.183, allocations: 52.31 kB / 1.008 GB, free: 19.39 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001778/1.185, allocations: 0.7013 MB / 1.009 GB, free: 19.38 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.005011/1.19, allocations: 2.069 MB / 1.011 GB, free: 19.29 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004615/1.195, allocations: 2.038 MB / 1.013 GB, free: 19.23 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004195/1.199, allocations: 3.27 MB / 1.016 GB, free: 19.22 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/1.201, allocations: 1.135 MB / 1.017 GB, free: 19.11 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004794/1.206, allocations: 1.827 MB / 1.019 GB, free: 19.08 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/1.207, allocations: 0.969 MB / 1.02 GB, free: 18.96 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002028/1.208, allocations: 122.2 kB / 1.02 GB, free: 18.96 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004686/1.212, allocations: 2.49 MB / 1.023 GB, free: 18.93 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004517/1.213, allocations: 458.6 kB / 1.023 GB, free: 18.88 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0008265/1.214, allocations: 0.7232 MB / 1.024 GB, free: 18.69 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004483/1.218, allocations: 2.694 MB / 1.026 GB, free: 18.38 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.218, allocations: 0 / 1.026 GB, free: 18.38 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.225e-06/1.218, allocations: 0.5312 kB / 1.026 GB, free: 18.38 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.021e-05/1.218, allocations: 0.8125 kB / 1.026 GB, free: 18.38 MB / 0.7169 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.002794/1.221, allocations: 1.708 MB / 1.028 GB, free: 17.47 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/1.221, allocations: 12.34 kB / 1.028 GB, free: 17.47 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002625/1.224, allocations: 422.7 kB / 1.028 GB, free: 17.4 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/1.225, allocations: 1.015 MB / 1.029 GB, free: 17.05 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/1.225, allocations: 68.41 kB / 1.03 GB, free: 17.04 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/1.226, allocations: 83.69 kB / 1.03 GB, free: 17.04 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/1.227, allocations: 0.8691 MB / 1.03 GB, free: 16.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/1.227, allocations: 3.594 kB / 1.03 GB, free: 16.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/1.227, allocations: 29.81 kB / 1.031 GB, free: 16.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.302e-05/1.227, allocations: 33.98 kB / 1.031 GB, free: 16.97 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/1.228, allocations: 0.8042 MB / 1.031 GB, free: 16.97 MB / 0.7169 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.004169/1.233, allocations: 3.651 MB / 1.035 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/1.234, allocations: 1.089 MB / 1.036 GB, free: 14.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005161/1.234, allocations: 377 kB / 1.036 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005978/1.235, allocations: 406.9 kB / 1.037 GB, free: 14.05 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/1.235, allocations: 45.09 kB / 1.037 GB, free: 14 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 2.805e-06/1.235, allocations: 0.8125 kB / 1.037 GB, free: 14 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.001932/1.237, allocations: 0.9567 MB / 1.038 GB, free: 13.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/1.237, allocations: 57 kB / 1.038 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009915/1.238, allocations: 0.8393 MB / 1.039 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.619e-05/1.238, allocations: 39.8 kB / 1.039 GB, free: 13.21 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/1.238, allocations: 484.7 kB / 1.039 GB, free: 12.83 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/1.239, allocations: 215.8 kB / 1.039 GB, free: 12.67 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/1.239, allocations: 111.1 kB / 1.039 GB, free: 12.61 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.381e-05/1.239, allocations: 327.6 kB / 1.04 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/1.239, allocations: 255.6 kB / 1.04 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005688/1.24, allocations: 362.1 kB / 1.04 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009874/1.241, allocations: 0.5913 MB / 1.041 GB, free: 11.76 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.241, allocations: 0.875 kB / 1.041 GB, free: 11.76 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001342/1.242, allocations: 0.735 MB / 1.042 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/1.242, allocations: 12.45 kB / 1.042 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.242, allocations: 0 / 1.042 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/1.242, allocations: 7.438 kB / 1.042 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005591/1.243, allocations: 124.8 kB / 1.042 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/1.243, allocations: 5.812 kB / 1.042 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007942/1.244, allocations: 68.92 kB / 1.042 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/1.244, allocations: 27.41 kB / 1.042 GB, free: 11.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00076/1.245, allocations: 497.5 kB / 1.042 GB, free: 11.17 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004701/1.245, allocations: 363.3 kB / 1.043 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008508/1.246, allocations: 0.5773 MB / 1.043 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.445e-06/1.246, allocations: 0.75 kB / 1.043 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001145/1.247, allocations: 0.7211 MB / 1.044 GB, free: 10.44 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/1.247, allocations: 5.812 kB / 1.044 GB, free: 10.44 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/1.247, allocations: 10.69 kB / 1.044 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.191e-06/1.247, allocations: 2.656 kB / 1.044 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000519/1.248, allocations: 128 kB / 1.044 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/1.248, allocations: 2.219 kB / 1.044 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000726/1.248, allocations: 65.61 kB / 1.044 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/1.248, allocations: 28.33 kB / 1.044 GB, free: 10.39 MB / 0.7169 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.0001617/1.249, allocations: 212.4 kB / 1.044 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/1.249, allocations: 109.2 kB / 1.044 GB, free: 10.13 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/1.25, allocations: 0.7449 MB / 1.045 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/1.25, allocations: 5.5 kB / 1.045 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.25, allocations: 2.844 kB / 1.045 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000968/1.251, allocations: 0.9013 MB / 1.046 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/1.254, allocations: 2.242 MB / 1.048 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.254, allocations: 2.844 kB / 1.048 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/1.254, allocations: 138.5 kB / 1.048 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/1.254, allocations: 9.188 kB / 1.048 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.395e-05/1.255, allocations: 20.3 kB / 1.048 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/1.255, allocations: 5.562 kB / 1.048 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/1.255, allocations: 8.094 kB / 1.048 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/1.256, allocations: 1.224 MB / 1.05 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/1.256, allocations: 260.2 kB / 1.05 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/1.257, allocations: 23.23 kB / 1.05 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006571/1.257, allocations: 44.61 kB / 1.05 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.595e-05/1.257, allocations: 45.48 kB / 1.05 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.221e-05/1.257, allocations: 26.52 kB / 1.05 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006403/1.258, allocations: 0.5833 MB / 1.051 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/1.258, allocations: 4 kB / 1.051 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001109/1.259, allocations: 0.5338 MB / 1.051 GB, free: 5.484 MB / 0.7169 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.0004323/1.26, allocations: 250.1 kB / 1.051 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001478/1.261, allocations: 0.9411 MB / 1.052 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/1.261, allocations: 0.5 kB / 1.052 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000482/1.262, allocations: 349.3 kB / 1.053 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/1.264, allocations: 0.6031 MB / 1.053 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/1.267, allocations: 2.188 MB / 1.055 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/1.267, allocations: 1.124 MB / 1.056 GB, free: 28 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002853/1.267, allocations: 83.48 kB / 1.056 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/1.267, allocations: 0 / 1.056 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of Templates: time 0.02424/1.292, allocations: 17.14 MB / 1.073 GB, free: 15 MB / 0.7481 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)