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: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_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.006173/0.006173, allocations: 96.64 kB / 15.73 MB, free: 6.484 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.001169/0.001169, allocations: 192 kB / 16.67 MB, free: 6.391 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7646/0.7646, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.91 kB / 0.5809 GB, free: 8.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3888, allocations: 80.21 MB / 0.6592 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1986/0.5875, allocations: 194 MB / 0.8487 GB, free: 3.512 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01077/0.5983, allocations: 6.92 MB / 0.8554 GB, free: 12.58 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.6, allocations: 43.75 kB / 0.8555 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.6021, allocations: 0.7103 MB / 0.8562 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006322/0.6084, allocations: 2.431 MB / 0.8585 GB, free: 9.379 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003909/0.6123, allocations: 1.427 MB / 0.8599 GB, free: 7.977 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004532/0.6169, allocations: 3.005 MB / 0.8629 GB, free: 4.961 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.6186, allocations: 0.8879 MB / 0.8637 GB, free: 4.059 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003074/0.6217, allocations: 1.16 MB / 0.8649 GB, free: 2.902 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.6234, allocations: 0.7988 MB / 0.8656 GB, free: 2.105 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003308/0.6238, allocations: 104 kB / 0.8657 GB, free: 2.004 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4228/1.047, allocations: 2.065 MB / 0.8677 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0007666/1.047, allocations: 358.3 kB / 0.8681 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001427/1.049, allocations: 0.5866 MB / 0.8687 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.006352/1.055, allocations: 2.434 MB / 0.871 GB, free: 7.344 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/1.055, allocations: 0.8438 kB / 0.871 GB, free: 7.344 MB / 0.6856 GB Notification: Performance of FrontEnd: time 4.018e-06/1.055, allocations: 0 / 0.871 GB, free: 7.344 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 7.772e-05/1.055, allocations: 4.125 kB / 0.871 GB, free: 7.344 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.005766/1.061, allocations: 1.67 MB / 0.8727 GB, free: 6.441 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/1.061, allocations: 10.62 kB / 0.8727 GB, free: 6.441 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002758/1.062, allocations: 121.4 kB / 0.8728 GB, free: 6.402 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003409/1.065, allocations: 0.5377 MB / 0.8733 GB, free: 6.336 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003178/1.068, allocations: 1.044 MB / 0.8743 GB, free: 5.992 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/1.068, allocations: 55.64 kB / 0.8744 GB, free: 5.992 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002501/1.069, allocations: 68.5 kB / 0.8745 GB, free: 5.992 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002743/1.071, allocations: 1.106 MB / 0.8755 GB, free: 5.879 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/1.071, allocations: 4.094 kB / 0.8755 GB, free: 5.879 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-05/1.071, allocations: 26.5 kB / 0.8756 GB, free: 5.879 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.455e-05/1.072, allocations: 33.14 kB / 0.8756 GB, free: 5.879 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003504/1.075, allocations: 1.165 MB / 0.8767 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007022/1.082, allocations: 3.164 MB / 0.8798 GB, free: 4.949 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/1.084, allocations: 0.6905 MB / 0.8805 GB, free: 4.922 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008852/1.085, allocations: 423.9 kB / 0.8809 GB, free: 4.91 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009649/1.086, allocations: 1.024 MB / 0.8819 GB, free: 19.79 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/1.087, allocations: 0.511 MB / 0.8824 GB, free: 19.68 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=57): time 2.665e-06/1.087, allocations: 0.9688 kB / 0.8824 GB, free: 19.68 MB / 0.7012 GB Notification: Performance of matching and sorting (n=57): time 0.003321/1.09, allocations: 1.228 MB / 0.8836 GB, free: 19.54 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/1.091, allocations: 140.5 kB / 0.8837 GB, free: 19.39 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002284/1.093, allocations: 1.177 MB / 0.8849 GB, free: 19.24 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001937/1.093, allocations: 42.44 kB / 0.8849 GB, free: 19.21 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/1.093, allocations: 439.4 kB / 0.8854 GB, free: 19.08 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/1.094, allocations: 200.6 kB / 0.8855 GB, free: 18.95 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/1.094, allocations: 147.5 kB / 0.8857 GB, free: 18.93 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001117/1.094, allocations: 332.3 kB / 0.886 GB, free: 18.62 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/1.095, allocations: 441.1 kB / 0.8864 GB, free: 18.62 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/1.097, allocations: 0.5973 MB / 0.887 GB, free: 18.49 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/1.099, allocations: 0.9305 MB / 0.8879 GB, free: 18.31 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/1.099, allocations: 1.531 kB / 0.8879 GB, free: 18.31 MB / 0.7012 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003488/1.103, allocations: 1.198 MB / 0.8891 GB, free: 18.18 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.179e-05/1.103, allocations: 43.58 kB / 0.8891 GB, free: 18.14 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/1.103, allocations: 3.531 kB / 0.8891 GB, free: 18.14 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.622e-05/1.103, allocations: 6.344 kB / 0.8891 GB, free: 18.14 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/1.104, allocations: 190.3 kB / 0.8893 GB, free: 18.14 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/1.104, allocations: 8.781 kB / 0.8893 GB, free: 18.14 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/1.106, allocations: 246.3 kB / 0.8896 GB, free: 18.1 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/1.106, allocations: 39.44 kB / 0.8896 GB, free: 18.09 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.0006818/1.106, allocations: 328 kB / 0.8899 GB, free: 17.95 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003485/1.107, allocations: 121.4 kB / 0.89 GB, free: 17.88 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/1.109, allocations: 0.9928 MB / 0.891 GB, free: 17.79 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/1.109, allocations: 10.16 kB / 0.891 GB, free: 17.79 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/1.109, allocations: 4.062 kB / 0.891 GB, free: 17.79 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/1.109, allocations: 4.828 kB / 0.891 GB, free: 17.79 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005755/1.115, allocations: 3.165 MB / 0.8941 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-05/1.115, allocations: 7.844 kB / 0.8941 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006851/1.116, allocations: 121 kB / 0.8942 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.076e-05/1.116, allocations: 10.69 kB / 0.8942 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-05/1.116, allocations: 25.59 kB / 0.8943 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.089e-05/1.116, allocations: 20.91 kB / 0.8943 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/1.116, allocations: 12.14 kB / 0.8943 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002816/1.119, allocations: 1.35 MB / 0.8956 GB, free: 16.46 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009095/1.12, allocations: 335.4 kB / 0.8959 GB, free: 16.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/1.12, allocations: 20.34 kB / 0.896 GB, free: 16.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/1.122, allocations: 106.9 kB / 0.8961 GB, free: 16.29 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/1.122, allocations: 62.27 kB / 0.8961 GB, free: 16.29 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/1.122, allocations: 40.89 kB / 0.8962 GB, free: 16.29 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.00187/1.124, allocations: 0.8472 MB / 0.897 GB, free: 16.18 MB / 0.7012 GB Notification: Performance of sort global known variables: time 5.61e-07/1.124, allocations: 0.5625 kB / 0.897 GB, free: 16.18 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001954/1.126, allocations: 305.9 kB / 0.8973 GB, free: 16.15 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.003638/1.129, allocations: 2.119 MB / 0.8993 GB, free: 15.05 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002688/1.132, allocations: 1.015 MB / 0.9003 GB, free: 14.97 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-05/1.132, allocations: 3.562 kB / 0.9003 GB, free: 14.97 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/1.133, allocations: 0.5099 MB / 0.9008 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003785/1.137, allocations: 0.558 MB / 0.9014 GB, free: 14.84 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/1.157, allocations: 9.415 MB / 0.9106 GB, free: 11.99 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006903/1.157, allocations: 1.069 MB / 0.9116 GB, free: 11.28 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001246/1.159, allocations: 275.7 kB / 0.9119 GB, free: 11.22 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006194/1.159, allocations: 355 kB / 0.9122 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of SimCode: time 2.004e-06/1.159, allocations: 0 / 0.9122 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06174/1.221, allocations: 31.77 MB / 0.9432 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.78, allocations: 13.11 kB / 0.9433 GB, free: 15.6 MB / 0.7169 GB (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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)