Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 107.3 kB / 16.29 MB, free: 6.43 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.001182/0.001182, allocations: 184 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.798/1.798, allocations: 292.3 MB / 0.5495 GB, free: 17.52 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 71.89 kB / 0.6722 GB, free: 6.578 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2228, allocations: 114.5 MB / 0.7841 GB, free: 3.91 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5564/0.7792, allocations: 194 MB / 0.9735 GB, free: 8.527 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01075/0.79, allocations: 6.886 MB / 0.9803 GB, free: 1.641 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.7915, allocations: 47.69 kB / 0.9803 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.7934, allocations: 0.6791 MB / 0.981 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005415/0.7988, allocations: 2.295 MB / 0.9832 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.8021, allocations: 1.425 MB / 0.9846 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004106/0.8062, allocations: 2.929 MB / 0.9875 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001675/0.8079, allocations: 0.9126 MB / 0.9883 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002566/0.8105, allocations: 1.142 MB / 0.9895 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.8118, allocations: 0.798 MB / 0.9902 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.812, allocations: 104 kB / 0.9903 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003923/0.8159, allocations: 2.073 MB / 0.9924 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003704/0.8163, allocations: 363 kB / 0.9927 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0006265/0.817, allocations: 0.5986 MB / 0.9933 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003547/0.8205, allocations: 2.435 MB / 0.9957 GB, free: 1.855 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.8205, allocations: 0 / 0.9957 GB, free: 1.855 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8205, allocations: 0 / 0.9957 GB, free: 1.855 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.242e-05/0.8206, allocations: 0 / 0.9957 GB, free: 1.855 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003454/0.824, allocations: 1.664 MB / 0.9973 GB, free: 136 kB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.8241, allocations: 8.031 kB / 0.9973 GB, free: 128 kB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002753/0.8268, allocations: 0.537 MB / 0.9978 GB, free: 15.59 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.8289, allocations: 0.9923 MB / 0.9988 GB, free: 14.55 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001078/0.83, allocations: 285 kB / 0.9991 GB, free: 14.27 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.8301, allocations: 68 kB / 0.9991 GB, free: 14.21 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002467/0.8326, allocations: 1.152 MB / 1 GB, free: 13.04 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.8326, allocations: 4 kB / 1 GB, free: 13.03 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.438e-05/0.8327, allocations: 24 kB / 1 GB, free: 13.01 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.703e-05/0.8327, allocations: 29.31 kB / 1 GB, free: 12.98 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/0.8361, allocations: 1.278 MB / 1.002 GB, free: 11.7 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005383/0.8414, allocations: 2.914 MB / 1.004 GB, free: 8.73 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.8432, allocations: 0.7153 MB / 1.005 GB, free: 8.004 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007674/0.844, allocations: 444.2 kB / 1.006 GB, free: 7.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008314/0.8449, allocations: 1.025 MB / 1.007 GB, free: 6.324 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/0.846, allocations: 0.5296 MB / 1.007 GB, free: 5.766 MB / 0.795 GB Notification: Performance of pre-optimization done (n=59): time 4.368e-06/0.846, allocations: 0 / 1.007 GB, free: 5.766 MB / 0.795 GB Notification: Performance of matching and sorting (n=59): time 0.002913/0.8489, allocations: 1.279 MB / 1.008 GB, free: 4.48 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.849, allocations: 111.2 kB / 1.008 GB, free: 4.348 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/0.8507, allocations: 1.196 MB / 1.01 GB, free: 3.137 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.8508, allocations: 37.7 kB / 1.01 GB, free: 3.094 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000322/0.8511, allocations: 434 kB / 1.01 GB, free: 2.668 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/0.8514, allocations: 201.1 kB / 1.01 GB, free: 2.469 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.8516, allocations: 146.1 kB / 1.01 GB, free: 2.32 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.8518, allocations: 330 kB / 1.011 GB, free: 1.992 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.853, allocations: 472.9 kB / 1.011 GB, free: 1.531 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.8545, allocations: 0.6234 MB / 1.012 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002135/0.8566, allocations: 0.9619 MB / 1.013 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.8566, allocations: 0 / 1.013 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003054/0.8597, allocations: 1.26 MB / 1.014 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.8597, allocations: 37.69 kB / 1.014 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.8597, allocations: 192 / 1.014 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.8598, allocations: 15.94 kB / 1.014 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009549/0.8607, allocations: 202.7 kB / 1.014 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.8608, allocations: 11.94 kB / 1.014 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.8622, allocations: 273.1 kB / 1.014 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.468e-05/0.8623, allocations: 35.97 kB / 1.014 GB, free: 14 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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.0005302/0.8628, allocations: 329.2 kB / 1.015 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.863, allocations: 114.6 kB / 1.015 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/0.8652, allocations: 1.051 MB / 1.016 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.8652, allocations: 7.938 kB / 1.016 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.8652, allocations: 4 kB / 1.016 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.8653, allocations: 7.969 kB / 1.016 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005316/0.8706, allocations: 3.224 MB / 1.019 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.8706, allocations: 8 kB / 1.019 GB, free: 9.086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007274/0.8714, allocations: 127.8 kB / 1.019 GB, free: 8.961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.466e-05/0.8714, allocations: 12 kB / 1.019 GB, free: 8.949 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.949e-05/0.8715, allocations: 23.98 kB / 1.019 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-05/0.8715, allocations: 15.94 kB / 1.019 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/0.8715, allocations: 11.94 kB / 1.019 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.8737, allocations: 1.313 MB / 1.021 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006519/0.8744, allocations: 343.3 kB / 1.021 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.8746, allocations: 24 kB / 1.021 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.8758, allocations: 107.9 kB / 1.021 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.8759, allocations: 67.7 kB / 1.021 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.011e-05/0.876, allocations: 39.97 kB / 1.021 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00165/0.8777, allocations: 0.8636 MB / 1.022 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of sort global known variables: time 5.51e-07/0.8777, allocations: 4 kB / 1.022 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001197/0.8789, allocations: 299.8 kB / 1.022 GB, free: 5.715 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.0007936/0.8797, allocations: 346.4 kB / 1.023 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002389/0.8821, allocations: 1.065 MB / 1.024 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.8821, allocations: 4 kB / 1.024 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000971/0.8831, allocations: 0.5322 MB / 1.024 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.8854, allocations: 0.5598 MB / 1.025 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.8891, allocations: 2.07 MB / 1.027 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007201/0.8898, allocations: 1.069 MB / 1.028 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0008951/0.8907, allocations: 282.6 kB / 1.028 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.891, allocations: 79.41 kB / 1.028 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.891, allocations: 0 / 1.028 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of Templates: time 0.03448/0.9255, allocations: 22.3 MB / 1.05 GB, free: 9.609 MB / 0.8419 GB make -j1 -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)