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.00128/0.00128, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001289/0.001289, allocations: 191.3 kB / 16.25 MB, free: 6.617 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.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 290.6 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9224/0.9224, allocations: 169.3 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 92.42 kB / 0.5948 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1796, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.621/0.8006, allocations: 191.5 MB / 0.8667 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0116/0.8122, allocations: 6.884 MB / 0.8734 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002773/0.8151, allocations: 46.28 kB / 0.8735 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002112/0.8172, allocations: 0.5941 MB / 0.8741 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006383/0.8236, allocations: 2.203 MB / 0.8762 GB, free: 8.176 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003909/0.8276, allocations: 1.311 MB / 0.8775 GB, free: 7.242 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004599/0.8322, allocations: 2.999 MB / 0.8804 GB, free: 5.5 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.834, allocations: 0.9118 MB / 0.8813 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003218/0.8372, allocations: 1.153 MB / 0.8824 GB, free: 4.262 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001843/0.8391, allocations: 0.8406 MB / 0.8833 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002921/0.8394, allocations: 100.5 kB / 0.8833 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004083/0.8435, allocations: 2.139 MB / 0.8854 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005677/0.8441, allocations: 368.5 kB / 0.8858 GB, free: 2.297 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.8452, allocations: 0.5883 MB / 0.8864 GB, free: 1.895 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00423/0.8494, allocations: 2.492 MB / 0.8888 GB, free: 288 kB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.8495, allocations: 4 kB / 0.8888 GB, free: 284 kB / 0.5919 GB Notification: Performance of FrontEnd: time 9.739e-06/0.8495, allocations: 0 / 0.8888 GB, free: 284 kB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.87e-05/0.8495, allocations: 3.938 kB / 0.8888 GB, free: 280 kB / 0.5919 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.003828/0.8534, allocations: 1.626 MB / 0.8904 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.8534, allocations: 9.594 kB / 0.8904 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001703/0.8536, allocations: 123.8 kB / 0.8905 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002959/0.8566, allocations: 0.5372 MB / 0.891 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002175/0.8587, allocations: 0.9773 MB / 0.892 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001089/0.8599, allocations: 276.6 kB / 0.8923 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.86, allocations: 75.89 kB / 0.8923 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.8625, allocations: 1.132 MB / 0.8934 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.8625, allocations: 0 / 0.8934 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.47e-05/0.8626, allocations: 28 kB / 0.8935 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.8626, allocations: 29.3 kB / 0.8935 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003007/0.8656, allocations: 1.2 MB / 0.8947 GB, free: 11.71 MB / 0.6075 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.005788/0.8715, allocations: 3.214 MB / 0.8978 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.8731, allocations: 0.688 MB / 0.8985 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007214/0.8738, allocations: 418.2 kB / 0.8989 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007874/0.8746, allocations: 1.025 MB / 0.8999 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009527/0.8756, allocations: 0.5104 MB / 0.9004 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.415e-06/0.8756, allocations: 0 / 0.9004 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002889/0.8785, allocations: 1.229 MB / 0.9016 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.8785, allocations: 140.8 kB / 0.9017 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001983/0.8805, allocations: 1.2 MB / 0.9029 GB, free: 2.902 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.861e-05/0.8806, allocations: 41.7 kB / 0.9029 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.881, allocations: 437.4 kB / 0.9033 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.8812, allocations: 189.2 kB / 0.9035 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.8814, allocations: 146.1 kB / 0.9037 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.925e-05/0.8815, allocations: 330 kB / 0.904 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.8827, allocations: 460.9 kB / 0.9044 GB, free: 1.312 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.8841, allocations: 0.6093 MB / 0.905 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.8861, allocations: 0.9539 MB / 0.9059 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.8861, allocations: 0 / 0.9059 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00307/0.8892, allocations: 1.236 MB / 0.9071 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.021e-05/0.8893, allocations: 33.7 kB / 0.9072 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.8893, allocations: 4 kB / 0.9072 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.8893, allocations: 8 kB / 0.9072 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009227/0.8902, allocations: 203.7 kB / 0.9074 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.8903, allocations: 8 kB / 0.9074 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.8918, allocations: 270.8 kB / 0.9076 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.606e-05/0.892, allocations: 35.98 kB / 0.9077 GB, free: 13.84 MB / 0.6231 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.00052/0.8925, allocations: 336.6 kB / 0.908 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003432/0.8928, allocations: 114.6 kB / 0.9081 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/0.895, allocations: 0.9983 MB / 0.9091 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/0.895, allocations: 11.94 kB / 0.9091 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.895, allocations: 0 / 0.9091 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.895, allocations: 3.984 kB / 0.9091 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004921/0.8999, allocations: 3.163 MB / 0.9122 GB, free: 9.043 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/0.9, allocations: 12 kB / 0.9122 GB, free: 9.031 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005926/0.9006, allocations: 111.8 kB / 0.9123 GB, free: 8.922 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.491e-05/0.9006, allocations: 16.17 kB / 0.9123 GB, free: 8.906 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-05/0.9007, allocations: 24 kB / 0.9123 GB, free: 8.883 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.48e-05/0.9007, allocations: 19.92 kB / 0.9124 GB, free: 8.863 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.9007, allocations: 8 kB / 0.9124 GB, free: 8.855 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.9028, allocations: 1.353 MB / 0.9137 GB, free: 7.387 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006002/0.9034, allocations: 331.4 kB / 0.914 GB, free: 7.043 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/0.9037, allocations: 20 kB / 0.914 GB, free: 7.023 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.9048, allocations: 111.9 kB / 0.9141 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.905, allocations: 63.7 kB / 0.9142 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.905, allocations: 39.97 kB / 0.9142 GB, free: 6.812 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001524/0.9066, allocations: 0.8716 MB / 0.9151 GB, free: 5.934 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9066, allocations: 3.938 kB / 0.9151 GB, free: 5.93 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001224/0.9078, allocations: 295.8 kB / 0.9154 GB, free: 5.641 MB / 0.6231 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.002998/0.9108, allocations: 2.132 MB / 0.9175 GB, free: 3.398 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002372/0.9132, allocations: 1.047 MB / 0.9185 GB, free: 2.34 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.9132, allocations: 7.984 kB / 0.9185 GB, free: 2.332 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0008505/0.9141, allocations: 0.5125 MB / 0.919 GB, free: 1.809 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/0.9168, allocations: 0.5457 MB / 0.9195 GB, free: 1.285 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/0.9342, allocations: 10.25 MB / 0.9295 GB, free: 6.488 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000621/0.9348, allocations: 1.069 MB / 0.9306 GB, free: 5.391 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00115/0.936, allocations: 282.6 kB / 0.9308 GB, free: 5.117 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005065/0.9365, allocations: 359.3 kB / 0.9312 GB, free: 4.766 MB / 0.6387 GB Notification: Performance of SimCode: time 4.31e-07/0.9365, allocations: 0 / 0.9312 GB, free: 4.766 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05115/0.9877, allocations: 31.37 MB / 0.9618 GB, free: 5.867 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002875/0.988, allocations: 279.5 kB / 0.9621 GB, free: 5.484 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/3.393, allocations: 0 / 0.9621 GB, free: 5.484 MB / 0.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)