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.006109/0.006109, allocations: 104.4 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.001381/0.001381, allocations: 196 kB / 16.67 MB, free: 5.969 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.355/1.355, 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.9845/0.9845, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001559, allocations: 63.89 kB / 0.5851 GB, free: 3.844 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4443/0.4459, allocations: 80.9 MB / 0.6642 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2009/0.6469, allocations: 194 MB / 0.8536 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01114/0.6581, allocations: 6.936 MB / 0.8604 GB, free: 7.941 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.6599, allocations: 47.69 kB / 0.8604 GB, free: 7.895 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.6622, allocations: 0.6908 MB / 0.8611 GB, free: 7.199 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006543/0.6688, allocations: 2.333 MB / 0.8634 GB, free: 4.859 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003762/0.6726, allocations: 1.419 MB / 0.8648 GB, free: 3.457 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004528/0.6771, allocations: 2.994 MB / 0.8677 GB, free: 464 kB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4349/1.112, allocations: 0.8803 MB / 0.8686 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/1.115, allocations: 1.154 MB / 0.8697 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001895/1.117, allocations: 0.8017 MB / 0.8705 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003646/1.118, allocations: 99.59 kB / 0.8706 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005372/1.123, allocations: 2.056 MB / 0.8726 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0009354/1.124, allocations: 370.2 kB / 0.8729 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001165/1.125, allocations: 0.5875 MB / 0.8735 GB, free: 4.555 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.005865/1.131, allocations: 2.418 MB / 0.8759 GB, free: 4.512 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/1.131, allocations: 0.9062 kB / 0.8759 GB, free: 4.512 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.743e-06/1.131, allocations: 0.9375 kB / 0.8759 GB, free: 4.512 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 3.813e-05/1.131, allocations: 0 / 0.8759 GB, free: 4.512 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.00504/1.136, allocations: 1.635 MB / 0.8775 GB, free: 19.67 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/1.136, allocations: 10.67 kB / 0.8775 GB, free: 19.67 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001613/1.136, allocations: 115.3 kB / 0.8776 GB, free: 19.63 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003358/1.14, allocations: 0.5349 MB / 0.8781 GB, free: 19.57 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002966/1.143, allocations: 1.036 MB / 0.8791 GB, free: 19.24 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.123e-05/1.143, allocations: 53 kB / 0.8792 GB, free: 19.24 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001989/1.143, allocations: 69.66 kB / 0.8792 GB, free: 19.24 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/1.146, allocations: 1.105 MB / 0.8803 GB, free: 19.13 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/1.146, allocations: 3.844 kB / 0.8803 GB, free: 19.13 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-05/1.146, allocations: 26.72 kB / 0.8803 GB, free: 19.13 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.709e-05/1.146, allocations: 34.11 kB / 0.8804 GB, free: 19.12 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003151/1.149, allocations: 1.167 MB / 0.8815 GB, free: 19.12 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006279/1.156, allocations: 3.15 MB / 0.8846 GB, free: 18.2 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/1.157, allocations: 0.6898 MB / 0.8853 GB, free: 18.18 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008391/1.158, allocations: 430.6 kB / 0.8857 GB, free: 18.17 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008718/1.159, allocations: 1.022 MB / 0.8867 GB, free: 17.04 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/1.16, allocations: 0.5104 MB / 0.8872 GB, free: 16.94 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=57): time 3.086e-06/1.16, allocations: 0 / 0.8872 GB, free: 16.94 MB / 0.7012 GB Notification: Performance of matching and sorting (n=57): time 0.003284/1.164, allocations: 1.218 MB / 0.8884 GB, free: 16.8 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.818e-05/1.164, allocations: 147 kB / 0.8885 GB, free: 16.65 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/1.166, allocations: 1.18 MB / 0.8896 GB, free: 16.5 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001824/1.166, allocations: 39.98 kB / 0.8897 GB, free: 16.46 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/1.167, allocations: 444 kB / 0.8901 GB, free: 16.34 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/1.167, allocations: 178 kB / 0.8903 GB, free: 16.22 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/1.167, allocations: 148.9 kB / 0.8904 GB, free: 16.2 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001253/1.167, allocations: 332.6 kB / 0.8907 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/1.169, allocations: 442.8 kB / 0.8912 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/1.17, allocations: 0.6018 MB / 0.8917 GB, free: 15.76 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/1.172, allocations: 0.9236 MB / 0.8926 GB, free: 15.58 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/1.172, allocations: 3.344 kB / 0.8927 GB, free: 15.58 MB / 0.7012 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003492/1.176, allocations: 1.193 MB / 0.8938 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/1.176, allocations: 40.88 kB / 0.8939 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/1.176, allocations: 4.625 kB / 0.8939 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.919e-05/1.176, allocations: 5.688 kB / 0.8939 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/1.177, allocations: 186.4 kB / 0.894 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-05/1.177, allocations: 12.52 kB / 0.8941 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/1.179, allocations: 242.8 kB / 0.8943 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001983/1.179, allocations: 41.48 kB / 0.8943 GB, free: 15.38 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.00081/1.18, allocations: 324.5 kB / 0.8946 GB, free: 15.23 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/1.18, allocations: 119.2 kB / 0.8948 GB, free: 15.17 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002528/1.183, allocations: 0.9925 MB / 0.8957 GB, free: 15.07 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.902e-05/1.183, allocations: 6.312 kB / 0.8957 GB, free: 15.07 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/1.183, allocations: 1.188 kB / 0.8957 GB, free: 15.07 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/1.183, allocations: 5.141 kB / 0.8957 GB, free: 15.07 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00587/1.189, allocations: 3.167 MB / 0.8988 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.321e-05/1.189, allocations: 7.25 kB / 0.8988 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006566/1.189, allocations: 120.2 kB / 0.8989 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-05/1.189, allocations: 11.53 kB / 0.899 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-05/1.19, allocations: 23.48 kB / 0.899 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.91e-05/1.19, allocations: 17.38 kB / 0.899 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/1.19, allocations: 13.23 kB / 0.899 GB, free: 14.3 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/1.192, allocations: 1.341 MB / 0.9003 GB, free: 13.75 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008696/1.193, allocations: 332.6 kB / 0.9006 GB, free: 13.59 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003739/1.193, allocations: 24.09 kB / 0.9007 GB, free: 13.59 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/1.195, allocations: 99.83 kB / 0.9008 GB, free: 13.59 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/1.195, allocations: 58.75 kB / 0.9008 GB, free: 13.58 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/1.195, allocations: 43.77 kB / 0.9009 GB, free: 13.58 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001753/1.197, allocations: 0.8474 MB / 0.9017 GB, free: 13.47 MB / 0.7012 GB Notification: Performance of sort global known variables: time 3.91e-07/1.197, allocations: 0 / 0.9017 GB, free: 13.47 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001671/1.199, allocations: 302.6 kB / 0.902 GB, free: 13.45 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.003769/1.202, allocations: 2.123 MB / 0.904 GB, free: 12.36 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002761/1.205, allocations: 1.015 MB / 0.905 GB, free: 12.27 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.88e-05/1.205, allocations: 1.906 kB / 0.905 GB, free: 12.27 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001072/1.206, allocations: 0.5119 MB / 0.9055 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003902/1.21, allocations: 0.5612 MB / 0.9061 GB, free: 12.11 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01871/1.229, allocations: 9.386 MB / 0.9152 GB, free: 9.289 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008688/1.23, allocations: 1.07 MB / 0.9163 GB, free: 8.574 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001376/1.231, allocations: 278.8 kB / 0.9166 GB, free: 8.512 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/1.232, allocations: 357.4 kB / 0.9169 GB, free: 8.504 MB / 0.7012 GB Notification: Performance of SimCode: time 7.91e-07/1.232, allocations: 0 / 0.9169 GB, free: 8.504 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0676/1.3, allocations: 32.21 MB / 0.9484 GB, free: 8.895 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/11.5, allocations: 4.719 kB / 0.9484 GB, free: 8.891 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)