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: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005997/0.005997, allocations: 98.28 kB / 15.73 MB, free: 6.066 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.001523/0.001523, allocations: 195.4 kB / 16.67 MB, free: 5.973 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: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8467/0.8467, allocations: 135.6 MB / 426.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 72.06 kB / 0.5857 GB, free: 21.42 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.153, allocations: 81.02 MB / 0.6649 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5992/0.7522, allocations: 194 MB / 0.8543 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01202/0.7642, allocations: 6.937 MB / 0.8611 GB, free: 4.531 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001714/0.766, allocations: 44.88 kB / 0.8611 GB, free: 4.512 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.7683, allocations: 0.6846 MB / 0.8618 GB, free: 3.926 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006232/0.7745, allocations: 2.325 MB / 0.8641 GB, free: 2.148 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003609/0.7782, allocations: 1.434 MB / 0.8655 GB, free: 1.078 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004778/0.7829, allocations: 2.993 MB / 0.8684 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.7846, allocations: 0.8899 MB / 0.8693 GB, free: 13.25 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.7876, allocations: 1.146 MB / 0.8704 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001663/0.7893, allocations: 0.7912 MB / 0.8712 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.00028/0.7896, allocations: 100 kB / 0.8713 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004623/0.7942, allocations: 2.05 MB / 0.8733 GB, free: 9.172 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006/0.7948, allocations: 366.9 kB / 0.8736 GB, free: 8.812 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0009412/0.7958, allocations: 0.5986 MB / 0.8742 GB, free: 8.211 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005212/0.801, allocations: 2.432 MB / 0.8766 GB, free: 5.773 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.801, allocations: 0 / 0.8766 GB, free: 5.773 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.362e-06/0.801, allocations: 0 / 0.8766 GB, free: 5.773 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.442e-05/0.8011, allocations: 0 / 0.8766 GB, free: 5.773 MB / 0.6387 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.004073/0.8052, allocations: 1.677 MB / 0.8782 GB, free: 4.035 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.8052, allocations: 9.109 kB / 0.8782 GB, free: 4.027 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001611/0.8054, allocations: 110.5 kB / 0.8783 GB, free: 3.91 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003097/0.8085, allocations: 0.5455 MB / 0.8788 GB, free: 3.363 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.8111, allocations: 1.042 MB / 0.8799 GB, free: 2.277 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.343e-05/0.8112, allocations: 61.31 kB / 0.8799 GB, free: 2.219 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001848/0.8114, allocations: 71.94 kB / 0.88 GB, free: 2.148 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/0.8141, allocations: 1.112 MB / 0.8811 GB, free: 1.004 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.8142, allocations: 4 kB / 0.8811 GB, free: 1 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-05/0.8143, allocations: 24 kB / 0.8811 GB, free: 0.9766 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-05/0.8143, allocations: 37.3 kB / 0.8811 GB, free: 0.9414 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003246/0.8176, allocations: 1.16 MB / 0.8823 GB, free: 15.78 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006316/0.8239, allocations: 3.163 MB / 0.8854 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.8257, allocations: 0.6841 MB / 0.886 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008399/0.8266, allocations: 422.2 kB / 0.8864 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001053/0.8277, allocations: 1.025 MB / 0.8874 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.8288, allocations: 0.5104 MB / 0.8879 GB, free: 9.648 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=57): time 2.434e-06/0.8288, allocations: 4 kB / 0.8879 GB, free: 9.645 MB / 0.6544 GB Notification: Performance of matching and sorting (n=57): time 0.003206/0.832, allocations: 1.241 MB / 0.8892 GB, free: 8.395 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.8321, allocations: 136.9 kB / 0.8893 GB, free: 8.23 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/0.8342, allocations: 1.176 MB / 0.8904 GB, free: 7.039 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.8343, allocations: 37.7 kB / 0.8905 GB, free: 6.996 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004114/0.8348, allocations: 445.7 kB / 0.8909 GB, free: 6.559 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.8349, allocations: 202.3 kB / 0.8911 GB, free: 6.359 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002868/0.8352, allocations: 142.2 kB / 0.8912 GB, free: 6.211 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.8354, allocations: 330 kB / 0.8915 GB, free: 5.883 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.8367, allocations: 440.9 kB / 0.892 GB, free: 5.453 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.8382, allocations: 0.5976 MB / 0.8925 GB, free: 4.805 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/0.8404, allocations: 0.9227 MB / 0.8934 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.8404, allocations: 0 / 0.8934 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003306/0.8437, allocations: 1.202 MB / 0.8946 GB, free: 2.613 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/0.8438, allocations: 37.69 kB / 0.8947 GB, free: 2.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.8438, allocations: 4 kB / 0.8947 GB, free: 2.566 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.8438, allocations: 11.94 kB / 0.8947 GB, free: 2.555 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009534/0.8448, allocations: 191.9 kB / 0.8948 GB, free: 2.367 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.8448, allocations: 11.94 kB / 0.8949 GB, free: 2.355 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.8463, allocations: 255 kB / 0.8951 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-05/0.8464, allocations: 35.97 kB / 0.8951 GB, free: 2.07 MB / 0.6544 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.0005563/0.847, allocations: 323.4 kB / 0.8954 GB, free: 1.738 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002463/0.8472, allocations: 123.2 kB / 0.8956 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.8495, allocations: 0.9984 MB / 0.8965 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.8496, allocations: 7.984 kB / 0.8965 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.8496, allocations: 4 kB / 0.8965 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.8496, allocations: 0 / 0.8965 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0053/0.8549, allocations: 3.169 MB / 0.8996 GB, free: 13.27 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.8549, allocations: 8 kB / 0.8997 GB, free: 13.27 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/0.8555, allocations: 120 kB / 0.8998 GB, free: 13.15 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-05/0.8556, allocations: 12 kB / 0.8998 GB, free: 13.14 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.16e-05/0.8556, allocations: 27.98 kB / 0.8998 GB, free: 13.11 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-05/0.8557, allocations: 8 kB / 0.8998 GB, free: 13.1 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.8557, allocations: 11.94 kB / 0.8998 GB, free: 13.09 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002403/0.8581, allocations: 1.35 MB / 0.9011 GB, free: 11.62 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005977/0.8587, allocations: 336 kB / 0.9015 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.8589, allocations: 23.98 kB / 0.9015 GB, free: 11.25 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.8599, allocations: 95.91 kB / 0.9016 GB, free: 11.16 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.8601, allocations: 63.7 kB / 0.9016 GB, free: 11.09 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/0.8601, allocations: 43.97 kB / 0.9017 GB, free: 11.05 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001605/0.8618, allocations: 0.8443 MB / 0.9025 GB, free: 10.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 2e-07/0.8618, allocations: 0 / 0.9025 GB, free: 10.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001086/0.8629, allocations: 299.6 kB / 0.9028 GB, free: 9.906 MB / 0.67 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.003385/0.8663, allocations: 2.146 MB / 0.9049 GB, free: 7.648 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00271/0.869, allocations: 1.009 MB / 0.9059 GB, free: 6.625 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/0.869, allocations: 4 kB / 0.9059 GB, free: 6.621 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.8701, allocations: 0.5164 MB / 0.9064 GB, free: 6.094 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.8732, allocations: 0.5412 MB / 0.9069 GB, free: 5.562 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0181/0.8914, allocations: 9.415 MB / 0.9161 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008164/0.8922, allocations: 1.073 MB / 0.9171 GB, free: 10.64 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001077/0.8933, allocations: 271.3 kB / 0.9174 GB, free: 10.37 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005739/0.8939, allocations: 359.3 kB / 0.9178 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of SimCode: time 6.21e-07/0.8939, allocations: 0 / 0.9178 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06706/0.9609, allocations: 31.77 MB / 0.9488 GB, free: 10.57 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.973/10.93, allocations: 7.812 kB / 0.9488 GB, free: 10.57 MB / 0.7169 GB (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)