Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.008338/0.008338, allocations: 100.5 kB / 15.73 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.002129/0.002129, allocations: 201.3 kB / 16.68 MB, free: 6.375 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7778/0.7778, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.44 kB / 0.5814 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1737, allocations: 80.21 MB / 0.6597 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6161/0.7899, allocations: 194 MB / 0.8491 GB, free: 1.867 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.009778/0.7997, allocations: 6.928 MB / 0.8559 GB, free: 1.621 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.8018, allocations: 48.41 kB / 0.8559 GB, free: 1.621 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.8037, allocations: 0.6916 MB / 0.8566 GB, free: 1.605 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006445/0.8103, allocations: 2.327 MB / 0.8589 GB, free: 1.5 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.8138, allocations: 1.429 MB / 0.8603 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007397/0.8212, allocations: 2.99 MB / 0.8632 GB, free: 1.43 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002078/0.8233, allocations: 0.8992 MB / 0.8641 GB, free: 1.332 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003772/0.8271, allocations: 1.131 MB / 0.8652 GB, free: 1.324 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.8288, allocations: 0.8017 MB / 0.866 GB, free: 1.316 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.829, allocations: 98.72 kB / 0.8661 GB, free: 1.316 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004196/0.8332, allocations: 2.06 MB / 0.8681 GB, free: 1.297 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003975/0.8336, allocations: 361 kB / 0.8684 GB, free: 1.293 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0006885/0.8343, allocations: 0.5874 MB / 0.869 GB, free: 1.152 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003935/0.8382, allocations: 2.431 MB / 0.8714 GB, free: 0.8711 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.8382, allocations: 2.531 kB / 0.8714 GB, free: 0.8711 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8383, allocations: 4 kB / 0.8714 GB, free: 0.8672 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.808e-05/0.8383, allocations: 0 / 0.8714 GB, free: 0.8672 MB / 0.6387 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.003132/0.8414, allocations: 1.675 MB / 0.873 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.8415, allocations: 6.781 kB / 0.873 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/0.8443, allocations: 0.5426 MB / 0.8736 GB, free: 15.85 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002385/0.8467, allocations: 1.046 MB / 0.8746 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.108e-05/0.8468, allocations: 55.97 kB / 0.8746 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.847, allocations: 66.72 kB / 0.8747 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.8494, allocations: 1.105 MB / 0.8758 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.8494, allocations: 13.47 kB / 0.8758 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.307e-05/0.8495, allocations: 26.09 kB / 0.8758 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.532e-05/0.8495, allocations: 30.06 kB / 0.8758 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002786/0.8523, allocations: 1.165 MB / 0.877 GB, free: 15.33 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005384/0.8577, allocations: 3.168 MB / 0.8801 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.8593, allocations: 0.6802 MB / 0.8807 GB, free: 14.33 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007865/0.8601, allocations: 425 kB / 0.8811 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008814/0.861, allocations: 1.026 MB / 0.8821 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009594/0.862, allocations: 0.5125 MB / 0.8826 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=57): time 2.595e-06/0.862, allocations: 3.938 kB / 0.8826 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of matching and sorting (n=57): time 0.002872/0.8649, allocations: 1.235 MB / 0.8838 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.979e-05/0.865, allocations: 140.3 kB / 0.884 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.8669, allocations: 1.174 MB / 0.8851 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.64e-05/0.867, allocations: 41.52 kB / 0.8852 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/0.8674, allocations: 447.6 kB / 0.8856 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.8675, allocations: 198 kB / 0.8858 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002632/0.8678, allocations: 144.9 kB / 0.8859 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.8679, allocations: 326.6 kB / 0.8862 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.8691, allocations: 438.3 kB / 0.8867 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.8705, allocations: 0.5965 MB / 0.8872 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/0.8724, allocations: 0.9293 MB / 0.8881 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.8725, allocations: 4.719 kB / 0.8881 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003041/0.8755, allocations: 1.2 MB / 0.8893 GB, free: 9.59 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/0.8756, allocations: 42.23 kB / 0.8894 GB, free: 9.555 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.8756, allocations: 3.594 kB / 0.8894 GB, free: 9.555 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.8756, allocations: 8.781 kB / 0.8894 GB, free: 9.551 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008661/0.8765, allocations: 186.4 kB / 0.8895 GB, free: 9.504 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.8765, allocations: 11.33 kB / 0.8896 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.878, allocations: 241.1 kB / 0.8898 GB, free: 9.379 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.935e-05/0.8781, allocations: 37.88 kB / 0.8898 GB, free: 9.367 MB / 0.6544 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.0005576/0.8787, allocations: 335.6 kB / 0.8901 GB, free: 9.109 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.8789, allocations: 123.4 kB / 0.8903 GB, free: 9.047 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.881, allocations: 1 MB / 0.8912 GB, free: 8.492 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.881, allocations: 12.89 kB / 0.8913 GB, free: 8.484 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.881, allocations: 2.438 kB / 0.8913 GB, free: 8.484 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.881, allocations: 3.938 kB / 0.8913 GB, free: 8.48 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0047/0.8857, allocations: 3.158 MB / 0.8943 GB, free: 6.305 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.8858, allocations: 7.844 kB / 0.8944 GB, free: 6.305 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005507/0.8863, allocations: 121 kB / 0.8945 GB, free: 6.277 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.536e-05/0.8863, allocations: 9.812 kB / 0.8945 GB, free: 6.277 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.8864, allocations: 26.58 kB / 0.8945 GB, free: 6.266 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.175e-05/0.8864, allocations: 15.91 kB / 0.8945 GB, free: 6.266 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.8864, allocations: 14.02 kB / 0.8945 GB, free: 6.262 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/0.8887, allocations: 1.35 MB / 0.8958 GB, free: 5.289 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005819/0.8893, allocations: 331.7 kB / 0.8962 GB, free: 5.012 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.8894, allocations: 24.86 kB / 0.8962 GB, free: 5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.8905, allocations: 98.59 kB / 0.8963 GB, free: 4.965 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.8906, allocations: 63.84 kB / 0.8963 GB, free: 4.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.638e-05/0.8907, allocations: 39.36 kB / 0.8964 GB, free: 4.918 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001477/0.8922, allocations: 0.849 MB / 0.8972 GB, free: 4.449 MB / 0.6544 GB Notification: Performance of sort global known variables: time 5.81e-07/0.8922, allocations: 0 / 0.8972 GB, free: 4.449 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001056/0.8933, allocations: 301.8 kB / 0.8975 GB, free: 4.395 MB / 0.6544 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.0007007/0.894, allocations: 348.3 kB / 0.8978 GB, free: 4.215 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002426/0.8964, allocations: 1.014 MB / 0.8988 GB, free: 3.719 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.8964, allocations: 2.781 kB / 0.8988 GB, free: 3.719 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009126/0.8973, allocations: 0.5066 MB / 0.8993 GB, free: 3.457 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/0.9001, allocations: 0.5552 MB / 0.8999 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.9037, allocations: 2.065 MB / 0.9019 GB, free: 1.816 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006676/0.9044, allocations: 1.069 MB / 0.9029 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001077/0.9055, allocations: 272.4 kB / 0.9032 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.9057, allocations: 78.92 kB / 0.9033 GB, free: 0.8125 MB / 0.6544 GB Notification: Performance of SimCode: time 8.62e-07/0.9057, allocations: 4 kB / 0.9033 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of Templates: time 0.03437/0.9401, allocations: 22.19 MB / 0.9249 GB, free: 11.71 MB / 0.6856 GB make -j1 -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)