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.0007939/0.0007979, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005557/0.005557, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.309/1.309, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001707/0.001707, allocations: 270.6 kB / 291.7 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9166/0.9166, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004381/0.0004382, allocations: 12.72 kB / 0.5988 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1522, allocations: 88.55 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4846/0.6368, allocations: 189.1 MB / 0.8699 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.009354/0.6462, allocations: 6.931 MB / 0.8767 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.6476, allocations: 42.62 kB / 0.8767 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.6493, allocations: 0.5596 MB / 0.8773 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006749/0.6561, allocations: 2.187 MB / 0.8794 GB, free: 6.324 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003549/0.6596, allocations: 1.285 MB / 0.8806 GB, free: 5.391 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00458/0.6642, allocations: 3.737 MB / 0.8843 GB, free: 3.332 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.6655, allocations: 0.777 MB / 0.8851 GB, free: 2.852 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001638/0.6671, allocations: 0.9522 MB / 0.886 GB, free: 2.172 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001435/0.6685, allocations: 0.7894 MB / 0.8868 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.6687, allocations: 40 kB / 0.8868 GB, free: 1.344 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.6725, allocations: 2.225 MB / 0.889 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003023/0.6728, allocations: 310.9 kB / 0.8893 GB, free: 14.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005003/0.6733, allocations: 0.5456 MB / 0.8898 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002685/0.676, allocations: 2.391 MB / 0.8921 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6761, allocations: 4 kB / 0.8921 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6761, allocations: 0 / 0.8921 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.703e-05/0.6761, allocations: 0 / 0.8921 GB, free: 11.85 MB / 0.6075 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.002894/0.679, allocations: 1.388 MB / 0.8935 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.679, allocations: 8.031 kB / 0.8935 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.6792, allocations: 118.4 kB / 0.8936 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002892/0.6821, allocations: 0.6034 MB / 0.8942 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/0.684, allocations: 0.9924 MB / 0.8952 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001245/0.6853, allocations: 313.1 kB / 0.8955 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.6854, allocations: 71.98 kB / 0.8955 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/0.6878, allocations: 1.155 MB / 0.8967 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.6878, allocations: 0 / 0.8967 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.679e-05/0.6879, allocations: 28 kB / 0.8967 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.688, allocations: 33.31 kB / 0.8967 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003191/0.6912, allocations: 1.254 MB / 0.898 GB, free: 5.766 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.005469/0.6966, allocations: 3.26 MB / 0.9011 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.6983, allocations: 0.7036 MB / 0.9018 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008199/0.6991, allocations: 434.3 kB / 0.9022 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008561/0.7, allocations: 1.025 MB / 0.9032 GB, free: 44 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001078/0.7011, allocations: 0.5221 MB / 0.9037 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.084e-06/0.7011, allocations: 0 / 0.9037 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.003005/0.7041, allocations: 1.24 MB / 0.905 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.7042, allocations: 148.8 kB / 0.9051 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/0.7063, allocations: 1.219 MB / 0.9063 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.7064, allocations: 41.7 kB / 0.9063 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003761/0.7068, allocations: 429.5 kB / 0.9067 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.707, allocations: 189.3 kB / 0.9069 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.7071, allocations: 53.69 kB / 0.907 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001875/0.7073, allocations: 326 kB / 0.9073 GB, free: 11.8 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.7087, allocations: 492.9 kB / 0.9078 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.7102, allocations: 0.6444 MB / 0.9084 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/0.7125, allocations: 0.9808 MB / 0.9093 GB, free: 9.594 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.7125, allocations: 4 kB / 0.9093 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003342/0.7158, allocations: 1.284 MB / 0.9106 GB, free: 8.289 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.428e-05/0.7159, allocations: 37.64 kB / 0.9106 GB, free: 8.246 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.7159, allocations: 4 kB / 0.9106 GB, free: 8.242 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.7159, allocations: 8.281 kB / 0.9106 GB, free: 8.234 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009707/0.7169, allocations: 215.7 kB / 0.9108 GB, free: 8.023 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.7169, allocations: 11.94 kB / 0.9109 GB, free: 8.012 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.7185, allocations: 298.9 kB / 0.9111 GB, free: 7.719 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.194e-05/0.7186, allocations: 35.98 kB / 0.9112 GB, free: 7.684 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.0004774/0.7191, allocations: 335.8 kB / 0.9115 GB, free: 7.34 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.7193, allocations: 118.6 kB / 0.9116 GB, free: 7.223 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002096/0.7214, allocations: 1.009 MB / 0.9126 GB, free: 6.199 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/0.7214, allocations: 11.94 kB / 0.9126 GB, free: 6.188 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.7214, allocations: 0 / 0.9126 GB, free: 6.188 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.7214, allocations: 3.984 kB / 0.9126 GB, free: 6.184 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004481/0.7259, allocations: 3.178 MB / 0.9157 GB, free: 2.852 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.726, allocations: 8.531 kB / 0.9157 GB, free: 2.844 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005696/0.7265, allocations: 127.8 kB / 0.9158 GB, free: 2.719 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.7265, allocations: 8 kB / 0.9159 GB, free: 2.711 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/0.7266, allocations: 27.98 kB / 0.9159 GB, free: 2.684 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-05/0.7266, allocations: 15.92 kB / 0.9159 GB, free: 2.668 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.7266, allocations: 16 kB / 0.9159 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.7286, allocations: 1.353 MB / 0.9172 GB, free: 1.18 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004297/0.7291, allocations: 335.2 kB / 0.9176 GB, free: 0.832 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.7292, allocations: 20 kB / 0.9176 GB, free: 0.8125 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.7304, allocations: 131.9 kB / 0.9177 GB, free: 0.6836 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.444e-05/0.7305, allocations: 59.7 kB / 0.9178 GB, free: 0.625 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.07e-05/0.7305, allocations: 43.97 kB / 0.9178 GB, free: 0.582 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001501/0.732, allocations: 0.8911 MB / 0.9187 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7321, allocations: 3.938 kB / 0.9187 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009479/0.733, allocations: 291.9 kB / 0.9189 GB, free: 15.39 MB / 0.6387 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.002758/0.7358, allocations: 2.156 MB / 0.9211 GB, free: 13.13 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002322/0.7381, allocations: 1.052 MB / 0.9221 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.7381, allocations: 4 kB / 0.9221 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008787/0.739, allocations: 0.5204 MB / 0.9226 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00353/0.7425, allocations: 0.5373 MB / 0.9231 GB, free: 11 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/0.7602, allocations: 10.4 MB / 0.9333 GB, free: 60 kB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006867/0.7609, allocations: 1.065 MB / 0.9343 GB, free: 14.96 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001186/0.7621, allocations: 275.2 kB / 0.9346 GB, free: 14.69 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000523/0.7626, allocations: 363.3 kB / 0.9349 GB, free: 14.33 MB / 0.6544 GB Notification: Performance of SimCode: time 7.52e-07/0.7626, allocations: 0 / 0.9349 GB, free: 14.33 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04713/0.8098, allocations: 30.34 MB / 0.9646 GB, free: 464 kB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/0.81, allocations: 283.3 kB / 0.9648 GB, free: 68 kB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.254/3.064, allocations: 5.562 kB / 0.9648 GB, free: 64 kB / 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)