Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001543/0.001543, 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.002056/0.002056, allocations: 197.1 kB / 16.14 MB, free: 6.734 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.331/1.331, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001975/0.001975, allocations: 271.2 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9664/0.9664, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 93.42 kB / 0.5945 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.2004, allocations: 86.98 MB / 0.6794 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5336/0.7341, allocations: 191.6 MB / 0.8666 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01039/0.7445, allocations: 6.991 MB / 0.8734 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/0.7462, allocations: 39.97 kB / 0.8734 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001831/0.7481, allocations: 0.5599 MB / 0.874 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005793/0.7539, allocations: 2.188 MB / 0.8761 GB, free: 8.004 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003237/0.7572, allocations: 1.288 MB / 0.8774 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004755/0.7619, allocations: 3.744 MB / 0.881 GB, free: 5.008 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.7635, allocations: 0.7791 MB / 0.8818 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.7658, allocations: 0.9758 MB / 0.8828 GB, free: 4 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002696/0.7685, allocations: 0.8128 MB / 0.8836 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005056/0.769, allocations: 47.97 kB / 0.8836 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004956/0.774, allocations: 2.223 MB / 0.8858 GB, free: 2.246 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0007582/0.7748, allocations: 320.8 kB / 0.8861 GB, free: 2.035 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001537/0.7763, allocations: 0.5454 MB / 0.8866 GB, free: 1.676 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00498/0.7813, allocations: 2.422 MB / 0.889 GB, free: 108 kB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.7814, allocations: 0 / 0.889 GB, free: 108 kB / 0.5919 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7814, allocations: 0 / 0.889 GB, free: 108 kB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.156e-05/0.7814, allocations: 3.938 kB / 0.889 GB, free: 104 kB / 0.5919 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.003829/0.7852, allocations: 1.633 MB / 0.8906 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.7853, allocations: 9.875 kB / 0.8906 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002972/0.7883, allocations: 0.5353 MB / 0.8911 GB, free: 14.6 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.7904, allocations: 0.9818 MB / 0.8921 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001116/0.7915, allocations: 276.4 kB / 0.8923 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.7916, allocations: 67.94 kB / 0.8924 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/0.7941, allocations: 1.131 MB / 0.8935 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.7941, allocations: 3.938 kB / 0.8935 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.838e-05/0.7942, allocations: 28 kB / 0.8935 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/0.7943, allocations: 29.31 kB / 0.8936 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.7974, allocations: 1.2 MB / 0.8947 GB, free: 11.56 MB / 0.6075 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.005865/0.8033, allocations: 3.214 MB / 0.8979 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.8049, allocations: 0.682 MB / 0.8985 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007827/0.8057, allocations: 426.2 kB / 0.8989 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009073/0.8067, allocations: 1.021 MB / 0.8999 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.8077, allocations: 0.5182 MB / 0.9004 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.705e-06/0.8077, allocations: 0 / 0.9004 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002955/0.8107, allocations: 1.221 MB / 0.9016 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/0.8108, allocations: 144.8 kB / 0.9018 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001864/0.8126, allocations: 1.204 MB / 0.9029 GB, free: 2.742 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.8e-05/0.8127, allocations: 37.7 kB / 0.903 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.8131, allocations: 433.4 kB / 0.9034 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.8133, allocations: 197.2 kB / 0.9036 GB, free: 2.078 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002704/0.8135, allocations: 142.1 kB / 0.9037 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.8137, allocations: 330 kB / 0.904 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.8149, allocations: 460.9 kB / 0.9045 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.8163, allocations: 0.621 MB / 0.9051 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001968/0.8182, allocations: 0.9418 MB / 0.906 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.8183, allocations: 0 / 0.906 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003164/0.8214, allocations: 1.236 MB / 0.9072 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.781e-05/0.8215, allocations: 41.69 kB / 0.9072 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.8215, allocations: 4 kB / 0.9073 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.8215, allocations: 4 kB / 0.9073 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009592/0.8225, allocations: 195.9 kB / 0.9074 GB, free: 14 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.8225, allocations: 11.94 kB / 0.9075 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.8242, allocations: 270.8 kB / 0.9077 GB, free: 13.72 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-05/0.8243, allocations: 43.97 kB / 0.9078 GB, free: 13.68 MB / 0.6231 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.0005278/0.8248, allocations: 322.2 kB / 0.9081 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.825, allocations: 114.6 kB / 0.9082 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/0.8271, allocations: 0.9939 MB / 0.9091 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.8271, allocations: 11.98 kB / 0.9092 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.8272, allocations: 3.938 kB / 0.9092 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8272, allocations: 0 / 0.9092 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/0.8317, allocations: 3.159 MB / 0.9122 GB, free: 8.902 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.8317, allocations: 8 kB / 0.9122 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/0.8323, allocations: 116 kB / 0.9124 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.8323, allocations: 16 kB / 0.9124 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.528e-05/0.8324, allocations: 31.92 kB / 0.9124 GB, free: 8.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.073e-05/0.8324, allocations: 11.94 kB / 0.9124 GB, free: 8.719 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/0.8324, allocations: 8 kB / 0.9124 GB, free: 8.711 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002042/0.8345, allocations: 1.357 MB / 0.9137 GB, free: 7.238 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004897/0.835, allocations: 327.4 kB / 0.9141 GB, free: 6.898 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.8351, allocations: 31.98 kB / 0.9141 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.8363, allocations: 107.9 kB / 0.9142 GB, free: 6.762 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.8364, allocations: 67.67 kB / 0.9143 GB, free: 6.695 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.418e-05/0.8365, allocations: 39.97 kB / 0.9143 GB, free: 6.656 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001482/0.838, allocations: 0.8716 MB / 0.9151 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.2e-07/0.838, allocations: 0 / 0.9151 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001034/0.839, allocations: 303.8 kB / 0.9154 GB, free: 5.48 MB / 0.6231 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.0006777/0.8397, allocations: 348.9 kB / 0.9158 GB, free: 5.145 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002325/0.842, allocations: 1.019 MB / 0.9168 GB, free: 4.117 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.842, allocations: 4 kB / 0.9168 GB, free: 4.113 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0009064/0.843, allocations: 0.5086 MB / 0.9173 GB, free: 3.594 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002587/0.8455, allocations: 0.5339 MB / 0.9178 GB, free: 3.074 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003756/0.8493, allocations: 2.347 MB / 0.9201 GB, free: 0.5977 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006391/0.85, allocations: 1.065 MB / 0.9211 GB, free: 15.5 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001069/0.851, allocations: 278.8 kB / 0.9214 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.8513, allocations: 83.41 kB / 0.9215 GB, free: 15.15 MB / 0.6387 GB Notification: Performance of SimCode: time 7.91e-07/0.8513, allocations: 0 / 0.9215 GB, free: 15.15 MB / 0.6387 GB Notification: Performance of Templates: time 0.03524/0.8866, allocations: 21.26 MB / 0.9422 GB, free: 10.15 MB / 0.6544 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)