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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7868/0.7868, allocations: 143.4 MB / 159.2 MB, free: 4.945 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 183.1 kB / 191.9 MB, free: 5.699 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 447.4 MB, free: 5.828 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 107.2 kB / 0.517 GB, free: 3.691 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00185/0.00185, allocations: 277.5 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 75.89 kB / 0.6886 GB, free: 3.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3525, allocations: 81.29 MB / 0.7679 GB, free: 27.65 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5362/0.8888, allocations: 191.6 MB / 0.9551 GB, free: 11.88 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.01001/0.8988, allocations: 6.991 MB / 0.9619 GB, free: 11.24 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001999/0.9009, allocations: 40.41 kB / 0.9619 GB, free: 11.22 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.9027, allocations: 0.5682 MB / 0.9625 GB, free: 11.04 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.007989/0.9107, allocations: 2.174 MB / 0.9646 GB, free: 10.57 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005074/0.9158, allocations: 1.27 MB / 0.9659 GB, free: 10.28 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.005664/0.9215, allocations: 3.766 MB / 0.9695 GB, free: 9.215 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001691/0.9233, allocations: 0.7834 MB / 0.9703 GB, free: 8.922 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002182/0.9255, allocations: 0.9962 MB / 0.9713 GB, free: 8.664 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.9273, allocations: 0.8031 MB / 0.9721 GB, free: 8.418 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.9275, allocations: 51.56 kB / 0.9721 GB, free: 8.414 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004095/0.9316, allocations: 2.222 MB / 0.9743 GB, free: 7.734 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004475/0.932, allocations: 320.8 kB / 0.9746 GB, free: 7.598 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007177/0.9328, allocations: 0.5382 MB / 0.9751 GB, free: 7.387 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.003669/0.9364, allocations: 2.417 MB / 0.9775 GB, free: 6.055 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.9365, allocations: 0 / 0.9775 GB, free: 6.055 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.106e-06/0.9365, allocations: 2.812 kB / 0.9775 GB, free: 6.055 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.955e-05/0.9365, allocations: 3.938 kB / 0.9775 GB, free: 6.051 MB / 0.573 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.003347/0.9399, allocations: 1.625 MB / 0.9791 GB, free: 4.82 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.9399, allocations: 8 kB / 0.9791 GB, free: 4.82 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002822/0.9427, allocations: 0.5412 MB / 0.9796 GB, free: 4.574 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/0.9448, allocations: 0.9792 MB / 0.9806 GB, free: 3.832 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001198/0.946, allocations: 280.6 kB / 0.9808 GB, free: 3.715 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.9461, allocations: 67.56 kB / 0.9809 GB, free: 3.695 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002503/0.9487, allocations: 1.125 MB / 0.982 GB, free: 3.031 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.9487, allocations: 14.45 kB / 0.982 GB, free: 3.02 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-05/0.9488, allocations: 25.28 kB / 0.982 GB, free: 3 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.825e-05/0.9488, allocations: 36.56 kB / 0.9821 GB, free: 2.992 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003294/0.9521, allocations: 1.205 MB / 0.9832 GB, free: 2.41 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006249/0.9584, allocations: 3.201 MB / 0.9864 GB, free: 44 kB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.9601, allocations: 0.6897 MB / 0.987 GB, free: 15.68 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007717/0.9609, allocations: 424.8 kB / 0.9874 GB, free: 15.48 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008628/0.9618, allocations: 1.02 MB / 0.9884 GB, free: 14.31 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009756/0.9628, allocations: 0.5119 MB / 0.9889 GB, free: 13.98 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=57): time 2.966e-06/0.9628, allocations: 4 kB / 0.9889 GB, free: 13.98 MB / 0.5886 GB Notification: Performance of matching and sorting (n=57): time 0.0029/0.9657, allocations: 1.22 MB / 0.9901 GB, free: 13.37 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.9658, allocations: 144.3 kB / 0.9903 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001921/0.9677, allocations: 1.202 MB / 0.9915 GB, free: 12.55 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.594e-05/0.9678, allocations: 41.97 kB / 0.9915 GB, free: 12.51 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.9681, allocations: 439.1 kB / 0.9919 GB, free: 12.13 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.9683, allocations: 190.6 kB / 0.9921 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002735/0.9686, allocations: 147 kB / 0.9922 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.9687, allocations: 331.3 kB / 0.9925 GB, free: 11.56 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.9701, allocations: 454.2 kB / 0.993 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.9716, allocations: 0.6181 MB / 0.9936 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002105/0.9737, allocations: 0.9442 MB / 0.9945 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.9738, allocations: 0 / 0.9945 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003408/0.9772, allocations: 1.238 MB / 0.9957 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.096e-05/0.9772, allocations: 45.69 kB / 0.9958 GB, free: 9.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.9773, allocations: 0 / 0.9958 GB, free: 9.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.9773, allocations: 11.94 kB / 0.9958 GB, free: 9.578 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.9783, allocations: 192.1 kB / 0.996 GB, free: 9.391 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.838e-05/0.9783, allocations: 15.88 kB / 0.996 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/0.9801, allocations: 270.8 kB / 0.9962 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.484e-05/0.9802, allocations: 39.97 kB / 0.9963 GB, free: 9.07 MB / 0.5886 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.0005928/0.9808, allocations: 335.3 kB / 0.9966 GB, free: 8.73 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.9811, allocations: 114.6 kB / 0.9967 GB, free: 8.617 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/0.9832, allocations: 0.9906 MB / 0.9977 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.9832, allocations: 11.98 kB / 0.9977 GB, free: 7.602 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.9832, allocations: 3.938 kB / 0.9977 GB, free: 7.598 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.9832, allocations: 4 kB / 0.9977 GB, free: 7.594 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004591/0.9878, allocations: 3.168 MB / 1.001 GB, free: 4.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.9879, allocations: 8 kB / 1.001 GB, free: 4.277 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005672/0.9884, allocations: 123.9 kB / 1.001 GB, free: 4.156 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.506e-05/0.9885, allocations: 12 kB / 1.001 GB, free: 4.145 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.214e-05/0.9885, allocations: 19.98 kB / 1.001 GB, free: 4.125 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.9885, allocations: 12 kB / 1.001 GB, free: 4.113 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.9886, allocations: 11.94 kB / 1.001 GB, free: 4.102 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.992, allocations: 2.571 MB / 1.003 GB, free: 1.367 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005616/0.9926, allocations: 331.3 kB / 1.004 GB, free: 1.023 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.9927, allocations: 23.98 kB / 1.004 GB, free: 1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.9939, allocations: 115.8 kB / 1.004 GB, free: 0.8867 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.994, allocations: 55.81 kB / 1.004 GB, free: 0.832 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/0.9941, allocations: 43.97 kB / 1.004 GB, free: 0.7891 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001533/0.9956, allocations: 0.8615 MB / 1.005 GB, free: 15.92 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.413e-06/0.9956, allocations: 0 / 1.005 GB, free: 15.92 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001137/0.9968, allocations: 307.8 kB / 1.005 GB, free: 15.62 MB / 0.6042 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.0006977/0.9975, allocations: 344.1 kB / 1.005 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002525/1, allocations: 1.024 MB / 1.006 GB, free: 14.27 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1, allocations: 0 / 1.006 GB, free: 14.27 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0009396/1.001, allocations: 0.5202 MB / 1.007 GB, free: 13.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/1.004, allocations: 0.534 MB / 1.008 GB, free: 13.22 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/1.008, allocations: 2.737 MB / 1.01 GB, free: 10.34 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006886/1.009, allocations: 1.085 MB / 1.011 GB, free: 9.227 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001204/1.01, allocations: 280 kB / 1.012 GB, free: 8.953 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/1.01, allocations: 83.41 kB / 1.012 GB, free: 8.871 MB / 0.6042 GB Notification: Performance of SimCode: time 1.172e-06/1.01, allocations: 0 / 1.012 GB, free: 8.871 MB / 0.6042 GB Notification: Performance of Templates: time 0.03573/1.046, allocations: 21.75 MB / 1.033 GB, free: 3.355 MB / 0.6198 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)