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.001191/0.001191, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7732/0.7732, allocations: 132.2 MB / 422.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 68.48 kB / 0.5019 GB, free: 3.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.407, allocations: 80.19 MB / 0.5802 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2071/0.6142, allocations: 194 MB / 0.7696 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01044/0.6246, allocations: 6.933 MB / 0.7764 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.6267, allocations: 43.69 kB / 0.7764 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.6284, allocations: 0.6791 MB / 0.7771 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006129/0.6346, allocations: 2.338 MB / 0.7794 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004223/0.6388, allocations: 1.41 MB / 0.7808 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005481/0.6443, allocations: 2.982 MB / 0.7837 GB, free: 428 kB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001694/0.646, allocations: 0.8879 MB / 0.7846 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002635/0.6487, allocations: 1.136 MB / 0.7857 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.6499, allocations: 0.7903 MB / 0.7864 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.6501, allocations: 104 kB / 0.7865 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00388/0.654, allocations: 2.054 MB / 0.7885 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004177/0.6544, allocations: 362.9 kB / 0.7889 GB, free: 11.08 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006847/0.6551, allocations: 0.5869 MB / 0.7895 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003549/0.6587, allocations: 2.392 MB / 0.7918 GB, free: 8.086 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.6587, allocations: 0 / 0.7918 GB, free: 8.086 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6587, allocations: 0 / 0.7918 GB, free: 8.086 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.455e-05/0.6587, allocations: 0 / 0.7918 GB, free: 8.086 MB / 0.6231 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.003235/0.662, allocations: 1.633 MB / 0.7934 GB, free: 6.395 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.662, allocations: 12.03 kB / 0.7934 GB, free: 6.383 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.6622, allocations: 114.5 kB / 0.7935 GB, free: 6.262 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00293/0.6651, allocations: 0.5293 MB / 0.794 GB, free: 5.73 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00206/0.6672, allocations: 0.9869 MB / 0.795 GB, free: 4.703 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00122/0.6684, allocations: 273.1 kB / 0.7952 GB, free: 4.434 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.6686, allocations: 71.94 kB / 0.7953 GB, free: 4.363 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.6711, allocations: 1.124 MB / 0.7964 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.6711, allocations: 4 kB / 0.7964 GB, free: 3.207 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.672e-05/0.6712, allocations: 24 kB / 0.7964 GB, free: 3.184 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.823e-05/0.6712, allocations: 33.31 kB / 0.7965 GB, free: 3.152 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00327/0.6745, allocations: 1.207 MB / 0.7977 GB, free: 1.941 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005729/0.6802, allocations: 3.217 MB / 0.8008 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.682, allocations: 0.688 MB / 0.8015 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007927/0.6828, allocations: 425.4 kB / 0.8019 GB, free: 13.53 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008636/0.6837, allocations: 1.021 MB / 0.8029 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009969/0.6847, allocations: 0.5182 MB / 0.8034 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 2.184e-06/0.6847, allocations: 0 / 0.8034 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.003018/0.6878, allocations: 1.221 MB / 0.8046 GB, free: 10.52 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.593e-05/0.6878, allocations: 144.8 kB / 0.8047 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002099/0.6899, allocations: 1.196 MB / 0.8059 GB, free: 9.133 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.6901, allocations: 37.7 kB / 0.8059 GB, free: 9.09 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000362/0.6904, allocations: 449.4 kB / 0.8063 GB, free: 8.648 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.6907, allocations: 193.2 kB / 0.8065 GB, free: 8.457 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.6909, allocations: 142.1 kB / 0.8067 GB, free: 8.312 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.6911, allocations: 334 kB / 0.807 GB, free: 7.98 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.6924, allocations: 456.9 kB / 0.8074 GB, free: 7.535 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.6939, allocations: 0.6133 MB / 0.808 GB, free: 6.871 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/0.6962, allocations: 0.946 MB / 0.8089 GB, free: 5.875 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.6962, allocations: 4 kB / 0.8089 GB, free: 5.871 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003365/0.6996, allocations: 1.229 MB / 0.8101 GB, free: 4.625 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.08e-05/0.6996, allocations: 45.62 kB / 0.8102 GB, free: 4.574 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.6997, allocations: 4 kB / 0.8102 GB, free: 4.57 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.6997, allocations: 8 kB / 0.8102 GB, free: 4.562 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009918/0.7007, allocations: 196 kB / 0.8104 GB, free: 4.371 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.7007, allocations: 11.92 kB / 0.8104 GB, free: 4.359 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.7023, allocations: 266.9 kB / 0.8106 GB, free: 4.098 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-05/0.7024, allocations: 39.97 kB / 0.8107 GB, free: 4.059 MB / 0.6387 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.0004953/0.7029, allocations: 326.1 kB / 0.811 GB, free: 3.727 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.7032, allocations: 122.5 kB / 0.8111 GB, free: 3.605 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/0.7054, allocations: 0.9959 MB / 0.8121 GB, free: 2.605 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.7054, allocations: 7.984 kB / 0.8121 GB, free: 2.598 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7054, allocations: 4 kB / 0.8121 GB, free: 2.594 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.7054, allocations: 0 / 0.8121 GB, free: 2.594 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.267/0.9724, allocations: 3.156 MB / 0.8152 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.9725, allocations: 7.562 kB / 0.8152 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006426/0.9731, allocations: 120.8 kB / 0.8153 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.63e-05/0.9732, allocations: 14.47 kB / 0.8153 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/0.9732, allocations: 24.36 kB / 0.8153 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.689e-05/0.9732, allocations: 15.88 kB / 0.8154 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/0.9733, allocations: 11.62 kB / 0.8154 GB, free: 219.8 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.9758, allocations: 1.339 MB / 0.8167 GB, free: 219.3 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005166/0.9763, allocations: 325.3 kB / 0.817 GB, free: 219.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.9765, allocations: 23.05 kB / 0.817 GB, free: 219.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.9777, allocations: 117.3 kB / 0.8171 GB, free: 219.1 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.9778, allocations: 59.53 kB / 0.8172 GB, free: 219.1 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.712e-05/0.9779, allocations: 43.19 kB / 0.8172 GB, free: 219.1 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001739/0.9797, allocations: 0.8667 MB / 0.8181 GB, free: 218.7 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9797, allocations: 0 / 0.8181 GB, free: 218.7 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001199/0.9809, allocations: 297 kB / 0.8183 GB, free: 218.7 MB / 0.6387 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.003161/0.9841, allocations: 2.137 MB / 0.8204 GB, free: 217.4 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002645/0.9867, allocations: 1.05 MB / 0.8215 GB, free: 217 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.9867, allocations: 1.156 kB / 0.8215 GB, free: 217 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.9877, allocations: 0.5133 MB / 0.822 GB, free: 216.8 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/0.9906, allocations: 0.5547 MB / 0.8225 GB, free: 216.7 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/1.008, allocations: 9.983 MB / 0.8322 GB, free: 211.3 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/1.008, allocations: 1.068 MB / 0.8333 GB, free: 210.6 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001224/1.009, allocations: 278.2 kB / 0.8336 GB, free: 210.5 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004379/1.01, allocations: 361.1 kB / 0.8339 GB, free: 210.3 MB / 0.6387 GB Notification: Performance of SimCode: time 7.01e-07/1.01, allocations: 0 / 0.8339 GB, free: 210.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05338/1.063, allocations: 31.52 MB / 0.8647 GB, free: 186.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/9.165, allocations: 5.969 kB / 0.8647 GB, free: 186.2 MB / 0.6387 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)