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.007248/0.007248, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001165/0.001165, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7799/0.7799, allocations: 135.1 MB / 425.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 71.41 kB / 0.5851 GB, free: 21.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1622, allocations: 80.93 MB / 0.6642 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6247/0.7869, allocations: 194 MB / 0.8536 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01016/0.7971, allocations: 6.93 MB / 0.8604 GB, free: 5.457 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/0.7993, allocations: 43.03 kB / 0.8604 GB, free: 5.441 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001909/0.8013, allocations: 0.7091 MB / 0.8611 GB, free: 4.836 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006073/0.8074, allocations: 2.432 MB / 0.8635 GB, free: 3 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003324/0.8107, allocations: 1.427 MB / 0.8649 GB, free: 1.934 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004042/0.8148, allocations: 3.007 MB / 0.8678 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.8162, allocations: 0.8895 MB / 0.8687 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002759/0.819, allocations: 1.164 MB / 0.8698 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001563/0.8206, allocations: 0.7924 MB / 0.8706 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003005/0.8209, allocations: 100 kB / 0.8707 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004267/0.8252, allocations: 2.07 MB / 0.8727 GB, free: 10.06 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.8258, allocations: 366.9 kB / 0.8731 GB, free: 9.699 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.827, allocations: 0.5907 MB / 0.8736 GB, free: 9.105 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004591/0.8316, allocations: 2.428 MB / 0.876 GB, free: 6.672 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8316, allocations: 4 kB / 0.876 GB, free: 6.668 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8316, allocations: 0 / 0.876 GB, free: 6.668 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.048e-05/0.8317, allocations: 0 / 0.876 GB, free: 6.668 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.003974/0.8357, allocations: 1.673 MB / 0.8777 GB, free: 4.934 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.8357, allocations: 13.11 kB / 0.8777 GB, free: 4.922 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001941/0.8359, allocations: 114.5 kB / 0.8778 GB, free: 4.801 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002798/0.8387, allocations: 0.5416 MB / 0.8783 GB, free: 4.258 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.841, allocations: 1.042 MB / 0.8793 GB, free: 3.172 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.8411, allocations: 57.3 kB / 0.8794 GB, free: 3.117 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.8412, allocations: 68 kB / 0.8794 GB, free: 3.051 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.8435, allocations: 1.112 MB / 0.8805 GB, free: 1.91 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.8436, allocations: 3.938 kB / 0.8805 GB, free: 1.906 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-05/0.8437, allocations: 28 kB / 0.8806 GB, free: 1.879 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.014e-05/0.8437, allocations: 37.3 kB / 0.8806 GB, free: 1.844 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002946/0.8467, allocations: 1.16 MB / 0.8817 GB, free: 0.6797 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005469/0.8521, allocations: 3.157 MB / 0.8848 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/0.8538, allocations: 0.6919 MB / 0.8855 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007789/0.8546, allocations: 422 kB / 0.8859 GB, free: 12.33 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008558/0.8555, allocations: 1.017 MB / 0.8869 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009838/0.8565, allocations: 0.5182 MB / 0.8874 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=57): time 2.676e-06/0.8565, allocations: 0 / 0.8874 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=57): time 0.003042/0.8595, allocations: 1.237 MB / 0.8886 GB, free: 9.297 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.8596, allocations: 140.9 kB / 0.8887 GB, free: 9.129 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.8616, allocations: 1.176 MB / 0.8899 GB, free: 7.938 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.071e-05/0.8617, allocations: 41.7 kB / 0.8899 GB, free: 7.891 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000373/0.8621, allocations: 449.7 kB / 0.8904 GB, free: 7.449 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.8622, allocations: 194.3 kB / 0.8905 GB, free: 7.258 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.8625, allocations: 142.2 kB / 0.8907 GB, free: 7.109 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.8626, allocations: 334 kB / 0.891 GB, free: 6.777 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.8638, allocations: 436.9 kB / 0.8914 GB, free: 6.352 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/0.8652, allocations: 0.6035 MB / 0.892 GB, free: 5.703 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/0.8672, allocations: 0.9223 MB / 0.8929 GB, free: 4.719 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.8673, allocations: 0 / 0.8929 GB, free: 4.719 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003027/0.8703, allocations: 1.198 MB / 0.8941 GB, free: 3.516 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.45e-05/0.8704, allocations: 41.69 kB / 0.8941 GB, free: 3.469 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.8704, allocations: 4 kB / 0.8941 GB, free: 3.465 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.8704, allocations: 11.88 kB / 0.8941 GB, free: 3.453 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008912/0.8713, allocations: 187.9 kB / 0.8943 GB, free: 3.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.8713, allocations: 11.94 kB / 0.8943 GB, free: 3.258 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.8728, allocations: 248.3 kB / 0.8946 GB, free: 3.016 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.573e-05/0.8729, allocations: 39.97 kB / 0.8946 GB, free: 2.977 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.0004929/0.8734, allocations: 327.4 kB / 0.8949 GB, free: 2.641 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.8736, allocations: 119.2 kB / 0.895 GB, free: 2.523 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002119/0.8757, allocations: 0.9993 MB / 0.896 GB, free: 1.508 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.8758, allocations: 11.98 kB / 0.896 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.8758, allocations: 0 / 0.896 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.8758, allocations: 0 / 0.896 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.8807, allocations: 3.163 MB / 0.8991 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.938e-05/0.8807, allocations: 8 kB / 0.8991 GB, free: 14.17 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.8813, allocations: 111.8 kB / 0.8992 GB, free: 14.06 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.762e-05/0.8813, allocations: 12 kB / 0.8992 GB, free: 14.05 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.238e-05/0.8814, allocations: 28.05 kB / 0.8992 GB, free: 14.02 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.201e-05/0.8814, allocations: 16 kB / 0.8993 GB, free: 14.01 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.8814, allocations: 11.94 kB / 0.8993 GB, free: 14 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.8837, allocations: 1.35 MB / 0.9006 GB, free: 12.53 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00059/0.8843, allocations: 336 kB / 0.9009 GB, free: 12.18 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002223/0.8845, allocations: 23.98 kB / 0.9009 GB, free: 12.16 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.8856, allocations: 103.9 kB / 0.901 GB, free: 12.05 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.8858, allocations: 63.7 kB / 0.9011 GB, free: 11.99 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.8859, allocations: 35.97 kB / 0.9011 GB, free: 11.96 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001677/0.8876, allocations: 0.8521 MB / 0.902 GB, free: 11.1 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8876, allocations: 0 / 0.902 GB, free: 11.1 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001169/0.8887, allocations: 299.6 kB / 0.9022 GB, free: 10.8 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.003187/0.8919, allocations: 2.135 MB / 0.9043 GB, free: 8.562 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002365/0.8943, allocations: 1.013 MB / 0.9053 GB, free: 7.539 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.8943, allocations: 3.938 kB / 0.9053 GB, free: 7.535 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0009556/0.8953, allocations: 0.5202 MB / 0.9058 GB, free: 7.004 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/0.898, allocations: 0.5443 MB / 0.9064 GB, free: 6.469 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/0.9143, allocations: 9.418 MB / 0.9156 GB, free: 12.65 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007769/0.9152, allocations: 1.073 MB / 0.9166 GB, free: 11.55 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001122/0.9163, allocations: 274.5 kB / 0.9169 GB, free: 11.28 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000584/0.9169, allocations: 359.3 kB / 0.9172 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of SimCode: time 1.232e-06/0.9169, allocations: 0 / 0.9172 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06171/0.9786, allocations: 31.75 MB / 0.9482 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.976/10.95, allocations: 0 / 0.9482 GB, free: 11.5 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)