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.008508/0.008507, allocations: 97.3 kB / 15.73 MB, free: 6.035 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.001884/0.001884, allocations: 201.7 kB / 16.68 MB, free: 5.961 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9149/0.9149, allocations: 135.1 MB / 425.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 63.91 kB / 0.5852 GB, free: 3.82 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4054, allocations: 80.91 MB / 0.6642 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2115/0.617, allocations: 194 MB / 0.8536 GB, free: 14.9 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01114/0.6282, allocations: 6.937 MB / 0.8604 GB, free: 7.949 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.6299, allocations: 43.69 kB / 0.8604 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.6319, allocations: 0.7143 MB / 0.8611 GB, free: 7.188 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006148/0.638, allocations: 2.435 MB / 0.8635 GB, free: 4.742 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003453/0.6415, allocations: 1.417 MB / 0.8649 GB, free: 3.344 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004424/0.6459, allocations: 3.002 MB / 0.8678 GB, free: 340 kB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3984/1.044, allocations: 0.8855 MB / 0.8687 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003291/1.048, allocations: 1.162 MB / 0.8698 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/1.05, allocations: 0.7896 MB / 0.8706 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003552/1.05, allocations: 100.2 kB / 0.8707 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004505/1.055, allocations: 2.07 MB / 0.8727 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006164/1.055, allocations: 367.3 kB / 0.8731 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001068/1.056, allocations: 0.5856 MB / 0.8736 GB, free: 4.602 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.005662/1.062, allocations: 2.431 MB / 0.876 GB, free: 4.473 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/1.062, allocations: 0.7188 kB / 0.876 GB, free: 4.473 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.472e-06/1.062, allocations: 0 / 0.876 GB, free: 4.473 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.07e-05/1.062, allocations: 1.75 kB / 0.876 GB, free: 4.473 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.004811/1.067, allocations: 1.675 MB / 0.8777 GB, free: 19.57 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/1.067, allocations: 10.34 kB / 0.8777 GB, free: 19.57 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001744/1.067, allocations: 114.5 kB / 0.8778 GB, free: 19.53 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003403/1.071, allocations: 0.5369 MB / 0.8783 GB, free: 19.46 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/1.074, allocations: 1.05 MB / 0.8793 GB, free: 19.12 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.887e-05/1.074, allocations: 52.16 kB / 0.8794 GB, free: 19.12 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002384/1.074, allocations: 70.28 kB / 0.8794 GB, free: 19.12 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002895/1.077, allocations: 1.105 MB / 0.8805 GB, free: 19.01 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/1.077, allocations: 7.594 kB / 0.8805 GB, free: 19.01 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.683e-05/1.077, allocations: 27.38 kB / 0.8806 GB, free: 19.01 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.104e-05/1.077, allocations: 35.17 kB / 0.8806 GB, free: 19.01 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003191/1.08, allocations: 1.161 MB / 0.8817 GB, free: 19 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006629/1.087, allocations: 3.164 MB / 0.8848 GB, free: 18.08 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/1.089, allocations: 0.692 MB / 0.8855 GB, free: 18.04 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008604/1.09, allocations: 424.6 kB / 0.8859 GB, free: 18.04 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/1.091, allocations: 1.027 MB / 0.8869 GB, free: 16.91 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/1.092, allocations: 0.5169 MB / 0.8874 GB, free: 16.8 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=57): time 2.685e-06/1.092, allocations: 2.234 kB / 0.8874 GB, free: 16.8 MB / 0.7012 GB Notification: Performance of matching and sorting (n=57): time 0.00332/1.095, allocations: 1.226 MB / 0.8886 GB, free: 16.67 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.575e-05/1.095, allocations: 141.2 kB / 0.8887 GB, free: 16.51 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/1.098, allocations: 1.179 MB / 0.8899 GB, free: 16.36 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001762/1.098, allocations: 38.95 kB / 0.8899 GB, free: 16.33 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003214/1.098, allocations: 436.8 kB / 0.8903 GB, free: 16.2 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/1.098, allocations: 203.6 kB / 0.8905 GB, free: 16.07 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/1.099, allocations: 150.1 kB / 0.8907 GB, free: 16.05 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001195/1.099, allocations: 329.7 kB / 0.891 GB, free: 15.74 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/1.1, allocations: 439.8 kB / 0.8914 GB, free: 15.74 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/1.101, allocations: 0.598 MB / 0.892 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/1.104, allocations: 0.9272 MB / 0.8929 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/1.104, allocations: 1.156 kB / 0.8929 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003434/1.107, allocations: 1.201 MB / 0.8941 GB, free: 15.3 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.062e-05/1.107, allocations: 42.36 kB / 0.8941 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/1.107, allocations: 3.094 kB / 0.8941 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/1.107, allocations: 6.25 kB / 0.8941 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/1.108, allocations: 186.2 kB / 0.8943 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/1.108, allocations: 10.94 kB / 0.8943 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/1.11, allocations: 242.5 kB / 0.8945 GB, free: 15.23 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/1.11, allocations: 42.36 kB / 0.8946 GB, free: 15.22 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.0006839/1.111, allocations: 328.7 kB / 0.8949 GB, free: 15.07 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003413/1.111, allocations: 121.2 kB / 0.895 GB, free: 15.01 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002303/1.114, allocations: 0.9874 MB / 0.896 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/1.114, allocations: 7.094 kB / 0.896 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/1.114, allocations: 2.172 kB / 0.896 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/1.114, allocations: 4.328 kB / 0.896 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004995/1.119, allocations: 3.172 MB / 0.8991 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.119, allocations: 8.469 kB / 0.8991 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/1.119, allocations: 121.8 kB / 0.8992 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/1.119, allocations: 11.69 kB / 0.8992 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.523e-05/1.119, allocations: 23.3 kB / 0.8992 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.216e-05/1.119, allocations: 18.28 kB / 0.8993 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/1.119, allocations: 14.97 kB / 0.8993 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/1.122, allocations: 1.343 MB / 0.9006 GB, free: 13.58 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006883/1.122, allocations: 339 kB / 0.9009 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/1.123, allocations: 20.72 kB / 0.9009 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.124, allocations: 105.4 kB / 0.901 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/1.124, allocations: 65.75 kB / 0.9011 GB, free: 13.4 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.626e-05/1.124, allocations: 42.64 kB / 0.9011 GB, free: 13.4 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001431/1.125, allocations: 0.8492 MB / 0.902 GB, free: 13.29 MB / 0.7012 GB Notification: Performance of sort global known variables: time 3.21e-07/1.125, allocations: 0 / 0.902 GB, free: 13.29 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001248/1.127, allocations: 301 kB / 0.9022 GB, free: 13.27 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.003096/1.13, allocations: 2.123 MB / 0.9043 GB, free: 12.16 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002472/1.132, allocations: 1.011 MB / 0.9053 GB, free: 12.07 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.132, allocations: 7.719 kB / 0.9053 GB, free: 12.07 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0009464/1.133, allocations: 0.5102 MB / 0.9058 GB, free: 12 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.137, allocations: 0.5526 MB / 0.9064 GB, free: 11.91 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/1.155, allocations: 9.427 MB / 0.9156 GB, free: 9.062 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008864/1.156, allocations: 1.07 MB / 0.9166 GB, free: 8.34 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001282/1.157, allocations: 271.2 kB / 0.9169 GB, free: 8.281 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005862/1.157, allocations: 361.9 kB / 0.9172 GB, free: 8.273 MB / 0.7012 GB Notification: Performance of SimCode: time 1.142e-06/1.157, allocations: 0 / 0.9172 GB, free: 8.273 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0651/1.223, allocations: 31.76 MB / 0.9482 GB, free: 9.012 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.535/10.76, allocations: 4.719 kB / 0.9482 GB, free: 9.008 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)