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.001106/0.001106, allocations: 111.7 kB / 15.99 MB, free: 5.914 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.001326/0.001326, allocations: 188 kB / 16.91 MB, free: 5.758 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.327/1.327, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7796/0.7796, allocations: 132.2 MB / 422.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001134, allocations: 59.91 kB / 0.5019 GB, free: 12.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3721, allocations: 80.2 MB / 0.5802 GB, free: 27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5474/0.9195, allocations: 191.5 MB / 0.7672 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01023/0.9298, allocations: 6.884 MB / 0.7739 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002273/0.9321, allocations: 37.72 kB / 0.7739 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.9344, allocations: 0.5916 MB / 0.7745 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006889/0.9413, allocations: 2.2 MB / 0.7767 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00366/0.945, allocations: 1.308 MB / 0.778 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004965/0.9499, allocations: 2.998 MB / 0.7809 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.9515, allocations: 0.9173 MB / 0.7818 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003341/0.9549, allocations: 1.148 MB / 0.7829 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001757/0.9567, allocations: 0.8429 MB / 0.7837 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.9569, allocations: 100.7 kB / 0.7838 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004136/0.961, allocations: 2.142 MB / 0.7859 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000462/0.9615, allocations: 370.3 kB / 0.7863 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000835/0.9624, allocations: 0.5886 MB / 0.7868 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002654/0.965, allocations: 1.803 MB / 0.7886 GB, free: 1.371 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.9651, allocations: 1.312 kB / 0.7886 GB, free: 1.371 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9651, allocations: 0.9062 kB / 0.7886 GB, free: 1.371 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.788e-05/0.9651, allocations: 0 / 0.7886 GB, free: 1.371 MB / 0.5762 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.003353/0.9684, allocations: 1.631 MB / 0.7902 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.9685, allocations: 11.78 kB / 0.7902 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002898/0.9714, allocations: 0.534 MB / 0.7907 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/0.9736, allocations: 0.9885 MB / 0.7917 GB, free: 16.11 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001106/0.9748, allocations: 278 kB / 0.792 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.9749, allocations: 68.97 kB / 0.792 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.9773, allocations: 1.119 MB / 0.7931 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.9773, allocations: 2.094 kB / 0.7931 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.528e-05/0.9774, allocations: 28.97 kB / 0.7931 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.688e-05/0.9774, allocations: 35.7 kB / 0.7932 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002875/0.9803, allocations: 1.2 MB / 0.7943 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.9859, allocations: 3.206 MB / 0.7975 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.9875, allocations: 0.6872 MB / 0.7982 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/0.9882, allocations: 425.4 kB / 0.7986 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008728/0.989, allocations: 1.028 MB / 0.7996 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.9901, allocations: 0.5142 MB / 0.8001 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 2.835e-06/0.9901, allocations: 0 / 0.8001 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.002941/0.993, allocations: 1.222 MB / 0.8013 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.5e-05/0.9931, allocations: 140 kB / 0.8014 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/0.9952, allocations: 1.206 MB / 0.8026 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.9954, allocations: 35.64 kB / 0.8026 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/0.9957, allocations: 443.3 kB / 0.803 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.9959, allocations: 192 kB / 0.8032 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002976/0.9962, allocations: 143.9 kB / 0.8033 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.9963, allocations: 338.4 kB / 0.8037 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.9976, allocations: 458 kB / 0.8041 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.999, allocations: 0.6096 MB / 0.8047 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/1.001, allocations: 0.9472 MB / 0.8056 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/1.001, allocations: 2.375 kB / 0.8056 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003249/1.004, allocations: 1.232 MB / 0.8068 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.522e-05/1.004, allocations: 43.97 kB / 0.8069 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/1.004, allocations: 3.406 kB / 0.8069 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/1.004, allocations: 5.062 kB / 0.8069 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009561/1.005, allocations: 193.7 kB / 0.8071 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/1.005, allocations: 11.17 kB / 0.8071 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/1.007, allocations: 267.9 kB / 0.8073 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/1.007, allocations: 39.27 kB / 0.8074 GB, free: 12.09 MB / 0.5919 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.0005976/1.008, allocations: 336 kB / 0.8077 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003454/1.008, allocations: 117.3 kB / 0.8078 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/1.01, allocations: 0.9916 MB / 0.8088 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/1.01, allocations: 9.625 kB / 0.8088 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/1.01, allocations: 0 / 0.8088 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/1.01, allocations: 3.328 kB / 0.8088 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005155/1.016, allocations: 3.161 MB / 0.8119 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/1.016, allocations: 9.531 kB / 0.8119 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005907/1.016, allocations: 119.5 kB / 0.812 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/1.016, allocations: 10.78 kB / 0.812 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.599e-05/1.016, allocations: 28.7 kB / 0.812 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/1.016, allocations: 19.61 kB / 0.812 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.016, allocations: 10.47 kB / 0.8121 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/1.018, allocations: 1.34 MB / 0.8134 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006181/1.019, allocations: 335.8 kB / 0.8137 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002694/1.019, allocations: 26.09 kB / 0.8137 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/1.021, allocations: 110.5 kB / 0.8138 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/1.021, allocations: 58.33 kB / 0.8139 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/1.021, allocations: 49.89 kB / 0.8139 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001624/1.022, allocations: 0.8681 MB / 0.8148 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/1.022, allocations: 0 / 0.8148 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001276/1.024, allocations: 294.3 kB / 0.815 GB, free: 10.07 MB / 0.5919 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.0008854/1.025, allocations: 349.2 kB / 0.8154 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00255/1.027, allocations: 1.053 MB / 0.8164 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.027, allocations: 2.312 kB / 0.8164 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009962/1.028, allocations: 0.5143 MB / 0.8169 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003162/1.031, allocations: 0.5543 MB / 0.8175 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/1.036, allocations: 2.392 MB / 0.8198 GB, free: 8.035 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007966/1.037, allocations: 1.065 MB / 0.8208 GB, free: 7.164 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/1.037, allocations: 90.7 kB / 0.8209 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of SimCode: time 1.102e-06/1.037, allocations: 0 / 0.8209 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of Templates: time 0.03117/1.068, allocations: 18.72 MB / 0.8392 GB, free: 6.293 MB / 0.6075 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)