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.001056/0.001056, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001092/0.001092, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.282/1.282, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7241/0.7241, allocations: 132.2 MB / 422.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 59.44 kB / 0.5012 GB, free: 9.125 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1422, allocations: 80.21 MB / 0.5795 GB, free: 9.137 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.3989/0.5411, allocations: 191.6 MB / 0.7666 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009417/0.5506, allocations: 6.995 MB / 0.7735 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.5517, allocations: 43.69 kB / 0.7735 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.5533, allocations: 0.5593 MB / 0.7741 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004694/0.558, allocations: 2.176 MB / 0.7762 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.5608, allocations: 1.288 MB / 0.7774 GB, free: 8.523 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003695/0.5645, allocations: 3.737 MB / 0.7811 GB, free: 4.785 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.5656, allocations: 0.7919 MB / 0.7819 GB, free: 3.988 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001457/0.5671, allocations: 0.9764 MB / 0.7828 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001376/0.5685, allocations: 0.8024 MB / 0.7836 GB, free: 2.207 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.5686, allocations: 48 kB / 0.7837 GB, free: 2.16 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.5721, allocations: 2.221 MB / 0.7858 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.5724, allocations: 322.9 kB / 0.7861 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005212/0.5729, allocations: 0.54 MB / 0.7867 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.5758, allocations: 2.423 MB / 0.789 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.5758, allocations: 0 / 0.789 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.22e-07/0.5758, allocations: 0 / 0.789 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.5758, allocations: 0 / 0.789 GB, free: 12.64 MB / 0.6075 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.003202/0.579, allocations: 1.633 MB / 0.7906 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.5791, allocations: 8.031 kB / 0.7906 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.5792, allocations: 114.5 kB / 0.7907 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003022/0.5822, allocations: 0.5332 MB / 0.7913 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.5842, allocations: 0.9801 MB / 0.7922 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001154/0.5854, allocations: 277 kB / 0.7925 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.5855, allocations: 72 kB / 0.7925 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.5879, allocations: 1.124 MB / 0.7936 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.5879, allocations: 0 / 0.7936 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.284e-05/0.588, allocations: 28 kB / 0.7937 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.923e-05/0.588, allocations: 37.23 kB / 0.7937 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003/0.591, allocations: 1.196 MB / 0.7949 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/0.5964, allocations: 3.211 MB / 0.798 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.598, allocations: 0.6849 MB / 0.7987 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007757/0.5988, allocations: 423.2 kB / 0.7991 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008292/0.5997, allocations: 1.021 MB / 0.8001 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009684/0.6006, allocations: 0.5182 MB / 0.8006 GB, free: 332 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.324e-06/0.6006, allocations: 0 / 0.8006 GB, free: 332 kB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.00284/0.6035, allocations: 1.221 MB / 0.8018 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.6036, allocations: 140.9 kB / 0.8019 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.6054, allocations: 1.207 MB / 0.8031 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 6.593e-05/0.6054, allocations: 37.7 kB / 0.8031 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003312/0.6058, allocations: 445.3 kB / 0.8036 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.6059, allocations: 185.3 kB / 0.8037 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/0.6062, allocations: 154.1 kB / 0.8039 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.6063, allocations: 322 kB / 0.8042 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.6076, allocations: 464.8 kB / 0.8046 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.609, allocations: 0.6132 MB / 0.8052 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001968/0.6109, allocations: 0.9418 MB / 0.8061 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.611, allocations: 3.984 kB / 0.8061 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002957/0.6139, allocations: 1.236 MB / 0.8074 GB, free: 9.199 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.614, allocations: 37.69 kB / 0.8074 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.614, allocations: 4 kB / 0.8074 GB, free: 9.152 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.614, allocations: 7.938 kB / 0.8074 GB, free: 9.145 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009703/0.615, allocations: 200 kB / 0.8076 GB, free: 8.949 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.615, allocations: 4 kB / 0.8076 GB, free: 8.945 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.6165, allocations: 274.9 kB / 0.8079 GB, free: 8.676 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.161e-05/0.6166, allocations: 34.17 kB / 0.8079 GB, free: 8.645 MB / 0.6231 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.0004286/0.6171, allocations: 334.8 kB / 0.8082 GB, free: 8.305 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.6173, allocations: 114.6 kB / 0.8083 GB, free: 8.191 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.6193, allocations: 0.9955 MB / 0.8093 GB, free: 7.184 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.6193, allocations: 8 kB / 0.8093 GB, free: 7.176 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6193, allocations: 0 / 0.8093 GB, free: 7.176 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.6193, allocations: 11.98 kB / 0.8093 GB, free: 7.164 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004447/0.6238, allocations: 3.156 MB / 0.8124 GB, free: 3.859 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.6238, allocations: 11.98 kB / 0.8124 GB, free: 3.848 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/0.6244, allocations: 124 kB / 0.8125 GB, free: 3.727 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.6244, allocations: 8 kB / 0.8125 GB, free: 3.719 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-05/0.6245, allocations: 27.98 kB / 0.8126 GB, free: 3.691 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.08e-05/0.6245, allocations: 15.94 kB / 0.8126 GB, free: 3.676 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.6245, allocations: 11.94 kB / 0.8126 GB, free: 3.664 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.6265, allocations: 1.338 MB / 0.8139 GB, free: 2.207 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004493/0.627, allocations: 331.3 kB / 0.8142 GB, free: 1.863 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.6272, allocations: 24 kB / 0.8142 GB, free: 1.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.6283, allocations: 111.9 kB / 0.8143 GB, free: 1.73 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.849e-05/0.6284, allocations: 63.75 kB / 0.8144 GB, free: 1.668 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-05/0.6285, allocations: 35.97 kB / 0.8144 GB, free: 1.633 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001418/0.6299, allocations: 0.8716 MB / 0.8153 GB, free: 0.7539 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6299, allocations: 3.938 kB / 0.8153 GB, free: 0.75 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009701/0.6309, allocations: 295.8 kB / 0.8156 GB, free: 472 kB / 0.6231 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.002761/0.6337, allocations: 2.133 MB / 0.8177 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002319/0.636, allocations: 1.021 MB / 0.8186 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.636, allocations: 0 / 0.8186 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009012/0.6369, allocations: 0.5125 MB / 0.8191 GB, free: 12.66 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/0.6396, allocations: 0.5243 MB / 0.8197 GB, free: 12.15 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/0.6568, allocations: 10.25 MB / 0.8297 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.6574, allocations: 1.073 MB / 0.8307 GB, free: 268 kB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001135/0.6586, allocations: 279.9 kB / 0.831 GB, free: 15.99 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/0.6591, allocations: 355.3 kB / 0.8313 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of SimCode: time 5.11e-07/0.6591, allocations: 3.938 kB / 0.8313 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5986/1.258, allocations: 30.57 MB / 0.8612 GB, free: 1.48 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003086/1.258, allocations: 256.9 kB / 0.8614 GB, free: 1.219 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.439/3.697, allocations: 2.109 kB / 0.8614 GB, free: 1.219 MB / 0.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)