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.006333/0.006333, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001476/0.001476, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8209/0.8209, allocations: 132.2 MB / 422.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 67.91 kB / 0.5814 GB, free: 7.516 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4403/0.4417, allocations: 80.2 MB / 0.6597 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2012/0.643, allocations: 194 MB / 0.8491 GB, free: 3.531 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0108/0.6538, allocations: 6.918 MB / 0.8559 GB, free: 12.59 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002036/0.6559, allocations: 43.75 kB / 0.8559 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002409/0.6584, allocations: 0.7025 MB / 0.8566 GB, free: 11.84 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006263/0.6647, allocations: 2.427 MB / 0.859 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003462/0.6682, allocations: 1.433 MB / 0.8604 GB, free: 8 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004109/0.6723, allocations: 3.009 MB / 0.8633 GB, free: 4.984 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001514/0.6738, allocations: 0.8879 MB / 0.8642 GB, free: 4.082 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002743/0.6766, allocations: 1.161 MB / 0.8653 GB, free: 2.922 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.6781, allocations: 0.7946 MB / 0.8661 GB, free: 2.129 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003035/0.6784, allocations: 100 kB / 0.8662 GB, free: 2.031 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4283/1.107, allocations: 2.067 MB / 0.8682 GB, free: 7.512 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0007249/1.107, allocations: 360.5 kB / 0.8686 GB, free: 7.512 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0009317/1.108, allocations: 0.5859 MB / 0.8691 GB, free: 7.512 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.004538/1.113, allocations: 2.424 MB / 0.8715 GB, free: 7.469 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/1.113, allocations: 0.75 kB / 0.8715 GB, free: 7.469 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.954e-06/1.113, allocations: 0.9688 kB / 0.8715 GB, free: 7.469 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.75e-05/1.113, allocations: 0.9688 kB / 0.8715 GB, free: 7.469 MB / 0.6856 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.003622/1.117, allocations: 1.637 MB / 0.8731 GB, free: 6.688 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/1.117, allocations: 8.969 kB / 0.8731 GB, free: 6.688 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003067/1.12, allocations: 0.5325 MB / 0.8736 GB, free: 6.629 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/1.122, allocations: 1.038 MB / 0.8747 GB, free: 6.293 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.374e-05/1.122, allocations: 60.28 kB / 0.8747 GB, free: 6.293 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/1.122, allocations: 65.91 kB / 0.8748 GB, free: 6.293 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/1.125, allocations: 1.11 MB / 0.8759 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/1.125, allocations: 0.9688 kB / 0.8759 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.06e-05/1.125, allocations: 27.06 kB / 0.8759 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.283e-05/1.125, allocations: 34.17 kB / 0.8759 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/1.128, allocations: 1.166 MB / 0.8771 GB, free: 6.176 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005946/1.134, allocations: 3.155 MB / 0.8801 GB, free: 5.258 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/1.136, allocations: 0.6849 MB / 0.8808 GB, free: 5.234 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008695/1.137, allocations: 425.6 kB / 0.8812 GB, free: 5.223 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001092/1.138, allocations: 1.025 MB / 0.8822 GB, free: 20.1 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/1.139, allocations: 0.5101 MB / 0.8827 GB, free: 19.99 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=57): time 3.597e-06/1.139, allocations: 0.9062 kB / 0.8827 GB, free: 19.99 MB / 0.7012 GB Notification: Performance of matching and sorting (n=57): time 0.003318/1.142, allocations: 1.226 MB / 0.8839 GB, free: 19.86 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/1.142, allocations: 136 kB / 0.884 GB, free: 19.7 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/1.145, allocations: 1.181 MB / 0.8852 GB, free: 19.55 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001701/1.145, allocations: 38.36 kB / 0.8852 GB, free: 19.52 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004562/1.146, allocations: 440.3 kB / 0.8856 GB, free: 19.39 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/1.146, allocations: 187.2 kB / 0.8858 GB, free: 19.27 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003558/1.146, allocations: 142.4 kB / 0.886 GB, free: 19.25 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001666/1.146, allocations: 332.6 kB / 0.8863 GB, free: 18.95 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/1.148, allocations: 443 kB / 0.8867 GB, free: 18.95 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/1.149, allocations: 0.5981 MB / 0.8873 GB, free: 18.81 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002147/1.151, allocations: 0.9239 MB / 0.8882 GB, free: 18.64 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/1.152, allocations: 1.5 kB / 0.8882 GB, free: 18.64 MB / 0.7012 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003366/1.155, allocations: 1.197 MB / 0.8894 GB, free: 18.5 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/1.155, allocations: 40.03 kB / 0.8894 GB, free: 18.47 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/1.155, allocations: 4.188 kB / 0.8894 GB, free: 18.47 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/1.155, allocations: 6.031 kB / 0.8894 GB, free: 18.47 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00099/1.156, allocations: 192.9 kB / 0.8896 GB, free: 18.47 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.269e-05/1.156, allocations: 8.25 kB / 0.8896 GB, free: 18.47 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/1.158, allocations: 240.9 kB / 0.8898 GB, free: 18.43 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/1.158, allocations: 35.98 kB / 0.8899 GB, free: 18.43 MB / 0.7012 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.0007675/1.159, allocations: 336.7 kB / 0.8902 GB, free: 18.28 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002817/1.159, allocations: 115.6 kB / 0.8903 GB, free: 18.22 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/1.162, allocations: 1.002 MB / 0.8913 GB, free: 18.12 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/1.162, allocations: 9.453 kB / 0.8913 GB, free: 18.12 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/1.162, allocations: 0.8438 kB / 0.8913 GB, free: 18.12 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/1.162, allocations: 7.844 kB / 0.8913 GB, free: 18.12 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005195/1.167, allocations: 3.16 MB / 0.8944 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.167, allocations: 10.72 kB / 0.8944 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/1.167, allocations: 121.8 kB / 0.8945 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/1.167, allocations: 9.109 kB / 0.8945 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/1.167, allocations: 25.12 kB / 0.8945 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.255e-05/1.167, allocations: 17.34 kB / 0.8946 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/1.167, allocations: 12.78 kB / 0.8946 GB, free: 17.36 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/1.17, allocations: 1.339 MB / 0.8959 GB, free: 16.8 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/1.17, allocations: 325.9 kB / 0.8962 GB, free: 16.64 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/1.171, allocations: 25.12 kB / 0.8962 GB, free: 16.64 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/1.172, allocations: 103.4 kB / 0.8963 GB, free: 16.64 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/1.172, allocations: 65.61 kB / 0.8964 GB, free: 16.63 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.417e-05/1.172, allocations: 42.66 kB / 0.8964 GB, free: 16.63 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001537/1.173, allocations: 0.8473 MB / 0.8972 GB, free: 16.52 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.9e-07/1.173, allocations: 0 / 0.8972 GB, free: 16.52 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001259/1.175, allocations: 295.8 kB / 0.8975 GB, free: 16.5 MB / 0.7012 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.0007518/1.175, allocations: 345.6 kB / 0.8978 GB, free: 16.39 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002185/1.178, allocations: 1.017 MB / 0.8988 GB, free: 16.32 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.178, allocations: 2.156 kB / 0.8988 GB, free: 16.32 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008184/1.178, allocations: 0.5145 MB / 0.8993 GB, free: 16.25 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/1.181, allocations: 0.5429 MB / 0.8999 GB, free: 16.2 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/1.184, allocations: 2.029 MB / 0.9019 GB, free: 15.32 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005646/1.185, allocations: 1.07 MB / 0.9029 GB, free: 14.61 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0008988/1.186, allocations: 289.1 kB / 0.9032 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/1.186, allocations: 80.98 kB / 0.9033 GB, free: 14.53 MB / 0.7012 GB Notification: Performance of SimCode: time 5.41e-07/1.186, allocations: 0 / 0.9033 GB, free: 14.53 MB / 0.7012 GB Notification: Performance of Templates: time 0.03454/1.22, allocations: 22.17 MB / 0.9249 GB, free: 10.29 MB / 0.7012 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)