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.00137/0.00137, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001703/0.001703, allocations: 196.4 kB / 16.25 MB, free: 6.621 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.329/1.329, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.73/0.73, allocations: 132.2 MB / 422.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.001659, allocations: 64.28 kB / 0.5013 GB, free: 4.188 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4381/0.4398, allocations: 80.21 MB / 0.5796 GB, free: 4.52 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2011/0.641, allocations: 191.5 MB / 0.7666 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01212/0.6531, allocations: 6.889 MB / 0.7733 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.6554, allocations: 39.69 kB / 0.7733 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002215/0.6577, allocations: 0.5906 MB / 0.7739 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006174/0.6639, allocations: 2.195 MB / 0.7761 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003417/0.6673, allocations: 1.305 MB / 0.7773 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004209/0.6715, allocations: 3.002 MB / 0.7803 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.6729, allocations: 0.9151 MB / 0.7812 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003255/0.6762, allocations: 1.153 MB / 0.7823 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.6778, allocations: 0.8367 MB / 0.7831 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.678, allocations: 100 kB / 0.7832 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004255/0.6822, allocations: 2.132 MB / 0.7853 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004401/0.6827, allocations: 370.9 kB / 0.7856 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006862/0.6834, allocations: 0.5907 MB / 0.7862 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003722/0.6871, allocations: 2.497 MB / 0.7887 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.6871, allocations: 0 / 0.7887 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6871, allocations: 0 / 0.7887 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.414e-05/0.6872, allocations: 0 / 0.7887 GB, free: 10.91 MB / 0.6231 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.003555/0.6907, allocations: 1.636 MB / 0.7903 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.6908, allocations: 8.031 kB / 0.7903 GB, free: 9.207 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/0.6939, allocations: 0.5254 MB / 0.7908 GB, free: 8.68 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002233/0.6961, allocations: 0.9923 MB / 0.7917 GB, free: 7.652 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/0.6972, allocations: 281 kB / 0.792 GB, free: 7.375 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/0.6974, allocations: 67.94 kB / 0.7921 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.6999, allocations: 1.12 MB / 0.7932 GB, free: 6.156 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.7, allocations: 3.938 kB / 0.7932 GB, free: 6.152 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.635e-05/0.7001, allocations: 31.98 kB / 0.7932 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-05/0.7001, allocations: 37.23 kB / 0.7932 GB, free: 6.086 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00309/0.7032, allocations: 1.196 MB / 0.7944 GB, free: 4.891 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005985/0.7092, allocations: 3.221 MB / 0.7976 GB, free: 1.59 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.7111, allocations: 0.6802 MB / 0.7982 GB, free: 0.8984 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007787/0.7119, allocations: 422.2 kB / 0.7986 GB, free: 496 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000994/0.7129, allocations: 1.021 MB / 0.7996 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.714, allocations: 0.5221 MB / 0.8001 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 2.274e-06/0.714, allocations: 0 / 0.8001 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.003403/0.7174, allocations: 1.221 MB / 0.8013 GB, free: 13.46 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.7176, allocations: 136.9 kB / 0.8015 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/0.7198, allocations: 1.2 MB / 0.8026 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.7199, allocations: 45.64 kB / 0.8027 GB, free: 12.04 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003925/0.7203, allocations: 445.4 kB / 0.8031 GB, free: 11.6 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.7206, allocations: 189.3 kB / 0.8033 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/0.7209, allocations: 146 kB / 0.8034 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001811/0.7211, allocations: 330 kB / 0.8037 GB, free: 10.93 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.7223, allocations: 460.9 kB / 0.8042 GB, free: 10.48 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.7239, allocations: 0.6094 MB / 0.8048 GB, free: 9.824 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002147/0.726, allocations: 0.9422 MB / 0.8057 GB, free: 8.832 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.7261, allocations: 0 / 0.8057 GB, free: 8.832 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003348/0.7294, allocations: 1.244 MB / 0.8069 GB, free: 7.574 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 6.731e-05/0.7295, allocations: 39.89 kB / 0.8069 GB, free: 7.531 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.7295, allocations: 3.938 kB / 0.8069 GB, free: 7.527 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.7295, allocations: 8.281 kB / 0.8069 GB, free: 7.52 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009839/0.7305, allocations: 199.7 kB / 0.8071 GB, free: 7.324 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.7306, allocations: 11.94 kB / 0.8071 GB, free: 7.312 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.7324, allocations: 270.9 kB / 0.8074 GB, free: 7.047 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.7326, allocations: 35.98 kB / 0.8074 GB, free: 7.012 MB / 0.6387 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.0006581/0.7332, allocations: 329.3 kB / 0.8078 GB, free: 6.676 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/0.7335, allocations: 114.6 kB / 0.8079 GB, free: 6.562 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/0.7357, allocations: 0.9995 MB / 0.8088 GB, free: 5.555 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.7357, allocations: 8 kB / 0.8088 GB, free: 5.547 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.7357, allocations: 0 / 0.8088 GB, free: 5.547 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.7358, allocations: 3.984 kB / 0.8088 GB, free: 5.543 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005502/0.7413, allocations: 3.159 MB / 0.8119 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.7413, allocations: 8.625 kB / 0.8119 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.7419, allocations: 119.8 kB / 0.8121 GB, free: 2.105 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.7419, allocations: 12 kB / 0.8121 GB, free: 2.094 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-05/0.742, allocations: 27.98 kB / 0.8121 GB, free: 2.066 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.708e-05/0.742, allocations: 19.92 kB / 0.8121 GB, free: 2.047 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.7421, allocations: 11.94 kB / 0.8121 GB, free: 2.035 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.7446, allocations: 1.337 MB / 0.8134 GB, free: 0.5781 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007405/0.7454, allocations: 331.4 kB / 0.8137 GB, free: 240 kB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003467/0.7457, allocations: 20 kB / 0.8138 GB, free: 220 kB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.7472, allocations: 115.9 kB / 0.8139 GB, free: 104 kB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.7473, allocations: 59.77 kB / 0.8139 GB, free: 44 kB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.7474, allocations: 39.97 kB / 0.814 GB, free: 4 kB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.304/1.051, allocations: 0.8649 MB / 0.8148 GB, free: 219.5 MB / 0.6387 GB Notification: Performance of sort global known variables: time 4.41e-07/1.051, allocations: 0 / 0.8148 GB, free: 219.5 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001266/1.053, allocations: 304.9 kB / 0.8151 GB, free: 219.5 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.0006569/1.053, allocations: 340.9 kB / 0.8154 GB, free: 219.4 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002359/1.056, allocations: 1.049 MB / 0.8165 GB, free: 219.2 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.056, allocations: 2.688 kB / 0.8165 GB, free: 219.2 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008464/1.057, allocations: 0.5166 MB / 0.817 GB, free: 219 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/1.059, allocations: 0.5592 MB / 0.8175 GB, free: 218.9 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/1.063, allocations: 2.343 MB / 0.8198 GB, free: 217.5 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/1.064, allocations: 1.074 MB / 0.8208 GB, free: 216.7 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001276/1.065, allocations: 272 kB / 0.8211 GB, free: 216.7 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/1.065, allocations: 82.53 kB / 0.8212 GB, free: 216.7 MB / 0.6387 GB Notification: Performance of SimCode: time 7.92e-07/1.065, allocations: 0 / 0.8212 GB, free: 216.7 MB / 0.6387 GB Notification: Performance of Templates: time 0.03337/1.099, allocations: 21.94 MB / 0.8426 GB, free: 208.1 MB / 0.6387 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)