Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IBPSA_latest_IBPSA_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.001694/0.001694, allocations: 104.6 kB / 16.4 MB, free: 6.461 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.001776/0.001776, allocations: 197.8 kB / 17.34 MB, free: 5.715 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.794/0.794, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 72.36 kB / 0.5735 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1467, allocations: 78.87 MB / 0.6506 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5628/0.7095, allocations: 194.1 MB / 0.8401 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01204/0.7216, allocations: 6.941 MB / 0.8468 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.7235, allocations: 50.25 kB / 0.8469 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.7256, allocations: 0.6886 MB / 0.8476 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006412/0.732, allocations: 2.322 MB / 0.8498 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003498/0.7355, allocations: 1.437 MB / 0.8512 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004198/0.7397, allocations: 2.984 MB / 0.8542 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.7411, allocations: 0.8884 MB / 0.855 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003984/0.7451, allocations: 1.553 MB / 0.8565 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.7464, allocations: 0.7767 MB / 0.8573 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.7466, allocations: 100.8 kB / 0.8574 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004125/0.7507, allocations: 2.043 MB / 0.8594 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004233/0.7511, allocations: 362.9 kB / 0.8597 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0007194/0.7519, allocations: 0.5908 MB / 0.8603 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003923/0.7558, allocations: 2.397 MB / 0.8626 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.7558, allocations: 0 / 0.8626 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7558, allocations: 8 kB / 0.8627 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.342e-05/0.7559, allocations: 0 / 0.8627 GB, free: 10.16 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.003449/0.7593, allocations: 1.672 MB / 0.8643 GB, free: 8.434 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.7594, allocations: 8.031 kB / 0.8643 GB, free: 8.426 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.7595, allocations: 110.5 kB / 0.8644 GB, free: 8.309 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002985/0.7625, allocations: 0.5377 MB / 0.8649 GB, free: 7.77 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.7648, allocations: 1.044 MB / 0.8659 GB, free: 6.684 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.527e-05/0.7649, allocations: 57.31 kB / 0.866 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.765, allocations: 68 kB / 0.8661 GB, free: 6.562 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00252/0.7676, allocations: 1.113 MB / 0.8672 GB, free: 5.422 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.7676, allocations: 3.938 kB / 0.8672 GB, free: 5.418 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.765e-05/0.7677, allocations: 28 kB / 0.8672 GB, free: 5.391 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/0.7677, allocations: 33.31 kB / 0.8672 GB, free: 5.359 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/0.7711, allocations: 1.161 MB / 0.8683 GB, free: 4.195 MB / 0.6231 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.005924/0.777, allocations: 3.168 MB / 0.8714 GB, free: 0.9492 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.7789, allocations: 0.6919 MB / 0.8721 GB, free: 252 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008572/0.7797, allocations: 422 kB / 0.8725 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001042/0.7808, allocations: 1.025 MB / 0.8735 GB, free: 14.58 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.7819, allocations: 0.5182 MB / 0.874 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 2.335e-06/0.7819, allocations: 0 / 0.874 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.00313/0.7851, allocations: 1.229 MB / 0.8752 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.774e-05/0.7852, allocations: 144.9 kB / 0.8754 GB, free: 12.62 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002007/0.7872, allocations: 1.184 MB / 0.8765 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 8.915e-05/0.7873, allocations: 37.7 kB / 0.8766 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.7877, allocations: 437.8 kB / 0.877 GB, free: 10.95 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.7879, allocations: 194.3 kB / 0.8772 GB, free: 10.76 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.7882, allocations: 150.1 kB / 0.8773 GB, free: 10.61 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.7884, allocations: 329.9 kB / 0.8776 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.7897, allocations: 444.9 kB / 0.878 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.7912, allocations: 0.586 MB / 0.8786 GB, free: 9.211 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/0.7934, allocations: 0.9305 MB / 0.8795 GB, free: 8.227 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.7934, allocations: 0 / 0.8795 GB, free: 8.227 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003337/0.7967, allocations: 1.21 MB / 0.8807 GB, free: 7 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/0.7968, allocations: 37.69 kB / 0.8807 GB, free: 6.957 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.7968, allocations: 4 kB / 0.8807 GB, free: 6.953 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/0.7969, allocations: 11.94 kB / 0.8808 GB, free: 6.941 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009521/0.7978, allocations: 187.8 kB / 0.8809 GB, free: 6.758 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.7978, allocations: 8 kB / 0.8809 GB, free: 6.75 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.7993, allocations: 243.1 kB / 0.8812 GB, free: 6.512 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.223e-05/0.7994, allocations: 31.98 kB / 0.8812 GB, free: 6.48 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.000526/0.8, allocations: 331.3 kB / 0.8815 GB, free: 6.141 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.8002, allocations: 123.2 kB / 0.8816 GB, free: 6.02 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.8025, allocations: 0.9966 MB / 0.8826 GB, free: 5.016 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.8025, allocations: 4 kB / 0.8826 GB, free: 5.012 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8025, allocations: 0 / 0.8826 GB, free: 5.012 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.8025, allocations: 7.984 kB / 0.8826 GB, free: 5.004 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005201/0.8077, allocations: 3.15 MB / 0.8857 GB, free: 1.699 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.8078, allocations: 12.16 kB / 0.8857 GB, free: 1.688 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005999/0.8084, allocations: 115.8 kB / 0.8858 GB, free: 1.574 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.599e-05/0.8084, allocations: 11.94 kB / 0.8858 GB, free: 1.562 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.347e-05/0.8085, allocations: 27.98 kB / 0.8859 GB, free: 1.535 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.497e-05/0.8085, allocations: 15.92 kB / 0.8859 GB, free: 1.52 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.8085, allocations: 15.94 kB / 0.8859 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.8109, allocations: 1.357 MB / 0.8872 GB, free: 28 kB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005745/0.8115, allocations: 343.9 kB / 0.8875 GB, free: 15.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.8117, allocations: 24 kB / 0.8876 GB, free: 15.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.8128, allocations: 99.89 kB / 0.8877 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.813, allocations: 59.77 kB / 0.8877 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-05/0.8131, allocations: 43.97 kB / 0.8878 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001575/0.8146, allocations: 0.8482 MB / 0.8886 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8147, allocations: 0 / 0.8886 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001082/0.8157, allocations: 295.7 kB / 0.8889 GB, free: 14.3 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.003355/0.8191, allocations: 2.147 MB / 0.891 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002609/0.8217, allocations: 1.015 MB / 0.892 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 9.948e-06/0.8218, allocations: 4 kB / 0.892 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.8228, allocations: 0.5125 MB / 0.8925 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/0.8258, allocations: 0.5452 MB / 0.893 GB, free: 9.961 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01809/0.8439, allocations: 9.411 MB / 0.9022 GB, free: 144 kB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008071/0.8447, allocations: 1.061 MB / 0.9032 GB, free: 15.05 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001032/0.8458, allocations: 282.3 kB / 0.9035 GB, free: 14.77 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005577/0.8463, allocations: 359.3 kB / 0.9038 GB, free: 14.42 MB / 0.67 GB Notification: Performance of SimCode: time 6.41e-07/0.8463, allocations: 0 / 0.9038 GB, free: 14.42 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0672/0.9135, allocations: 31.76 MB / 0.9348 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/11.08, allocations: 8.844 kB / 0.9349 GB, free: 14.98 MB / 0.7012 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)