Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_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.001137/0.001137, allocations: 112.5 kB / 15.73 MB, free: 76 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.001232/0.001232, allocations: 190.6 kB / 16.67 MB, free: 6.574 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002156/0.002156, allocations: 282.3 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.899/0.899, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 96.11 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1505, allocations: 86.97 MB / 0.7659 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5069/0.6574, allocations: 194 MB / 0.9554 GB, free: 0.9688 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.009775/0.6673, allocations: 6.938 MB / 0.9621 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.669, allocations: 47.69 kB / 0.9622 GB, free: 9.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.6709, allocations: 0.6909 MB / 0.9628 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.006277/0.6772, allocations: 2.447 MB / 0.9652 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00302/0.6803, allocations: 1.435 MB / 0.9666 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003194/0.6835, allocations: 2.999 MB / 0.9696 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.6845, allocations: 0.8922 MB / 0.9704 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002004/0.6865, allocations: 1.161 MB / 0.9716 GB, free: 356 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009398/0.6875, allocations: 0.7999 MB / 0.9724 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.6876, allocations: 100 kB / 0.9724 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003125/0.6907, allocations: 2.062 MB / 0.9745 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003017/0.691, allocations: 366.9 kB / 0.9748 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0005016/0.6916, allocations: 0.5908 MB / 0.9754 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00257/0.6941, allocations: 2.432 MB / 0.9778 GB, free: 9.996 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.6941, allocations: 0 / 0.9778 GB, free: 9.996 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6942, allocations: 0 / 0.9778 GB, free: 9.996 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.6942, allocations: 0 / 0.9778 GB, free: 9.996 MB / 0.7325 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.002943/0.6971, allocations: 1.677 MB / 0.9794 GB, free: 8.258 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.6972, allocations: 8.031 kB / 0.9794 GB, free: 8.25 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.6973, allocations: 114.4 kB / 0.9795 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002801/0.7001, allocations: 0.5416 MB / 0.98 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.7021, allocations: 1.046 MB / 0.9811 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.178e-05/0.7022, allocations: 61.23 kB / 0.9811 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.7023, allocations: 68 kB / 0.9812 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.7045, allocations: 1.11 MB / 0.9823 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.7045, allocations: 3.938 kB / 0.9823 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.102e-05/0.7046, allocations: 28 kB / 0.9823 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/0.7046, allocations: 25.31 kB / 0.9823 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002811/0.7074, allocations: 1.168 MB / 0.9835 GB, free: 4.012 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00492/0.7124, allocations: 3.172 MB / 0.9866 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.7139, allocations: 0.6807 MB / 0.9872 GB, free: 76 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007483/0.7147, allocations: 430.1 kB / 0.9876 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000753/0.7155, allocations: 1.021 MB / 0.9886 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009239/0.7164, allocations: 0.5104 MB / 0.9891 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=57): time 2.295e-06/0.7164, allocations: 4 kB / 0.9891 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of matching and sorting (n=57): time 0.00273/0.7191, allocations: 1.222 MB / 0.9903 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.7192, allocations: 148.8 kB / 0.9905 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/0.7208, allocations: 1.176 MB / 0.9916 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.394e-05/0.7209, allocations: 41.7 kB / 0.9917 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003099/0.7212, allocations: 441.8 kB / 0.9921 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.7214, allocations: 194.3 kB / 0.9923 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002435/0.7216, allocations: 146.1 kB / 0.9924 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.437e-05/0.7217, allocations: 334 kB / 0.9927 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.7229, allocations: 432.9 kB / 0.9931 GB, free: 9.688 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.7242, allocations: 0.5999 MB / 0.9937 GB, free: 9.043 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.7262, allocations: 0.9301 MB / 0.9946 GB, free: 8.062 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.7262, allocations: 4 kB / 0.9946 GB, free: 8.059 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002825/0.729, allocations: 1.202 MB / 0.9958 GB, free: 6.84 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/0.729, allocations: 40.34 kB / 0.9959 GB, free: 6.797 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.7291, allocations: 4 kB / 0.9959 GB, free: 6.793 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.7291, allocations: 4 kB / 0.9959 GB, free: 6.789 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008945/0.73, allocations: 192 kB / 0.996 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.73, allocations: 11.88 kB / 0.9961 GB, free: 6.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.7314, allocations: 251.1 kB / 0.9963 GB, free: 6.344 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-05/0.7314, allocations: 35.98 kB / 0.9963 GB, free: 6.309 MB / 0.7481 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.0003982/0.7318, allocations: 328 kB / 0.9966 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.732, allocations: 123.2 kB / 0.9968 GB, free: 5.852 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.734, allocations: 0.9951 MB / 0.9977 GB, free: 4.844 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.734, allocations: 12 kB / 0.9977 GB, free: 4.832 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.734, allocations: 3.938 kB / 0.9977 GB, free: 4.828 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.734, allocations: 3.984 kB / 0.9978 GB, free: 4.824 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004293/0.7383, allocations: 3.167 MB / 1.001 GB, free: 1.504 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.7383, allocations: 8 kB / 1.001 GB, free: 1.496 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005602/0.7389, allocations: 124 kB / 1.001 GB, free: 1.375 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.265e-05/0.7389, allocations: 16 kB / 1.001 GB, free: 1.359 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.677e-05/0.739, allocations: 20 kB / 1.001 GB, free: 1.34 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.739, allocations: 15.98 kB / 1.001 GB, free: 1.324 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.739, allocations: 11.94 kB / 1.001 GB, free: 1.312 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.7409, allocations: 1.342 MB / 1.002 GB, free: 15.85 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004665/0.7414, allocations: 343.9 kB / 1.003 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.7416, allocations: 20 kB / 1.003 GB, free: 15.48 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.7427, allocations: 103.9 kB / 1.003 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.956e-05/0.7428, allocations: 59.7 kB / 1.003 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.009e-05/0.7428, allocations: 43.97 kB / 1.003 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001358/0.7442, allocations: 0.8443 MB / 1.004 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7442, allocations: 0 / 1.004 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009556/0.7452, allocations: 295.7 kB / 1.004 GB, free: 14.13 MB / 0.7637 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.002795/0.748, allocations: 2.142 MB / 1.006 GB, free: 11.89 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002272/0.7503, allocations: 1.025 MB / 1.007 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.7503, allocations: 0 / 1.007 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008963/0.7512, allocations: 0.5086 MB / 1.008 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.7538, allocations: 0.5588 MB / 1.008 GB, free: 9.781 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.7696, allocations: 9.396 MB / 1.017 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.7703, allocations: 1.069 MB / 1.018 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0009776/0.7713, allocations: 274.6 kB / 1.019 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005086/0.7718, allocations: 363.3 kB / 1.019 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of SimCode: time 6.41e-07/0.7718, allocations: 0 / 1.019 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0559/0.8277, allocations: 31.81 MB / 1.05 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.255/10.08, allocations: 10.08 kB / 1.05 GB, free: 14.88 MB / 0.8106 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)