Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.007026/0.007026, allocations: 101.6 kB / 15.88 MB, free: 5.871 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.001605/0.001605, allocations: 193.1 kB / 16.79 MB, free: 5.816 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.343/1.343, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8978/0.8978, allocations: 135.1 MB / 425.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 60.62 kB / 0.5053 GB, free: 5.699 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1625, allocations: 80.93 MB / 0.5843 GB, free: 4.945 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4629/0.6254, allocations: 191.6 MB / 0.7715 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01046/0.6359, allocations: 6.995 MB / 0.7783 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.6373, allocations: 39.69 kB / 0.7784 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001714/0.6391, allocations: 0.5671 MB / 0.7789 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005437/0.6445, allocations: 2.175 MB / 0.781 GB, free: 3.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00315/0.6477, allocations: 1.272 MB / 0.7823 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004444/0.6521, allocations: 3.731 MB / 0.7859 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001372/0.6535, allocations: 0.7944 MB / 0.7867 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001811/0.6554, allocations: 0.9725 MB / 0.7876 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001848/0.6572, allocations: 0.8024 MB / 0.7884 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.6574, allocations: 51.94 kB / 0.7885 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004098/0.6615, allocations: 2.237 MB / 0.7907 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000417/0.6619, allocations: 318.8 kB / 0.791 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0006864/0.6626, allocations: 0.5322 MB / 0.7915 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.6649, allocations: 1.766 MB / 0.7932 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.6649, allocations: 4 kB / 0.7932 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6649, allocations: 0 / 0.7932 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.603e-05/0.665, allocations: 0 / 0.7932 GB, free: 7.301 MB / 0.6075 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.003441/0.6684, allocations: 1.629 MB / 0.7948 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.6685, allocations: 12.03 kB / 0.7948 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003062/0.6715, allocations: 0.537 MB / 0.7953 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.6736, allocations: 0.9899 MB / 0.7963 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.6748, allocations: 277 kB / 0.7966 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.675, allocations: 72 kB / 0.7966 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.6775, allocations: 1.12 MB / 0.7977 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.6775, allocations: 7.938 kB / 0.7977 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/0.6776, allocations: 24 kB / 0.7978 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.6777, allocations: 33.3 kB / 0.7978 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.6809, allocations: 1.192 MB / 0.799 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005962/0.6869, allocations: 3.207 MB / 0.8021 GB, free: 14 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.6886, allocations: 0.6857 MB / 0.8028 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008214/0.6894, allocations: 429.6 kB / 0.8032 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009569/0.6904, allocations: 1.021 MB / 0.8042 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.6915, allocations: 0.5182 MB / 0.8047 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 4.549e-06/0.6915, allocations: 3.984 kB / 0.8047 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.003086/0.6946, allocations: 1.217 MB / 0.8059 GB, free: 9.871 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.404e-05/0.6947, allocations: 144.8 kB / 0.806 GB, free: 9.699 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002079/0.6968, allocations: 1.207 MB / 0.8072 GB, free: 8.477 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.6969, allocations: 37.7 kB / 0.8072 GB, free: 8.434 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003598/0.6973, allocations: 433.4 kB / 0.8076 GB, free: 8.008 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.6974, allocations: 193.3 kB / 0.8078 GB, free: 7.816 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002675/0.6977, allocations: 154 kB / 0.808 GB, free: 7.66 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.6978, allocations: 326 kB / 0.8083 GB, free: 7.336 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.6991, allocations: 460.9 kB / 0.8087 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.7006, allocations: 0.6132 MB / 0.8093 GB, free: 6.227 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.7026, allocations: 0.9418 MB / 0.8102 GB, free: 5.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.7026, allocations: 0 / 0.8102 GB, free: 5.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003191/0.7058, allocations: 1.236 MB / 0.8114 GB, free: 3.98 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.892e-05/0.7059, allocations: 37.69 kB / 0.8115 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.7059, allocations: 4 kB / 0.8115 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.706, allocations: 4 kB / 0.8115 GB, free: 3.93 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.707, allocations: 207.9 kB / 0.8117 GB, free: 3.727 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.707, allocations: 15.3 kB / 0.8117 GB, free: 3.715 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.7086, allocations: 270.9 kB / 0.812 GB, free: 3.449 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.72e-05/0.7087, allocations: 35.97 kB / 0.812 GB, free: 3.414 MB / 0.6231 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.0005157/0.7092, allocations: 329.5 kB / 0.8123 GB, free: 3.078 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.7095, allocations: 122.6 kB / 0.8124 GB, free: 2.957 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/0.7116, allocations: 0.9928 MB / 0.8134 GB, free: 1.953 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.7117, allocations: 4 kB / 0.8134 GB, free: 1.949 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.7117, allocations: 3.938 kB / 0.8134 GB, free: 1.945 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.7117, allocations: 11.98 kB / 0.8134 GB, free: 1.934 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004824/0.7165, allocations: 3.149 MB / 0.8165 GB, free: 14.63 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.7166, allocations: 8.516 kB / 0.8165 GB, free: 14.62 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006181/0.7172, allocations: 124 kB / 0.8166 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-05/0.7172, allocations: 11.94 kB / 0.8166 GB, free: 14.49 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.235e-05/0.7173, allocations: 27.98 kB / 0.8167 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.254e-05/0.7173, allocations: 11.94 kB / 0.8167 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.726e-06/0.7173, allocations: 15.92 kB / 0.8167 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.7196, allocations: 1.346 MB / 0.818 GB, free: 12.97 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005558/0.7201, allocations: 331.4 kB / 0.8183 GB, free: 12.63 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.7204, allocations: 24 kB / 0.8183 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.7216, allocations: 111.9 kB / 0.8184 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.7217, allocations: 59.77 kB / 0.8185 GB, free: 12.44 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.525e-05/0.7218, allocations: 35.97 kB / 0.8185 GB, free: 12.4 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001646/0.7234, allocations: 0.8716 MB / 0.8194 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7235, allocations: 0 / 0.8194 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00112/0.7246, allocations: 299.8 kB / 0.8197 GB, free: 11.23 MB / 0.6387 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.0007429/0.7253, allocations: 345.5 kB / 0.82 GB, free: 10.9 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002445/0.7278, allocations: 1.013 MB / 0.821 GB, free: 9.871 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.7278, allocations: 4 kB / 0.821 GB, free: 9.867 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009481/0.7288, allocations: 0.5203 MB / 0.8215 GB, free: 9.336 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.7316, allocations: 0.5357 MB / 0.822 GB, free: 8.816 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.7356, allocations: 2.379 MB / 0.8243 GB, free: 6.305 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007094/0.7363, allocations: 1.073 MB / 0.8254 GB, free: 5.199 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.7367, allocations: 83.41 kB / 0.8255 GB, free: 5.117 MB / 0.6387 GB Notification: Performance of SimCode: time 5.71e-07/0.7367, allocations: 0 / 0.8255 GB, free: 5.117 MB / 0.6387 GB Notification: Performance of Templates: time 0.02808/0.7648, allocations: 18.72 MB / 0.8438 GB, free: 2.582 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)