Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 252 MB / 267 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009317/0.0009317, allocations: 182.3 kB / 326.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 0.5777 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007699/0.0007699, allocations: 95.17 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003198, allocations: 11.97 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.192, allocations: 106.3 MB / 0.9003 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5634/0.7555, allocations: 176.8 MB / 1.073 GB, free: 4.102 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.009707/0.7653, allocations: 6.636 MB / 1.079 GB, free: 3.91 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00194/0.7672, allocations: 36 kB / 1.079 GB, free: 3.91 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.7692, allocations: 476 kB / 1.08 GB, free: 3.906 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.005791/0.775, allocations: 1.679 MB / 1.082 GB, free: 3.832 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.003554/0.7785, allocations: 1.085 MB / 1.083 GB, free: 3.785 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.00439/0.7829, allocations: 3.177 MB / 1.086 GB, free: 3.777 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001188/0.7841, allocations: 0.661 MB / 1.086 GB, free: 3.695 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.786, allocations: 0.9379 MB / 1.087 GB, free: 3.691 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.7872, allocations: 0.8015 MB / 1.088 GB, free: 3.684 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.7873, allocations: 43.12 kB / 1.088 GB, free: 3.684 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003059/0.7904, allocations: 1.222 MB / 1.089 GB, free: 3.66 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0002988/0.7907, allocations: 307.5 kB / 1.09 GB, free: 3.66 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0004792/0.7912, allocations: 235.2 kB / 1.09 GB, free: 19.63 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.001905/0.7931, allocations: 1.635 MB / 1.091 GB, free: 19.51 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.7931, allocations: 0 / 1.091 GB, free: 19.51 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.803e-06/0.7931, allocations: 1.031 kB / 1.091 GB, free: 19.51 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.586e-05/0.7931, allocations: 0 / 1.091 GB, free: 19.51 MB / 0.7136 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.003175/0.7963, allocations: 1.42 MB / 1.093 GB, free: 18.68 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.7964, allocations: 9.688 kB / 1.093 GB, free: 18.68 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.7965, allocations: 113.8 kB / 1.093 GB, free: 18.64 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002995/0.7995, allocations: 0.5982 MB / 1.094 GB, free: 18.55 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.8015, allocations: 0.9689 MB / 1.094 GB, free: 18.24 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001163/0.8027, allocations: 318.6 kB / 1.095 GB, free: 18.21 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.8028, allocations: 71.31 kB / 1.095 GB, free: 18.21 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.8051, allocations: 1.177 MB / 1.096 GB, free: 18.11 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.8051, allocations: 0 / 1.096 GB, free: 18.11 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-05/0.8052, allocations: 24.62 kB / 1.096 GB, free: 18.11 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.278e-05/0.8053, allocations: 31.16 kB / 1.096 GB, free: 18.11 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003105/0.8084, allocations: 1.331 MB / 1.097 GB, free: 18.07 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005419/0.8138, allocations: 3.078 MB / 1.1 GB, free: 17.29 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.8155, allocations: 0.7306 MB / 1.101 GB, free: 17.25 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007518/0.8163, allocations: 457.7 kB / 1.102 GB, free: 17.23 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009028/0.8172, allocations: 1.023 MB / 1.103 GB, free: 16.11 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009643/0.8182, allocations: 0.5326 MB / 1.103 GB, free: 16 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=59): time 2.344e-06/0.8182, allocations: 3.312 kB / 1.103 GB, free: 16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59): time 0.00283/0.821, allocations: 1.279 MB / 1.104 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.393e-05/0.8211, allocations: 125.1 kB / 1.104 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/0.8229, allocations: 1.206 MB / 1.106 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.693e-05/0.823, allocations: 38.02 kB / 1.106 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.8233, allocations: 428.8 kB / 1.106 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.8234, allocations: 199 kB / 1.106 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/0.8235, allocations: 15.56 kB / 1.106 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.8236, allocations: 334 kB / 1.107 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.8249, allocations: 0.4904 MB / 1.107 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.8263, allocations: 0.6424 MB / 1.108 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.8276, allocations: 0.5454 MB / 1.108 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.8276, allocations: 0 / 1.108 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003043/0.8306, allocations: 1.307 MB / 1.109 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.968e-05/0.8307, allocations: 43.75 kB / 1.11 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.8307, allocations: 2.875 kB / 1.11 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.8307, allocations: 5.812 kB / 1.11 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009658/0.8317, allocations: 223.4 kB / 1.11 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.8317, allocations: 5.375 kB / 1.11 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.8334, allocations: 307.8 kB / 1.11 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.401e-05/0.8335, allocations: 38.89 kB / 1.11 GB, free: 14.48 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000542/0.834, allocations: 334.2 kB / 1.11 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.8342, allocations: 111.4 kB / 1.11 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/0.8361, allocations: 1.071 MB / 1.112 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.8362, allocations: 5.844 kB / 1.112 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.8362, allocations: 3.531 kB / 1.112 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.8362, allocations: 3.141 kB / 1.112 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/0.8406, allocations: 3.228 MB / 1.115 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.8406, allocations: 5.812 kB / 1.115 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005773/0.8412, allocations: 135.1 kB / 1.115 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.525e-05/0.8412, allocations: 16.11 kB / 1.115 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.299e-05/0.8413, allocations: 27.84 kB / 1.115 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.137e-05/0.8413, allocations: 12.38 kB / 1.115 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.936e-06/0.8413, allocations: 11.41 kB / 1.115 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.8432, allocations: 1.324 MB / 1.116 GB, free: 12.9 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.8436, allocations: 333.8 kB / 1.117 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.8438, allocations: 30.78 kB / 1.117 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.8449, allocations: 125.7 kB / 1.117 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.845, allocations: 67.09 kB / 1.117 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.018e-05/0.8451, allocations: 42.91 kB / 1.117 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.00135/0.8464, allocations: 0.8758 MB / 1.118 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.51e-07/0.8464, allocations: 0 / 1.118 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001038/0.8475, allocations: 304.7 kB / 1.118 GB, free: 12.57 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003024/0.8505, allocations: 2.103 MB / 1.12 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002533/0.8531, allocations: 1.086 MB / 1.121 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.8531, allocations: 4.766 kB / 1.121 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0008343/0.8539, allocations: 0.5383 MB / 1.122 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.8563, allocations: 0.5421 MB / 1.122 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.8687, allocations: 7.199 MB / 1.129 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006076/0.8694, allocations: 1.071 MB / 1.13 GB, free: 7.496 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001239/0.8706, allocations: 281.2 kB / 1.13 GB, free: 7.371 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/0.8711, allocations: 363.5 kB / 1.131 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of SimCode: time 9.42e-07/0.8711, allocations: 0 / 1.131 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04611/0.9172, allocations: 30.89 MB / 1.161 GB, free: 0.6133 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002639/0.9175, allocations: 263.2 kB / 1.161 GB, free: 272 kB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.637/3.554, allocations: 1.859 kB / 1.161 GB, free: 272 kB / 0.7292 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)