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.001425/0.001425, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001159/0.001159, allocations: 190.4 kB / 16.14 MB, free: 6.656 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.39/1.39, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7713/0.7713, allocations: 132.2 MB / 422.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 69.05 kB / 0.5011 GB, free: 9.219 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1766, allocations: 80.2 MB / 0.5794 GB, free: 9.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.507/0.6837, allocations: 191.6 MB / 0.7666 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01016/0.6939, allocations: 6.992 MB / 0.7734 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.6952, allocations: 43.69 kB / 0.7734 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.6969, allocations: 0.5632 MB / 0.774 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005241/0.7021, allocations: 2.179 MB / 0.7761 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003461/0.7056, allocations: 1.274 MB / 0.7774 GB, free: 8.637 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00466/0.7103, allocations: 3.746 MB / 0.781 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001241/0.7116, allocations: 0.7879 MB / 0.7818 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.7134, allocations: 0.9725 MB / 0.7827 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001743/0.7152, allocations: 0.8063 MB / 0.7835 GB, free: 2.316 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.7153, allocations: 51.94 kB / 0.7836 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004134/0.7195, allocations: 2.217 MB / 0.7857 GB, free: 44 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005079/0.72, allocations: 323 kB / 0.786 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007355/0.7207, allocations: 0.54 MB / 0.7866 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004355/0.7251, allocations: 2.419 MB / 0.7889 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.818e-06/0.7251, allocations: 0 / 0.7889 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.024e-06/0.7252, allocations: 4 kB / 0.7889 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.77e-05/0.7252, allocations: 0 / 0.7889 GB, free: 12.75 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.004169/0.7294, allocations: 1.632 MB / 0.7905 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.7294, allocations: 8.031 kB / 0.7905 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003103/0.7325, allocations: 0.5371 MB / 0.7911 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.7346, allocations: 0.9791 MB / 0.792 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001169/0.7358, allocations: 277 kB / 0.7923 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.736, allocations: 64 kB / 0.7923 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002558/0.7385, allocations: 1.132 MB / 0.7935 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.7385, allocations: 0 / 0.7935 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-05/0.7387, allocations: 32 kB / 0.7935 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.611e-05/0.7387, allocations: 33.31 kB / 0.7935 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.7419, allocations: 1.2 MB / 0.7947 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005844/0.7477, allocations: 3.207 MB / 0.7978 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.7495, allocations: 0.6849 MB / 0.7985 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008153/0.7503, allocations: 433.6 kB / 0.7989 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00087/0.7512, allocations: 1.021 MB / 0.7999 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.7522, allocations: 0.5104 MB / 0.8004 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.685e-06/0.7522, allocations: 0 / 0.8004 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.00305/0.7553, allocations: 1.221 MB / 0.8016 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.989e-05/0.7554, allocations: 144.9 kB / 0.8017 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001964/0.7573, allocations: 1.2 MB / 0.8029 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.223e-05/0.7574, allocations: 37.7 kB / 0.8029 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003661/0.7578, allocations: 441.4 kB / 0.8034 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.758, allocations: 185.4 kB / 0.8035 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.7583, allocations: 146 kB / 0.8037 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.7584, allocations: 334 kB / 0.804 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.7597, allocations: 452.9 kB / 0.8044 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/0.7612, allocations: 0.6171 MB / 0.805 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/0.7633, allocations: 0.9578 MB / 0.806 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.7634, allocations: 0 / 0.806 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003271/0.7666, allocations: 1.232 MB / 0.8072 GB, free: 9.43 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.7667, allocations: 37.97 kB / 0.8072 GB, free: 9.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.7667, allocations: 8 kB / 0.8072 GB, free: 9.379 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.7667, allocations: 7.938 kB / 0.8072 GB, free: 9.371 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.7677, allocations: 195.7 kB / 0.8074 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.7678, allocations: 8 kB / 0.8074 GB, free: 9.172 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.7694, allocations: 272.1 kB / 0.8077 GB, free: 8.906 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.781e-05/0.7695, allocations: 39.91 kB / 0.8077 GB, free: 8.867 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.0005081/0.77, allocations: 329.4 kB / 0.808 GB, free: 8.531 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.7702, allocations: 114.6 kB / 0.8081 GB, free: 8.418 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.7723, allocations: 0.9919 MB / 0.8091 GB, free: 7.414 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.7723, allocations: 19.94 kB / 0.8091 GB, free: 7.395 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.7723, allocations: 3.984 kB / 0.8091 GB, free: 7.391 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.7723, allocations: 0 / 0.8091 GB, free: 7.391 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004788/0.7771, allocations: 3.161 MB / 0.8122 GB, free: 4.082 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.7772, allocations: 8 kB / 0.8122 GB, free: 4.074 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005999/0.7778, allocations: 115.8 kB / 0.8123 GB, free: 3.961 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/0.7778, allocations: 12 kB / 0.8123 GB, free: 3.949 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.808e-05/0.7779, allocations: 23.98 kB / 0.8124 GB, free: 3.926 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-05/0.7779, allocations: 20 kB / 0.8124 GB, free: 3.906 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/0.7779, allocations: 11.94 kB / 0.8124 GB, free: 3.895 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.7801, allocations: 1.337 MB / 0.8137 GB, free: 2.438 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005616/0.7807, allocations: 335.3 kB / 0.814 GB, free: 2.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.7809, allocations: 23.98 kB / 0.814 GB, free: 2.066 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.7821, allocations: 107.8 kB / 0.8141 GB, free: 1.961 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.7822, allocations: 63.75 kB / 0.8142 GB, free: 1.898 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.101e-05/0.7823, allocations: 43.97 kB / 0.8142 GB, free: 1.855 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001542/0.7838, allocations: 0.8638 MB / 0.8151 GB, free: 0.9844 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7838, allocations: 4 kB / 0.8151 GB, free: 0.9805 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001193/0.785, allocations: 295.8 kB / 0.8154 GB, free: 0.6914 MB / 0.6231 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.0008224/0.7859, allocations: 353.7 kB / 0.8157 GB, free: 360 kB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002439/0.7883, allocations: 1.029 MB / 0.8167 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.7883, allocations: 0 / 0.8167 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000923/0.7893, allocations: 0.5125 MB / 0.8172 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/0.7921, allocations: 0.528 MB / 0.8177 GB, free: 14.28 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.7957, allocations: 2.342 MB / 0.82 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006107/0.7963, allocations: 1.073 MB / 0.8211 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001144/0.7975, allocations: 275.7 kB / 0.8213 GB, free: 10.44 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.7978, allocations: 75.41 kB / 0.8214 GB, free: 10.37 MB / 0.6387 GB Notification: Performance of SimCode: time 5.11e-07/0.7978, allocations: 7.938 kB / 0.8214 GB, free: 10.36 MB / 0.6387 GB Notification: Performance of Templates: time 0.03436/0.8321, allocations: 21.25 MB / 0.8422 GB, free: 5.359 MB / 0.6544 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)