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.004864/0.004864, allocations: 104.9 kB / 15.74 MB, free: 6.039 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.001172/0.001172, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002027, allocations: 279 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9266/0.9266, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 91.86 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.15, allocations: 86.98 MB / 0.7664 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5149/0.6649, allocations: 194 MB / 0.9558 GB, free: 0.7891 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01007/0.675, allocations: 6.933 MB / 0.9626 GB, free: 9.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.6764, allocations: 39.75 kB / 0.9627 GB, free: 9.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001644/0.6781, allocations: 0.6869 MB / 0.9633 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.005314/0.6834, allocations: 2.345 MB / 0.9656 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003238/0.6866, allocations: 1.425 MB / 0.967 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004069/0.6907, allocations: 2.998 MB / 0.9699 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001336/0.6921, allocations: 0.8956 MB / 0.9708 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002518/0.6946, allocations: 1.14 MB / 0.9719 GB, free: 328 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.6958, allocations: 0.8023 MB / 0.9727 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.696, allocations: 100 kB / 0.9728 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004274/0.7003, allocations: 2.062 MB / 0.9748 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004122/0.7007, allocations: 358.9 kB / 0.9752 GB, free: 13 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006505/0.7014, allocations: 0.5831 MB / 0.9757 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003637/0.705, allocations: 2.427 MB / 0.9781 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7051, allocations: 0 / 0.9781 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7051, allocations: 4 kB / 0.9781 GB, free: 9.98 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.616e-05/0.7051, allocations: 0 / 0.9781 GB, free: 9.98 MB / 0.7325 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.003308/0.7084, allocations: 1.633 MB / 0.9797 GB, free: 8.289 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.7085, allocations: 11.97 kB / 0.9797 GB, free: 8.277 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002933/0.7114, allocations: 0.537 MB / 0.9802 GB, free: 7.738 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.7135, allocations: 1.035 MB / 0.9812 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.7136, allocations: 53.31 kB / 0.9813 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.7137, allocations: 68 kB / 0.9814 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.7161, allocations: 1.109 MB / 0.9824 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.7161, allocations: 4 kB / 0.9824 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.801e-05/0.7162, allocations: 27.94 kB / 0.9825 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.121e-05/0.7162, allocations: 41.23 kB / 0.9825 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002935/0.7192, allocations: 1.157 MB / 0.9836 GB, free: 4.18 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.005345/0.7245, allocations: 3.171 MB / 0.9867 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.7262, allocations: 0.6905 MB / 0.9874 GB, free: 236 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007913/0.727, allocations: 428.2 kB / 0.9878 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008901/0.7279, allocations: 1.021 MB / 0.9888 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.7289, allocations: 0.5104 MB / 0.9893 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=57): time 2.003e-06/0.7289, allocations: 0 / 0.9893 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of matching and sorting (n=57): time 0.002954/0.7319, allocations: 1.225 MB / 0.9905 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.369e-05/0.732, allocations: 140.9 kB / 0.9906 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001802/0.7338, allocations: 1.18 MB / 0.9918 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.476e-05/0.7339, allocations: 37.7 kB / 0.9918 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/0.7342, allocations: 433.5 kB / 0.9922 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.7344, allocations: 193.2 kB / 0.9924 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.7347, allocations: 146 kB / 0.9926 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.7348, allocations: 326 kB / 0.9929 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.7361, allocations: 448.8 kB / 0.9933 GB, free: 9.855 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.7375, allocations: 0.5938 MB / 0.9939 GB, free: 9.215 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.7395, allocations: 0.9223 MB / 0.9948 GB, free: 8.242 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.7395, allocations: 0 / 0.9948 GB, free: 8.242 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003057/0.7426, allocations: 1.194 MB / 0.996 GB, free: 7.031 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.578e-05/0.7427, allocations: 49.75 kB / 0.996 GB, free: 6.977 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.7427, allocations: 0 / 0.996 GB, free: 6.977 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.7427, allocations: 8 kB / 0.996 GB, free: 6.969 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009199/0.7436, allocations: 187.7 kB / 0.9962 GB, free: 6.785 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.7437, allocations: 7.938 kB / 0.9962 GB, free: 6.777 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.7451, allocations: 239.4 kB / 0.9964 GB, free: 6.543 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-05/0.7452, allocations: 39.91 kB / 0.9965 GB, free: 6.504 MB / 0.7481 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.0005167/0.7458, allocations: 332.5 kB / 0.9968 GB, free: 6.164 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.746, allocations: 122.5 kB / 0.9969 GB, free: 6.043 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002151/0.7481, allocations: 0.9953 MB / 0.9979 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.7482, allocations: 4 kB / 0.9979 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.7482, allocations: 11.92 kB / 0.9979 GB, free: 5.023 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.7482, allocations: 0 / 0.9979 GB, free: 5.023 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004971/0.7532, allocations: 3.162 MB / 1.001 GB, free: 1.707 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.7532, allocations: 8 kB / 1.001 GB, free: 1.699 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000602/0.7538, allocations: 123.9 kB / 1.001 GB, free: 1.578 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.293e-05/0.7538, allocations: 12 kB / 1.001 GB, free: 1.566 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-05/0.7539, allocations: 23.98 kB / 1.001 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.231e-05/0.7539, allocations: 11.94 kB / 1.001 GB, free: 1.531 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/0.7539, allocations: 15.94 kB / 1.001 GB, free: 1.516 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.7562, allocations: 1.341 MB / 1.002 GB, free: 60 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005545/0.7567, allocations: 331.3 kB / 1.003 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.757, allocations: 27.98 kB / 1.003 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.7581, allocations: 99.91 kB / 1.003 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.7582, allocations: 59.77 kB / 1.003 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.974e-05/0.7583, allocations: 39.97 kB / 1.003 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001545/0.7599, allocations: 0.8482 MB / 1.004 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7599, allocations: 0 / 1.004 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001098/0.761, allocations: 303.8 kB / 1.004 GB, free: 14.34 MB / 0.7637 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.0007235/0.7617, allocations: 351.2 kB / 1.004 GB, free: 14 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002445/0.7642, allocations: 1.017 MB / 1.005 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.7642, allocations: 3.984 kB / 1.005 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000947/0.7652, allocations: 0.5087 MB / 1.006 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.7679, allocations: 0.5555 MB / 1.006 GB, free: 11.9 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.7715, allocations: 2.021 MB / 1.008 GB, free: 9.754 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000722/0.7723, allocations: 1.077 MB / 1.01 GB, free: 8.648 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001/0.7733, allocations: 275.3 kB / 1.01 GB, free: 8.379 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002663/0.7736, allocations: 75.42 kB / 1.01 GB, free: 8.305 MB / 0.7637 GB Notification: Performance of SimCode: time 6.51e-07/0.7736, allocations: 0 / 1.01 GB, free: 8.305 MB / 0.7637 GB Notification: Performance of Templates: time 0.0364/0.81, allocations: 22.21 MB / 1.032 GB, free: 2.371 MB / 0.7794 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)