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.001227/0.001227, allocations: 99.98 kB / 16.27 MB, free: 5.965 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.001606/0.001606, allocations: 193.4 kB / 17.2 MB, free: 5.594 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.337/1.337, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7139/0.7139, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 71.89 kB / 0.4912 GB, free: 7.328 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3294, allocations: 77.92 MB / 0.5673 GB, free: 32.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5085/0.8379, allocations: 194 MB / 0.7567 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01273/0.8507, allocations: 6.944 MB / 0.7635 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001929/0.8527, allocations: 49.41 kB / 0.7635 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002195/0.855, allocations: 0.683 MB / 0.7642 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006111/0.8611, allocations: 2.339 MB / 0.7665 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.8644, allocations: 1.417 MB / 0.7679 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003944/0.8683, allocations: 2.986 MB / 0.7708 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001543/0.8699, allocations: 0.8848 MB / 0.7717 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002695/0.8726, allocations: 1.125 MB / 0.7727 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/0.8744, allocations: 0.7969 MB / 0.7735 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004498/0.8748, allocations: 99.38 kB / 0.7736 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004735/0.8796, allocations: 2.054 MB / 0.7756 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005717/0.8802, allocations: 370.5 kB / 0.776 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000989/0.8812, allocations: 0.5831 MB / 0.7766 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003578/0.8848, allocations: 2.366 MB / 0.7789 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.8848, allocations: 1.781 kB / 0.7789 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8848, allocations: 3.938 kB / 0.7789 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.581e-05/0.8848, allocations: 1 kB / 0.7789 GB, free: 1.43 MB / 0.5762 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.002992/0.8878, allocations: 1.625 MB / 0.7805 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.8878, allocations: 11.75 kB / 0.7805 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.888, allocations: 110.7 kB / 0.7806 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002771/0.8907, allocations: 0.5378 MB / 0.7811 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.8926, allocations: 0.9869 MB / 0.7821 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001153/0.8937, allocations: 274.8 kB / 0.7823 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.8938, allocations: 70.41 kB / 0.7824 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.896, allocations: 1.127 MB / 0.7835 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.896, allocations: 2.656 kB / 0.7835 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.013e-05/0.8961, allocations: 26.66 kB / 0.7835 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.289e-05/0.8961, allocations: 31.83 kB / 0.7835 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00288/0.899, allocations: 1.203 MB / 0.7847 GB, free: 16.01 MB / 0.5919 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.005025/0.9041, allocations: 3.216 MB / 0.7879 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.9057, allocations: 0.6865 MB / 0.7885 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007438/0.9064, allocations: 426.4 kB / 0.7889 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009525/0.9074, allocations: 1.021 MB / 0.7899 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009301/0.9083, allocations: 0.5123 MB / 0.7904 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 2.234e-06/0.9084, allocations: 0.9375 kB / 0.7904 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.002711/0.9111, allocations: 1.238 MB / 0.7916 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.9112, allocations: 135.2 kB / 0.7918 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001763/0.9129, allocations: 1.199 MB / 0.7929 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.797e-05/0.913, allocations: 39.11 kB / 0.793 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.9133, allocations: 440 kB / 0.7934 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.9135, allocations: 187.5 kB / 0.7936 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.9137, allocations: 146.4 kB / 0.7937 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.9138, allocations: 328 kB / 0.794 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.915, allocations: 461.2 kB / 0.7945 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.9164, allocations: 0.6106 MB / 0.7951 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.9184, allocations: 0.948 MB / 0.796 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.9184, allocations: 5.203 kB / 0.796 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002982/0.9214, allocations: 1.228 MB / 0.7972 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.9214, allocations: 43.34 kB / 0.7972 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.9214, allocations: 2.844 kB / 0.7972 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.9214, allocations: 12.22 kB / 0.7973 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009158/0.9224, allocations: 195 kB / 0.7974 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.9224, allocations: 10.47 kB / 0.7975 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.9239, allocations: 272.8 kB / 0.7977 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.417e-05/0.924, allocations: 33.16 kB / 0.7977 GB, free: 12.14 MB / 0.5919 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.0004176/0.9244, allocations: 328.3 kB / 0.7981 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.9246, allocations: 119.6 kB / 0.7982 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001869/0.9265, allocations: 0.9958 MB / 0.7991 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.9265, allocations: 15.05 kB / 0.7992 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.9265, allocations: 0 / 0.7992 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.9265, allocations: 2.953 kB / 0.7992 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.9305, allocations: 3.157 MB / 0.8022 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.9306, allocations: 10.53 kB / 0.8023 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005485/0.9311, allocations: 122.5 kB / 0.8024 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.9311, allocations: 11.42 kB / 0.8024 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/0.9312, allocations: 27.25 kB / 0.8024 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.898e-06/0.9312, allocations: 16.41 kB / 0.8024 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.9312, allocations: 11.38 kB / 0.8024 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.9332, allocations: 1.334 MB / 0.8037 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004401/0.9336, allocations: 330.2 kB / 0.8041 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.9338, allocations: 34.5 kB / 0.8041 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.9349, allocations: 108.3 kB / 0.8042 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.697e-05/0.9351, allocations: 60.23 kB / 0.8042 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.808e-05/0.9351, allocations: 44.27 kB / 0.8043 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001399/0.9365, allocations: 0.8659 MB / 0.8051 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9365, allocations: 1.203 kB / 0.8051 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001006/0.9376, allocations: 297.5 kB / 0.8054 GB, free: 10.12 MB / 0.5919 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.002643/0.9402, allocations: 2.141 MB / 0.8075 GB, free: 8.957 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002349/0.9426, allocations: 1.05 MB / 0.8085 GB, free: 8.863 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.9426, allocations: 8.062 kB / 0.8085 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008233/0.9434, allocations: 0.5117 MB / 0.809 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.9461, allocations: 0.5523 MB / 0.8096 GB, free: 8.719 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01636/0.9625, allocations: 9.986 MB / 0.8193 GB, free: 4.422 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/0.9632, allocations: 1.071 MB / 0.8204 GB, free: 3.543 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001282/0.9645, allocations: 270.6 kB / 0.8206 GB, free: 3.422 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006051/0.9651, allocations: 362.4 kB / 0.821 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of SimCode: time 6.31e-07/0.9651, allocations: 0 / 0.821 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05935/1.024, allocations: 31.54 MB / 0.8518 GB, free: 4.344 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.968, allocations: 7.938 kB / 0.8518 GB, free: 4.336 MB / 0.6231 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)