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.005797/0.005798, allocations: 100.3 kB / 15.73 MB, free: 6.027 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.001261/0.001261, allocations: 186.9 kB / 16.67 MB, free: 5.965 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.378/1.378, 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/IDEAS 3.0.0/package.mo): time 0.9324/0.9324, allocations: 132.2 MB / 422.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.73 kB / 0.5814 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1657, allocations: 80.2 MB / 0.6597 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5901/0.7559, allocations: 194 MB / 0.8491 GB, free: 1.906 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.009637/0.7655, allocations: 6.933 MB / 0.8559 GB, free: 1.656 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.7669, allocations: 46.16 kB / 0.8559 GB, free: 1.656 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.7684, allocations: 0.7017 MB / 0.8566 GB, free: 1.645 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006101/0.7746, allocations: 2.435 MB / 0.859 GB, free: 1.539 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003248/0.7778, allocations: 1.428 MB / 0.8604 GB, free: 1.488 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003425/0.7813, allocations: 3.004 MB / 0.8633 GB, free: 1.469 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.7824, allocations: 0.8998 MB / 0.8642 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.7848, allocations: 1.152 MB / 0.8653 GB, free: 1.359 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.786, allocations: 0.8002 MB / 0.8661 GB, free: 1.348 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.7862, allocations: 98.72 kB / 0.8662 GB, free: 1.348 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004107/0.7903, allocations: 2.066 MB / 0.8682 GB, free: 1.328 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003443/0.7906, allocations: 367.9 kB / 0.8686 GB, free: 1.324 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.000563/0.7912, allocations: 0.5909 MB / 0.8692 GB, free: 1.184 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.00332/0.7945, allocations: 2.418 MB / 0.8715 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.7946, allocations: 3.406 kB / 0.8715 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7946, allocations: 0 / 0.8715 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.236e-05/0.7946, allocations: 0 / 0.8715 GB, free: 0.9141 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.002923/0.7975, allocations: 1.627 MB / 0.8731 GB, free: 36 kB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.7976, allocations: 8.438 kB / 0.8731 GB, free: 36 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002735/0.8003, allocations: 0.5383 MB / 0.8736 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.8023, allocations: 1.039 MB / 0.8747 GB, free: 15.6 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/0.8024, allocations: 54.62 kB / 0.8747 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.8025, allocations: 68.58 kB / 0.8748 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.8047, allocations: 1.105 MB / 0.8759 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.8047, allocations: 2.562 kB / 0.8759 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.172e-05/0.8048, allocations: 33.48 kB / 0.8759 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.663e-05/0.8049, allocations: 35.41 kB / 0.8759 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00261/0.8075, allocations: 1.162 MB / 0.8771 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005104/0.8126, allocations: 3.159 MB / 0.8801 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.8142, allocations: 0.6828 MB / 0.8808 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/0.815, allocations: 424 kB / 0.8812 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008641/0.8159, allocations: 1.021 MB / 0.8822 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009243/0.8168, allocations: 0.5159 MB / 0.8827 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=57): time 5.46e-06/0.8168, allocations: 3.984 kB / 0.8827 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of matching and sorting (n=57): time 0.002762/0.8196, allocations: 1.234 MB / 0.8839 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.8197, allocations: 137.1 kB / 0.8841 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.8215, allocations: 1.175 MB / 0.8852 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.068e-05/0.8215, allocations: 38.58 kB / 0.8852 GB, free: 12.28 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003533/0.8219, allocations: 442.2 kB / 0.8857 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.8221, allocations: 190.8 kB / 0.8858 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000266/0.8223, allocations: 145.5 kB / 0.886 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.8225, allocations: 329.4 kB / 0.8863 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.8236, allocations: 437.7 kB / 0.8867 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.8249, allocations: 0.5927 MB / 0.8873 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001815/0.8267, allocations: 0.9378 MB / 0.8882 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.8267, allocations: 0 / 0.8882 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002686/0.8294, allocations: 1.191 MB / 0.8894 GB, free: 9.625 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.8295, allocations: 37.98 kB / 0.8894 GB, free: 9.594 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.8295, allocations: 7.5 kB / 0.8894 GB, free: 9.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.8295, allocations: 9.312 kB / 0.8894 GB, free: 9.586 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008491/0.8304, allocations: 186.4 kB / 0.8896 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.8304, allocations: 13.39 kB / 0.8896 GB, free: 9.535 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.8318, allocations: 241.7 kB / 0.8898 GB, free: 9.414 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.73e-05/0.8319, allocations: 36.97 kB / 0.8899 GB, free: 9.402 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.0004827/0.8324, allocations: 328 kB / 0.8902 GB, free: 9.152 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.8326, allocations: 116.7 kB / 0.8903 GB, free: 9.094 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.8346, allocations: 0.9972 MB / 0.8913 GB, free: 8.543 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.8346, allocations: 10.47 kB / 0.8913 GB, free: 8.539 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.8346, allocations: 0 / 0.8913 GB, free: 8.539 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.8346, allocations: 6.109 kB / 0.8913 GB, free: 8.535 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00446/0.8391, allocations: 3.156 MB / 0.8944 GB, free: 6.359 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.8391, allocations: 6.938 kB / 0.8944 GB, free: 6.359 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.8397, allocations: 128.1 kB / 0.8945 GB, free: 6.328 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.8397, allocations: 9.375 kB / 0.8945 GB, free: 6.328 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.8397, allocations: 27.42 kB / 0.8945 GB, free: 6.316 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.337e-06/0.8398, allocations: 12.44 kB / 0.8946 GB, free: 6.316 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.8398, allocations: 11.19 kB / 0.8946 GB, free: 6.316 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.8418, allocations: 1.346 MB / 0.8959 GB, free: 5.348 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004539/0.8423, allocations: 323.4 kB / 0.8962 GB, free: 5.078 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.8424, allocations: 24.61 kB / 0.8962 GB, free: 5.066 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.8434, allocations: 102.3 kB / 0.8963 GB, free: 5.027 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.8435, allocations: 63.81 kB / 0.8964 GB, free: 4.992 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.59e-05/0.8436, allocations: 43.34 kB / 0.8964 GB, free: 4.977 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001326/0.845, allocations: 0.8497 MB / 0.8972 GB, free: 4.508 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.7e-07/0.845, allocations: 0 / 0.8972 GB, free: 4.508 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001055/0.846, allocations: 298.2 kB / 0.8975 GB, free: 4.457 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.0006556/0.8467, allocations: 343.3 kB / 0.8979 GB, free: 4.281 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002149/0.8488, allocations: 1.017 MB / 0.8988 GB, free: 3.781 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.8489, allocations: 2.469 kB / 0.8988 GB, free: 3.781 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0008709/0.8497, allocations: 0.5126 MB / 0.8993 GB, free: 3.52 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.8521, allocations: 0.5609 MB / 0.8999 GB, free: 3.254 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.8554, allocations: 2.031 MB / 0.9019 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006683/0.8561, allocations: 1.069 MB / 0.9029 GB, free: 1.043 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009201/0.857, allocations: 272 kB / 0.9032 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002536/0.8572, allocations: 83.56 kB / 0.9033 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of SimCode: time 3.01e-07/0.8573, allocations: 0 / 0.9033 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of Templates: time 0.03657/0.8938, allocations: 22.18 MB / 0.9249 GB, free: 11.77 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)