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.0007956/0.0007956, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008834/0.0008833, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00174/0.00174, allocations: 267.1 kB / 291.4 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9486/0.9486, allocations: 169.5 MB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004001, allocations: 13.41 kB / 0.598 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.155, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4443/0.5993, allocations: 176.6 MB / 0.8569 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009523/0.6089, allocations: 6.565 MB / 0.8633 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/0.6102, allocations: 42.5 kB / 0.8634 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.6118, allocations: 470.3 kB / 0.8638 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00461/0.6164, allocations: 1.691 MB / 0.8655 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002836/0.6192, allocations: 1.067 MB / 0.8665 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003786/0.623, allocations: 3.215 MB / 0.8697 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.6243, allocations: 0.6873 MB / 0.8703 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001785/0.6261, allocations: 0.9548 MB / 0.8713 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.6274, allocations: 0.7315 MB / 0.872 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001976/0.6276, allocations: 40.12 kB / 0.872 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002924/0.6305, allocations: 1.222 MB / 0.8732 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004346/0.631, allocations: 301.5 kB / 0.8735 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003929/0.6314, allocations: 237.2 kB / 0.8737 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.6335, allocations: 1.617 MB / 0.8753 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.6335, allocations: 0 / 0.8753 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.914e-06/0.6335, allocations: 0 / 0.8753 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.103e-05/0.6335, allocations: 4 kB / 0.8753 GB, free: 11.65 MB / 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.003251/0.6368, allocations: 1.406 MB / 0.8767 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.6368, allocations: 7.781 kB / 0.8767 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/0.6397, allocations: 0.5971 MB / 0.8773 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.6418, allocations: 0.9552 MB / 0.8782 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00108/0.6429, allocations: 317.2 kB / 0.8785 GB, free: 9.449 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.6431, allocations: 66.53 kB / 0.8786 GB, free: 9.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.6456, allocations: 1.148 MB / 0.8797 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.6457, allocations: 0 / 0.8797 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/0.6458, allocations: 31.95 kB / 0.8797 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-05/0.6458, allocations: 33.3 kB / 0.8798 GB, free: 8.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003271/0.6491, allocations: 1.25 MB / 0.881 GB, free: 7 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.005775/0.6549, allocations: 3.252 MB / 0.8842 GB, free: 3.668 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.6566, allocations: 0.6998 MB / 0.8848 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007908/0.6574, allocations: 424.8 kB / 0.8852 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00087/0.6582, allocations: 1.021 MB / 0.8862 GB, free: 1.297 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009804/0.6592, allocations: 0.526 MB / 0.8868 GB, free: 0.75 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 2.405e-06/0.6593, allocations: 0 / 0.8868 GB, free: 0.75 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.00286/0.6621, allocations: 1.232 MB / 0.888 GB, free: 15.51 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/0.6622, allocations: 140.9 kB / 0.8881 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.6642, allocations: 1.215 MB / 0.8893 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.749e-05/0.6643, allocations: 37.7 kB / 0.8893 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003728/0.6647, allocations: 441.5 kB / 0.8897 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.6648, allocations: 189.2 kB / 0.8899 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.6649, allocations: 12 kB / 0.8899 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.665, allocations: 329.9 kB / 0.8902 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.6663, allocations: 484.9 kB / 0.8907 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.6677, allocations: 0.6406 MB / 0.8913 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.669, allocations: 0.5346 MB / 0.8919 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.669, allocations: 0 / 0.8919 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003045/0.6721, allocations: 1.287 MB / 0.8931 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/0.6721, allocations: 37.7 kB / 0.8931 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.6721, allocations: 4 kB / 0.8931 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.6722, allocations: 4 kB / 0.8932 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009632/0.6731, allocations: 220 kB / 0.8934 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.6731, allocations: 7.938 kB / 0.8934 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.6747, allocations: 306.8 kB / 0.8937 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-05/0.6748, allocations: 31.98 kB / 0.8937 GB, free: 9.496 MB / 0.6075 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 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004696/0.6752, allocations: 337.9 kB / 0.894 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.6754, allocations: 114.6 kB / 0.8941 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.6776, allocations: 1.012 MB / 0.8951 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.6776, allocations: 4 kB / 0.8951 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.6776, allocations: 0 / 0.8951 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.6776, allocations: 7.984 kB / 0.8951 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004799/0.6824, allocations: 3.178 MB / 0.8982 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.6825, allocations: 8 kB / 0.8982 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.6831, allocations: 124.1 kB / 0.8984 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.591e-05/0.6831, allocations: 19.89 kB / 0.8984 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.421e-05/0.6831, allocations: 24 kB / 0.8984 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.6832, allocations: 11.98 kB / 0.8984 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/0.6832, allocations: 12.45 kB / 0.8984 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.6853, allocations: 1.356 MB / 0.8997 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004877/0.6858, allocations: 331.4 kB / 0.9001 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.6859, allocations: 23.95 kB / 0.9001 GB, free: 2.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.6871, allocations: 127.9 kB / 0.9002 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.915e-05/0.6872, allocations: 63.77 kB / 0.9003 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.082e-05/0.6873, allocations: 39.97 kB / 0.9003 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001511/0.6888, allocations: 0.8794 MB / 0.9012 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.7e-07/0.6888, allocations: 4 kB / 0.9012 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001023/0.6898, allocations: 295.8 kB / 0.9014 GB, free: 1.238 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006622/0.6905, allocations: 345.2 kB / 0.9018 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002307/0.6928, allocations: 1.056 MB / 0.9028 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.6928, allocations: 4 kB / 0.9028 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0009021/0.6937, allocations: 0.5126 MB / 0.9033 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/0.6964, allocations: 0.5255 MB / 0.9038 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.7, allocations: 2.295 MB / 0.9061 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/0.7007, allocations: 1.069 MB / 0.9071 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001158/0.7019, allocations: 285 kB / 0.9074 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002618/0.7021, allocations: 83.41 kB / 0.9075 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of SimCode: time 3.61e-07/0.7022, allocations: 0 / 0.9075 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of Templates: time 0.03303/0.7352, allocations: 20.6 MB / 0.9276 GB, free: 6.57 MB / 0.6387 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)