Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter",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.001522/0.001522, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001771/0.001772, allocations: 199.5 kB / 16.14 MB, free: 6.645 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.349/1.349, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.316/2.316, allocations: 390.2 MB / 0.6643 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 71.83 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5625/0.564, allocations: 140.4 MB / 0.949 GB, free: 9.363 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.0218/0.5858, allocations: 23.14 MB / 0.9716 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008994/0.5948, allocations: 5.108 MB / 0.9766 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.596, allocations: 26.59 kB / 0.9767 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009854/0.597, allocations: 233.8 kB / 0.9769 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002686/0.5997, allocations: 0.7319 MB / 0.9776 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.6018, allocations: 0.6936 MB / 0.9783 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002851/0.6046, allocations: 2.163 MB / 0.9804 GB, free: 200 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000824/0.6055, allocations: 411.2 kB / 0.9808 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001308/0.6068, allocations: 0.5328 MB / 0.9813 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000923/0.6077, allocations: 459.6 kB / 0.9817 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.6079, allocations: 30 kB / 0.9818 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.6092, allocations: 456.4 kB / 0.9822 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.6094, allocations: 128.1 kB / 0.9823 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005514/0.61, allocations: 287.6 kB / 0.9826 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.6116, allocations: 0.9012 MB / 0.9835 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.6116, allocations: 0 / 0.9835 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.022e-06/0.6116, allocations: 0 / 0.9835 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.68e-05/0.6116, allocations: 0 / 0.9835 GB, free: 14.3 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001953/0.6136, allocations: 0.8887 MB / 0.9843 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.6136, allocations: 13.89 kB / 0.9844 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001173/0.6138, allocations: 75.47 kB / 0.9844 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.6141, allocations: 62.81 kB / 0.9845 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.6152, allocations: 0.5543 MB / 0.985 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.6152, allocations: 32.62 kB / 0.9851 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.868e-05/0.6153, allocations: 42.09 kB / 0.9851 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007918/0.6161, allocations: 436.9 kB / 0.9855 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.6161, allocations: 0 / 0.9855 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.784e-05/0.6162, allocations: 19.98 kB / 0.9855 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.6162, allocations: 12 kB / 0.9855 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005863/0.6168, allocations: 311.8 kB / 0.9858 GB, free: 12.32 MB / 0.7481 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.003238/0.6201, allocations: 1.911 MB / 0.9877 GB, free: 10.28 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005209/0.6206, allocations: 266.6 kB / 0.988 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.6208, allocations: 128.8 kB / 0.9881 GB, free: 9.879 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009679/0.6218, allocations: 0.8428 MB / 0.9889 GB, free: 8.852 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.6218, allocations: 42.5 kB / 0.989 GB, free: 8.801 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.864e-06/0.6219, allocations: 0 / 0.989 GB, free: 8.801 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0007869/0.6226, allocations: 370.8 kB / 0.9893 GB, free: 8.434 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.6227, allocations: 59.41 kB / 0.9894 GB, free: 8.363 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005745/0.6233, allocations: 466.1 kB / 0.9898 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.6233, allocations: 29.7 kB / 0.9898 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.6235, allocations: 264 kB / 0.9901 GB, free: 7.602 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.169e-05/0.6236, allocations: 90.66 kB / 0.9902 GB, free: 7.512 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.6237, allocations: 77.86 kB / 0.9902 GB, free: 7.43 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.6239, allocations: 358.8 kB / 0.9906 GB, free: 7.07 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.6241, allocations: 100.6 kB / 0.9907 GB, free: 6.973 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.6243, allocations: 172 kB / 0.9909 GB, free: 6.781 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004578/0.6248, allocations: 283.2 kB / 0.9911 GB, free: 6.48 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.6248, allocations: 0 / 0.9911 GB, free: 6.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006158/0.6254, allocations: 368.9 kB / 0.9915 GB, free: 6.113 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.6254, allocations: 8 kB / 0.9915 GB, free: 6.105 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.6254, allocations: 0 / 0.9915 GB, free: 6.105 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.6255, allocations: 7.938 kB / 0.9915 GB, free: 6.098 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.6257, allocations: 71.91 kB / 0.9916 GB, free: 6.027 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.6258, allocations: 7.938 kB / 0.9916 GB, free: 6.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003675/0.6261, allocations: 47.61 kB / 0.9916 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.731e-05/0.6262, allocations: 23.98 kB / 0.9916 GB, free: 5.949 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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.0002048/0.6264, allocations: 173.8 kB / 0.9918 GB, free: 5.77 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.6265, allocations: 47.44 kB / 0.9918 GB, free: 5.723 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.6273, allocations: 469 kB / 0.9923 GB, free: 5.258 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.6274, allocations: 11.92 kB / 0.9923 GB, free: 5.246 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.6274, allocations: 0 / 0.9923 GB, free: 5.246 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005847/0.628, allocations: 0.5684 MB / 0.9929 GB, free: 4.609 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.6299, allocations: 1.153 MB / 0.994 GB, free: 3.363 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-06/0.6299, allocations: 7.938 kB / 0.994 GB, free: 3.355 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.6301, allocations: 47.91 kB / 0.994 GB, free: 3.309 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.6301, allocations: 8.188 kB / 0.994 GB, free: 3.301 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.6302, allocations: 15.98 kB / 0.9941 GB, free: 3.285 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.633e-06/0.6302, allocations: 7.938 kB / 0.9941 GB, free: 3.277 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.6302, allocations: 7.938 kB / 0.9941 GB, free: 3.27 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009428/0.6311, allocations: 0.6599 MB / 0.9947 GB, free: 2.574 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002493/0.6314, allocations: 172.4 kB / 0.9949 GB, free: 2.387 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.141e-05/0.6315, allocations: 8 kB / 0.9949 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003286/0.6318, allocations: 19.98 kB / 0.9949 GB, free: 2.359 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.6319, allocations: 31.84 kB / 0.9949 GB, free: 2.328 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-05/0.6319, allocations: 19.98 kB / 0.995 GB, free: 2.309 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003952/0.6323, allocations: 338.9 kB / 0.9953 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6323, allocations: 0 / 0.9953 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007178/0.6331, allocations: 191.8 kB / 0.9955 GB, free: 1.793 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.00172/0.6348, allocations: 1.392 MB / 0.9968 GB, free: 368 kB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004961/0.6353, allocations: 285.7 kB / 0.9971 GB, free: 84 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6353, allocations: 0 / 0.9971 GB, free: 84 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.6356, allocations: 160.4 kB / 0.9973 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.6372, allocations: 327 kB / 0.9976 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006147/0.6433, allocations: 4.439 MB / 1.002 GB, free: 11.02 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/0.6438, allocations: 0.8591 MB / 1.003 GB, free: 10.13 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004686/0.6443, allocations: 136.5 kB / 1.003 GB, free: 10 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002671/0.6446, allocations: 191.4 kB / 1.003 GB, free: 9.812 MB / 0.7637 GB Notification: Performance of SimCode: time 3.31e-07/0.6446, allocations: 0 / 1.003 GB, free: 9.812 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.6779, allocations: 16.14 MB / 1.019 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.6781, allocations: 233.3 kB / 1.019 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.803, allocations: 0 / 1.019 GB, free: 9.688 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)