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.001312/0.001312, allocations: 106.8 kB / 16.41 MB, free: 6.496 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.001264/0.001264, allocations: 188 kB / 17.34 MB, free: 5.727 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00284/0.00284, allocations: 291.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.025/1.025, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 99.83 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4453/0.448, allocations: 86.98 MB / 0.7671 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2248/0.6728, allocations: 194.5 MB / 0.957 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4034/1.076, allocations: 6.938 MB / 0.9638 GB, free: 2 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/1.077, allocations: 49.03 kB / 0.9638 GB, free: 2 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001482/1.079, allocations: 0.709 MB / 0.9645 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.005224/1.084, allocations: 2.45 MB / 0.9669 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003161/1.087, allocations: 1.435 MB / 0.9683 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003526/1.091, allocations: 2.983 MB / 0.9712 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/1.092, allocations: 0.7361 MB / 0.9719 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002385/1.094, allocations: 1.155 MB / 0.9731 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/1.095, allocations: 0.803 MB / 0.9738 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001427/1.096, allocations: 99.31 kB / 0.9739 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003651/1.099, allocations: 2.073 MB / 0.976 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003418/1.1, allocations: 376.2 kB / 0.9763 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005697/1.1, allocations: 0.5894 MB / 0.9769 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003017/1.103, allocations: 2.431 MB / 0.9793 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/1.103, allocations: 2.281 kB / 0.9793 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/1.103, allocations: 1.125 kB / 0.9793 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.393e-05/1.103, allocations: 0 / 0.9793 GB, free: 1.641 MB / 0.7169 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.003244/1.106, allocations: 1.678 MB / 0.9809 GB, free: 16.73 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/1.106, allocations: 10.3 kB / 0.9809 GB, free: 16.73 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003/1.109, allocations: 0.5386 MB / 0.9815 GB, free: 16.67 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/1.112, allocations: 1.052 MB / 0.9825 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/1.112, allocations: 55.91 kB / 0.9825 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/1.112, allocations: 65.81 kB / 0.9826 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/1.114, allocations: 1.102 MB / 0.9837 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/1.114, allocations: 2.375 kB / 0.9837 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.715e-05/1.114, allocations: 28.94 kB / 0.9837 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-05/1.114, allocations: 33.89 kB / 0.9837 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/1.117, allocations: 1.162 MB / 0.9849 GB, free: 16.21 MB / 0.7325 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.005137/1.122, allocations: 3.168 MB / 0.988 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/1.123, allocations: 0.6541 MB / 0.9886 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007308/1.124, allocations: 394.8 kB / 0.989 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/1.125, allocations: 1.023 MB / 0.99 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009521/1.126, allocations: 0.517 MB / 0.9905 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=57): time 2.154e-06/1.126, allocations: 0 / 0.9905 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of matching and sorting (n=57): time 0.002935/1.129, allocations: 1.227 MB / 0.9917 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/1.129, allocations: 147.7 kB / 0.9918 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001787/1.131, allocations: 1.177 MB / 0.993 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001208/1.131, allocations: 38.34 kB / 0.993 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/1.131, allocations: 445.6 kB / 0.9934 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/1.132, allocations: 199.4 kB / 0.9936 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/1.132, allocations: 149.1 kB / 0.9938 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001638/1.132, allocations: 331 kB / 0.9941 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/1.133, allocations: 438.6 kB / 0.9945 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/1.135, allocations: 0.5963 MB / 0.9951 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001971/1.137, allocations: 0.9302 MB / 0.996 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/1.137, allocations: 5.562 kB / 0.996 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003025/1.14, allocations: 1.2 MB / 0.9972 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/1.14, allocations: 35.78 kB / 0.9972 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/1.14, allocations: 8.281 kB / 0.9972 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/1.14, allocations: 5.062 kB / 0.9972 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009301/1.141, allocations: 189.4 kB / 0.9974 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/1.141, allocations: 6.875 kB / 0.9974 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/1.142, allocations: 243.1 kB / 0.9976 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.74e-05/1.142, allocations: 43.69 kB / 0.9977 GB, free: 12.4 MB / 0.7325 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.0005105/1.143, allocations: 331.7 kB / 0.998 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/1.143, allocations: 122.5 kB / 0.9981 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/1.145, allocations: 0.9947 MB / 0.9991 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/1.145, allocations: 9.344 kB / 0.9991 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/1.145, allocations: 3.219 kB / 0.9991 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.145, allocations: 2.953 kB / 0.9991 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004445/1.149, allocations: 3.16 MB / 1.002 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/1.149, allocations: 8.156 kB / 1.002 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006037/1.15, allocations: 125.3 kB / 1.002 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.799e-05/1.15, allocations: 15.03 kB / 1.002 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.529e-05/1.15, allocations: 23.02 kB / 1.002 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.064e-05/1.15, allocations: 13.97 kB / 1.002 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.15, allocations: 9.969 kB / 1.002 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/1.152, allocations: 1.352 MB / 1.004 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005852/1.153, allocations: 337.6 kB / 1.004 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/1.153, allocations: 23.34 kB / 1.004 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/1.154, allocations: 102.2 kB / 1.004 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/1.154, allocations: 60.09 kB / 1.004 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.078e-05/1.154, allocations: 38.66 kB / 1.004 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00137/1.156, allocations: 0.8482 MB / 1.005 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/1.156, allocations: 1.094 kB / 1.005 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00105/1.157, allocations: 306.6 kB / 1.005 GB, free: 10.41 MB / 0.7325 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.0007243/1.157, allocations: 357.3 kB / 1.006 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00239/1.16, allocations: 0.9668 MB / 1.007 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.16, allocations: 0 / 1.007 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008613/1.161, allocations: 487.4 kB / 1.007 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002728/1.163, allocations: 0.5537 MB / 1.008 GB, free: 10 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003716/1.167, allocations: 2.058 MB / 1.01 GB, free: 9.086 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007781/1.168, allocations: 1.069 MB / 1.011 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001145/1.169, allocations: 284.8 kB / 1.011 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/1.169, allocations: 78.3 kB / 1.011 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of SimCode: time 1.152e-06/1.169, allocations: 0 / 1.011 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of Templates: time 0.03934/1.209, allocations: 22.26 MB / 1.033 GB, free: 14.55 MB / 0.7481 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)