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.006086/0.006087, allocations: 101.6 kB / 15.73 MB, free: 6.449 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.001309/0.001309, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7832/0.7832, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.47 kB / 0.5809 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1908, allocations: 80.21 MB / 0.6592 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6986/0.8894, allocations: 194 MB / 0.8486 GB, free: 1.738 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.009948/0.8994, allocations: 6.946 MB / 0.8554 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002388/0.9019, allocations: 43.78 kB / 0.8555 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002355/0.9043, allocations: 0.7034 MB / 0.8561 GB, free: 1.469 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.007724/0.9121, allocations: 2.433 MB / 0.8585 GB, free: 1.363 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003896/0.916, allocations: 1.432 MB / 0.8599 GB, free: 1.312 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004951/0.921, allocations: 3 MB / 0.8628 GB, free: 1.293 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.9227, allocations: 0.894 MB / 0.8637 GB, free: 1.191 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002955/0.9256, allocations: 1.162 MB / 0.8649 GB, free: 1.18 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.9272, allocations: 0.7918 MB / 0.8656 GB, free: 1.176 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002251/0.9275, allocations: 98.72 kB / 0.8657 GB, free: 1.176 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004608/0.9321, allocations: 2.071 MB / 0.8677 GB, free: 1.156 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005117/0.9326, allocations: 366.4 kB / 0.8681 GB, free: 1.148 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0009191/0.9335, allocations: 0.5883 MB / 0.8687 GB, free: 1.008 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005184/0.9387, allocations: 2.427 MB / 0.871 GB, free: 0.7305 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.9388, allocations: 1.844 kB / 0.871 GB, free: 0.7305 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.735e-06/0.9388, allocations: 0 / 0.871 GB, free: 0.7305 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.79e-05/0.9388, allocations: 0 / 0.871 GB, free: 0.7305 MB / 0.6387 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.003685/0.9425, allocations: 1.68 MB / 0.8727 GB, free: 15.81 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.9426, allocations: 8.531 kB / 0.8727 GB, free: 15.81 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001406/0.9427, allocations: 113 kB / 0.8728 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002691/0.9454, allocations: 0.54 MB / 0.8733 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.9476, allocations: 1.053 MB / 0.8744 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/0.9477, allocations: 54.72 kB / 0.8744 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.9478, allocations: 62.41 kB / 0.8745 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.95, allocations: 1.111 MB / 0.8755 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.9501, allocations: 2.531 kB / 0.8756 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.9502, allocations: 27.38 kB / 0.8756 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.136e-05/0.9502, allocations: 31 kB / 0.8756 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.9531, allocations: 1.162 MB / 0.8767 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005705/0.9588, allocations: 3.165 MB / 0.8798 GB, free: 14.2 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.9607, allocations: 0.6824 MB / 0.8805 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000941/0.9616, allocations: 437.8 kB / 0.8809 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/0.9627, allocations: 1.02 MB / 0.8819 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.9638, allocations: 0.5225 MB / 0.8824 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=57): time 3.577e-06/0.9638, allocations: 3.938 kB / 0.8824 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of matching and sorting (n=57): time 0.003014/0.9668, allocations: 1.228 MB / 0.8836 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.9669, allocations: 147.9 kB / 0.8838 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.969, allocations: 1.174 MB / 0.8849 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.9691, allocations: 38.61 kB / 0.885 GB, free: 12.03 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003818/0.9695, allocations: 440.3 kB / 0.8854 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.9697, allocations: 198.9 kB / 0.8856 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.97, allocations: 150.2 kB / 0.8857 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.9702, allocations: 326.8 kB / 0.886 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.9714, allocations: 438.3 kB / 0.8864 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.9729, allocations: 0.5965 MB / 0.887 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.9751, allocations: 0.9219 MB / 0.8879 GB, free: 10 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.9751, allocations: 0 / 0.8879 GB, free: 10 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003243/0.9784, allocations: 1.208 MB / 0.8891 GB, free: 9.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.441e-05/0.9784, allocations: 43.25 kB / 0.8891 GB, free: 9.371 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.9784, allocations: 3.406 kB / 0.8891 GB, free: 9.371 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/0.9785, allocations: 10.78 kB / 0.8891 GB, free: 9.367 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008863/0.9794, allocations: 195.5 kB / 0.8893 GB, free: 9.312 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.9794, allocations: 4.344 kB / 0.8893 GB, free: 9.312 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.981, allocations: 246.1 kB / 0.8896 GB, free: 9.191 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.9811, allocations: 34.55 kB / 0.8896 GB, free: 9.184 MB / 0.6544 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.0005644/0.9817, allocations: 335.4 kB / 0.8899 GB, free: 8.926 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.982, allocations: 120.5 kB / 0.89 GB, free: 8.863 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.9843, allocations: 1.001 MB / 0.891 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/0.9843, allocations: 5.188 kB / 0.891 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.9843, allocations: 3.281 kB / 0.891 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.9843, allocations: 3.984 kB / 0.891 GB, free: 8.305 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005299/0.9896, allocations: 3.161 MB / 0.8941 GB, free: 6.125 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/0.9897, allocations: 7.875 kB / 0.8941 GB, free: 6.125 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.9902, allocations: 120.7 kB / 0.8942 GB, free: 6.098 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.9903, allocations: 10.75 kB / 0.8943 GB, free: 6.098 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.9903, allocations: 22.94 kB / 0.8943 GB, free: 6.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.371e-05/0.9903, allocations: 16.11 kB / 0.8943 GB, free: 6.086 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.9904, allocations: 10.66 kB / 0.8943 GB, free: 6.086 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.9926, allocations: 1.35 MB / 0.8956 GB, free: 5.113 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006085/0.9932, allocations: 339.7 kB / 0.8959 GB, free: 4.828 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.9935, allocations: 20.88 kB / 0.896 GB, free: 4.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.9946, allocations: 106.4 kB / 0.8961 GB, free: 4.777 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.9948, allocations: 65.19 kB / 0.8961 GB, free: 4.746 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-05/0.9949, allocations: 39.34 kB / 0.8962 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001565/0.9964, allocations: 0.8439 MB / 0.897 GB, free: 4.27 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.71e-07/0.9964, allocations: 0 / 0.897 GB, free: 4.27 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001197/0.9977, allocations: 300.1 kB / 0.8973 GB, free: 4.219 MB / 0.6544 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.003412/1.001, allocations: 2.137 MB / 0.8994 GB, free: 2.625 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002551/1.004, allocations: 1.013 MB / 0.9003 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/1.004, allocations: 4.125 kB / 0.9004 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009288/1.005, allocations: 0.5117 MB / 0.9009 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/1.008, allocations: 0.5511 MB / 0.9014 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/1.028, allocations: 9.418 MB / 0.9106 GB, free: 9.203 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008256/1.029, allocations: 1.065 MB / 0.9116 GB, free: 8.109 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001291/1.03, allocations: 272 kB / 0.9119 GB, free: 7.844 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006299/1.031, allocations: 363.3 kB / 0.9122 GB, free: 7.488 MB / 0.67 GB Notification: Performance of SimCode: time 1.173e-06/1.031, allocations: 0 / 0.9122 GB, free: 7.488 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06814/1.099, allocations: 31.77 MB / 0.9433 GB, free: 8.18 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.599/10.7, allocations: 0 / 0.9433 GB, free: 8.18 MB / 0.7012 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)