Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001291/0.001291, allocations: 102.3 kB / 16.27 MB, free: 6.414 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.001681/0.001681, allocations: 184.4 kB / 17.2 MB, free: 5.953 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8109/0.8109, allocations: 122.9 MB / 413.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 59.91 kB / 0.4911 GB, free: 7.422 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3786, allocations: 77.93 MB / 0.5672 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5996/0.9782, allocations: 194 MB / 0.7566 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0125/0.9908, allocations: 6.944 MB / 0.7634 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002139/0.993, allocations: 44.66 kB / 0.7634 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.995, allocations: 0.6847 MB / 0.7641 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006767/1.002, allocations: 2.339 MB / 0.7664 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003806/1.006, allocations: 1.412 MB / 0.7678 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004987/1.011, allocations: 2.988 MB / 0.7707 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001685/1.012, allocations: 0.8929 MB / 0.7716 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003304/1.016, allocations: 1.129 MB / 0.7727 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001693/1.017, allocations: 0.7941 MB / 0.7734 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002796/1.018, allocations: 99.41 kB / 0.7735 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005104/1.023, allocations: 2.058 MB / 0.7755 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000834/1.024, allocations: 367.6 kB / 0.7759 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001646/1.025, allocations: 0.59 MB / 0.7765 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007467/1.033, allocations: 2.362 MB / 0.7788 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/1.033, allocations: 0.9062 kB / 0.7788 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.714e-06/1.033, allocations: 0 / 0.7788 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.302e-05/1.033, allocations: 0.9062 kB / 0.7788 GB, free: 1.422 MB / 0.5762 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.003961/1.037, allocations: 1.629 MB / 0.7804 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/1.037, allocations: 9.094 kB / 0.7804 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002925/1.04, allocations: 0.5337 MB / 0.7809 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/1.042, allocations: 0.9829 MB / 0.7819 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001155/1.043, allocations: 275.9 kB / 0.7821 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/1.043, allocations: 68.41 kB / 0.7822 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/1.045, allocations: 1.129 MB / 0.7833 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/1.046, allocations: 3.312 kB / 0.7833 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.479e-05/1.046, allocations: 26.59 kB / 0.7833 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.739e-05/1.046, allocations: 30.75 kB / 0.7833 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002997/1.049, allocations: 1.202 MB / 0.7845 GB, free: 16.04 MB / 0.5919 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.005487/1.054, allocations: 3.215 MB / 0.7877 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/1.056, allocations: 0.6922 MB / 0.7883 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007197/1.056, allocations: 425.9 kB / 0.7887 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009024/1.057, allocations: 1.019 MB / 0.7897 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009075/1.058, allocations: 0.5137 MB / 0.7902 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 3.176e-06/1.058, allocations: 0 / 0.7902 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.002794/1.061, allocations: 1.229 MB / 0.7914 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/1.061, allocations: 148 kB / 0.7916 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/1.063, allocations: 1.196 MB / 0.7927 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.076e-05/1.063, allocations: 39.27 kB / 0.7928 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/1.063, allocations: 436.5 kB / 0.7932 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/1.064, allocations: 190.8 kB / 0.7934 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/1.064, allocations: 149.4 kB / 0.7935 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001083/1.064, allocations: 331 kB / 0.7938 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/1.065, allocations: 460.6 kB / 0.7943 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/1.067, allocations: 0.6122 MB / 0.7949 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001999/1.069, allocations: 0.9498 MB / 0.7958 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/1.069, allocations: 0 / 0.7958 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003106/1.072, allocations: 1.231 MB / 0.797 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.988e-05/1.072, allocations: 38.06 kB / 0.797 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/1.072, allocations: 10.12 kB / 0.7971 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/1.072, allocations: 7.938 kB / 0.7971 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009526/1.073, allocations: 203.3 kB / 0.7973 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/1.073, allocations: 10.11 kB / 0.7973 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/1.074, allocations: 264.5 kB / 0.7975 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.607e-05/1.075, allocations: 37.34 kB / 0.7976 GB, free: 12.17 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (67): * Single equations (assignments): 66 * 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.0004666/1.075, allocations: 327.5 kB / 0.7979 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/1.075, allocations: 120.7 kB / 0.798 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/1.077, allocations: 0.9951 MB / 0.799 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/1.077, allocations: 11.94 kB / 0.799 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.077, allocations: 0 / 0.799 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/1.077, allocations: 2.625 kB / 0.799 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004239/1.081, allocations: 3.162 MB / 0.8021 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/1.082, allocations: 15.66 kB / 0.8021 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/1.082, allocations: 112.4 kB / 0.8022 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/1.082, allocations: 11.44 kB / 0.8022 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.612e-05/1.082, allocations: 27.06 kB / 0.8022 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/1.082, allocations: 15.02 kB / 0.8022 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.914e-06/1.082, allocations: 15.53 kB / 0.8022 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002276/1.084, allocations: 1.332 MB / 0.8035 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006049/1.085, allocations: 333.2 kB / 0.8039 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/1.085, allocations: 21.8 kB / 0.8039 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/1.087, allocations: 112.8 kB / 0.804 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/1.087, allocations: 60.97 kB / 0.804 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.631e-05/1.087, allocations: 47.92 kB / 0.8041 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001692/1.089, allocations: 0.8673 MB / 0.8049 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.01e-07/1.089, allocations: 0 / 0.8049 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001355/1.09, allocations: 306.9 kB / 0.8052 GB, free: 10.15 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (56): * Single equations (assignments): 51 * 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.0008873/1.091, allocations: 338.4 kB / 0.8056 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002502/1.093, allocations: 1.053 MB / 0.8066 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.093, allocations: 0 / 0.8066 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008997/1.094, allocations: 0.5098 MB / 0.8071 GB, free: 9.848 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/1.097, allocations: 0.5604 MB / 0.8076 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/1.101, allocations: 2.055 MB / 0.8096 GB, free: 8.863 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007271/1.102, allocations: 1.074 MB / 0.8107 GB, free: 8.148 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001371/1.103, allocations: 276.5 kB / 0.8109 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002824/1.103, allocations: 83.67 kB / 0.811 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of SimCode: time 1.182e-06/1.103, allocations: 0 / 0.811 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of Templates: time 0.03864/1.142, allocations: 22.06 MB / 0.8326 GB, free: 6.488 MB / 0.6075 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)