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.001782/0.001782, allocations: 106.9 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.001955/0.001955, allocations: 191.8 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.339/1.339, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002486/0.002486, allocations: 278.2 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.126/1.126, allocations: 178.5 MB / 0.5079 GB, free: 12.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002669/0.00267, allocations: 95.84 kB / 0.6071 GB, free: 9.309 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1807, allocations: 89.14 MB / 0.6942 GB, free: 88 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4692/0.6499, allocations: 194 MB / 0.8836 GB, free: 8.059 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01209/0.662, allocations: 6.936 MB / 0.8904 GB, free: 1.105 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.6637, allocations: 47.69 kB / 0.8904 GB, free: 1.059 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.666, allocations: 0.6947 MB / 0.8911 GB, free: 368 kB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006698/0.6727, allocations: 2.342 MB / 0.8934 GB, free: 14 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003904/0.6767, allocations: 1.406 MB / 0.8948 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004628/0.6813, allocations: 2.983 MB / 0.8977 GB, free: 9.641 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001855/0.6832, allocations: 0.8868 MB / 0.8985 GB, free: 8.758 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003216/0.6864, allocations: 1.127 MB / 0.8996 GB, free: 7.637 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001931/0.6884, allocations: 0.808 MB / 0.9004 GB, free: 6.84 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003312/0.6887, allocations: 104 kB / 0.9005 GB, free: 6.738 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004322/0.693, allocations: 2.05 MB / 0.9025 GB, free: 4.684 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0006352/0.6937, allocations: 370.8 kB / 0.9029 GB, free: 4.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.00118/0.6949, allocations: 0.5831 MB / 0.9035 GB, free: 3.734 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.004954/0.6998, allocations: 2.369 MB / 0.9058 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.6998, allocations: 0 / 0.9058 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.505e-06/0.6999, allocations: 3.938 kB / 0.9058 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.025e-05/0.6999, allocations: 0 / 0.9058 GB, free: 1.355 MB / 0.6544 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.004451/0.7044, allocations: 1.632 MB / 0.9074 GB, free: 15.66 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.7044, allocations: 12.03 kB / 0.9074 GB, free: 15.65 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003062/0.7075, allocations: 0.5331 MB / 0.9079 GB, free: 15.12 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/0.7099, allocations: 0.9807 MB / 0.9089 GB, free: 14.09 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001222/0.7112, allocations: 281 kB / 0.9091 GB, free: 13.82 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.7114, allocations: 71.98 kB / 0.9092 GB, free: 13.75 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002754/0.7141, allocations: 1.12 MB / 0.9103 GB, free: 12.6 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.7142, allocations: 7.875 kB / 0.9103 GB, free: 12.59 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.966e-05/0.7143, allocations: 28 kB / 0.9103 GB, free: 12.57 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.162e-05/0.7143, allocations: 33.3 kB / 0.9104 GB, free: 12.54 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003433/0.7178, allocations: 1.192 MB / 0.9115 GB, free: 11.34 MB / 0.67 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.00661/0.7244, allocations: 3.207 MB / 0.9146 GB, free: 8.055 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.7262, allocations: 0.6841 MB / 0.9153 GB, free: 7.359 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008256/0.727, allocations: 424.2 kB / 0.9157 GB, free: 6.945 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/0.7281, allocations: 1.021 MB / 0.9167 GB, free: 5.703 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.7292, allocations: 0.5111 MB / 0.9172 GB, free: 5.172 MB / 0.67 GB Notification: Performance of pre-optimization done (n=57): time 2.525e-06/0.7292, allocations: 0 / 0.9172 GB, free: 5.172 MB / 0.67 GB Notification: Performance of matching and sorting (n=57): time 0.003115/0.7323, allocations: 1.232 MB / 0.9184 GB, free: 3.93 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.858e-05/0.7324, allocations: 140.8 kB / 0.9186 GB, free: 3.762 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.7345, allocations: 1.204 MB / 0.9197 GB, free: 2.543 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 8.904e-05/0.7346, allocations: 37.7 kB / 0.9198 GB, free: 2.5 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.735, allocations: 437.4 kB / 0.9202 GB, free: 2.07 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.7352, allocations: 193.2 kB / 0.9204 GB, free: 1.879 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/0.7355, allocations: 142.1 kB / 0.9205 GB, free: 1.734 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.7356, allocations: 326 kB / 0.9208 GB, free: 1.41 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/0.737, allocations: 464.9 kB / 0.9213 GB, free: 0.9492 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.7386, allocations: 0.6133 MB / 0.9219 GB, free: 292 kB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002261/0.7409, allocations: 0.9383 MB / 0.9228 GB, free: 15.29 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.7409, allocations: 4 kB / 0.9228 GB, free: 15.29 MB / 0.6856 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003428/0.7443, allocations: 1.24 MB / 0.924 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 5.672e-05/0.7444, allocations: 41.64 kB / 0.924 GB, free: 13.99 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.7444, allocations: 4.812 kB / 0.924 GB, free: 13.98 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.7445, allocations: 8 kB / 0.924 GB, free: 13.98 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.7455, allocations: 199.9 kB / 0.9242 GB, free: 13.78 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.7455, allocations: 7.938 kB / 0.9242 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.7472, allocations: 274.7 kB / 0.9245 GB, free: 13.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.06e-05/0.7473, allocations: 35.98 kB / 0.9245 GB, free: 13.47 MB / 0.6856 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.0005765/0.7479, allocations: 333.2 kB / 0.9248 GB, free: 13.13 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002634/0.7482, allocations: 114.7 kB / 0.925 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/0.7505, allocations: 0.9944 MB / 0.9259 GB, free: 12.01 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.7506, allocations: 4 kB / 0.9259 GB, free: 12.01 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.7506, allocations: 7.938 kB / 0.9259 GB, free: 12 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.7506, allocations: 3.984 kB / 0.9259 GB, free: 12 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.7559, allocations: 3.165 MB / 0.929 GB, free: 8.676 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.756, allocations: 8 kB / 0.929 GB, free: 8.668 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006088/0.7566, allocations: 116 kB / 0.9292 GB, free: 8.555 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.847e-05/0.7566, allocations: 12 kB / 0.9292 GB, free: 8.543 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.643e-05/0.7567, allocations: 27.98 kB / 0.9292 GB, free: 8.516 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.756e-05/0.7567, allocations: 15.92 kB / 0.9292 GB, free: 8.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/0.7567, allocations: 11.94 kB / 0.9292 GB, free: 8.488 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.7596, allocations: 1.341 MB / 0.9305 GB, free: 7.027 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007314/0.7603, allocations: 331.4 kB / 0.9308 GB, free: 6.684 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.7605, allocations: 23.94 kB / 0.9309 GB, free: 6.66 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.7616, allocations: 111.9 kB / 0.931 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.7618, allocations: 59.77 kB / 0.931 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/0.7619, allocations: 35.97 kB / 0.9311 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001674/0.7635, allocations: 0.8755 MB / 0.9319 GB, free: 5.574 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7636, allocations: 0 / 0.9319 GB, free: 5.574 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00115/0.7647, allocations: 299.8 kB / 0.9322 GB, free: 5.281 MB / 0.6856 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.0007382/0.7655, allocations: 346.5 kB / 0.9325 GB, free: 4.949 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002701/0.7682, allocations: 1.053 MB / 0.9336 GB, free: 3.887 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.7682, allocations: 4 kB / 0.9336 GB, free: 3.883 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.7692, allocations: 0.5137 MB / 0.9341 GB, free: 3.359 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.7721, allocations: 0.5536 MB / 0.9346 GB, free: 2.828 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003907/0.776, allocations: 2.093 MB / 0.9367 GB, free: 0.6016 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008559/0.7769, allocations: 1.065 MB / 0.9377 GB, free: 15.51 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.7772, allocations: 87.39 kB / 0.9378 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of SimCode: time 1.372e-06/0.7773, allocations: 0 / 0.9378 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of Templates: time 0.03017/0.8074, allocations: 18.74 MB / 0.9561 GB, free: 12.82 MB / 0.7169 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)