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.0008637/0.0008638, allocations: 90.44 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.005176/0.005176, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.189/1.189, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.191/2.191, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 12 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5085/0.5088, allocations: 142.4 MB / 0.9552 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.01751/0.5263, allocations: 22.5 MB / 0.9771 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00602/0.5323, allocations: 5.061 MB / 0.9821 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000356/0.5327, allocations: 20.03 kB / 0.9821 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005248/0.5332, allocations: 233 kB / 0.9823 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.5345, allocations: 0.7318 MB / 0.983 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.5358, allocations: 0.688 MB / 0.9837 GB, free: 176 kB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00182/0.5376, allocations: 2.164 MB / 0.9858 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004769/0.5381, allocations: 396.7 kB / 0.9862 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006662/0.5388, allocations: 0.5259 MB / 0.9867 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004576/0.5393, allocations: 445.3 kB / 0.9871 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 4.892e-05/0.5393, allocations: 21.56 kB / 0.9872 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007228/0.5401, allocations: 462.9 kB / 0.9876 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.5402, allocations: 112 kB / 0.9877 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.5405, allocations: 302.1 kB / 0.988 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008348/0.5413, allocations: 0.8955 MB / 0.9889 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.5413, allocations: 0 / 0.9889 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5413, allocations: 0 / 0.9889 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.5413, allocations: 0 / 0.9889 GB, free: 12.71 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.0009751/0.5423, allocations: 0.7753 MB / 0.9896 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.5423, allocations: 12.03 kB / 0.9896 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.516e-05/0.5424, allocations: 78.72 kB / 0.9897 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.5426, allocations: 68.27 kB / 0.9898 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007512/0.5434, allocations: 0.5491 MB / 0.9903 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.5434, allocations: 29 kB / 0.9903 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.5435, allocations: 43.91 kB / 0.9904 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/0.5441, allocations: 448.6 kB / 0.9908 GB, free: 10.6 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.5441, allocations: 0 / 0.9908 GB, free: 10.6 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.5441, allocations: 16 kB / 0.9908 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.5441, allocations: 8 kB / 0.9908 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004542/0.5446, allocations: 303.8 kB / 0.9911 GB, free: 10.28 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.002194/0.5468, allocations: 1.942 MB / 0.993 GB, free: 8.207 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/0.5472, allocations: 258.7 kB / 0.9933 GB, free: 7.945 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.5474, allocations: 132.7 kB / 0.9934 GB, free: 7.812 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006902/0.5481, allocations: 0.8584 MB / 0.9942 GB, free: 6.77 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.5481, allocations: 38.56 kB / 0.9943 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.322e-06/0.5481, allocations: 0 / 0.9943 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0005699/0.5487, allocations: 366.8 kB / 0.9946 GB, free: 6.359 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.5488, allocations: 55.41 kB / 0.9947 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004601/0.5492, allocations: 466.1 kB / 0.9951 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.5493, allocations: 29.7 kB / 0.9951 GB, free: 5.793 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.5494, allocations: 268 kB / 0.9954 GB, free: 5.527 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.88e-05/0.5495, allocations: 94.66 kB / 0.9955 GB, free: 5.434 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.5496, allocations: 33.64 kB / 0.9955 GB, free: 5.395 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.5497, allocations: 358.8 kB / 0.9959 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.5498, allocations: 100.6 kB / 0.996 GB, free: 4.938 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.55, allocations: 168 kB / 0.9961 GB, free: 4.75 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.5504, allocations: 287.2 kB / 0.9964 GB, free: 4.445 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5504, allocations: 0 / 0.9964 GB, free: 4.445 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004817/0.5509, allocations: 356.9 kB / 0.9967 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.5509, allocations: 8 kB / 0.9967 GB, free: 4.082 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.5509, allocations: 0 / 0.9967 GB, free: 4.082 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.5509, allocations: 11.88 kB / 0.9968 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.5512, allocations: 79.83 kB / 0.9968 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.5512, allocations: 8.219 kB / 0.9968 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.5514, allocations: 47.52 kB / 0.9969 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.5515, allocations: 16 kB / 0.9969 GB, free: 3.922 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.0001648/0.5516, allocations: 177.8 kB / 0.9971 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.995e-05/0.5517, allocations: 47.44 kB / 0.9971 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006935/0.5524, allocations: 473 kB / 0.9976 GB, free: 3.219 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.5524, allocations: 11.94 kB / 0.9976 GB, free: 3.207 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.5524, allocations: 0 / 0.9976 GB, free: 3.207 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000481/0.5529, allocations: 0.5684 MB / 0.9981 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.5544, allocations: 1.168 MB / 0.9993 GB, free: 1.309 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5544, allocations: 3.938 kB / 0.9993 GB, free: 1.305 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.5546, allocations: 47.97 kB / 0.9993 GB, free: 1.258 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.5547, allocations: 7.938 kB / 0.9993 GB, free: 1.25 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.5547, allocations: 8 kB / 0.9993 GB, free: 1.242 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.5547, allocations: 8.188 kB / 0.9993 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.5547, allocations: 0 / 0.9993 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007142/0.5554, allocations: 0.6716 MB / 1 GB, free: 0.5273 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.5556, allocations: 180.3 kB / 1 GB, free: 340 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.5557, allocations: 8 kB / 1 GB, free: 332 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.5559, allocations: 19.98 kB / 1 GB, free: 312 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.556, allocations: 27.91 kB / 1 GB, free: 284 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.556, allocations: 15.98 kB / 1 GB, free: 268 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003558/0.5564, allocations: 346.8 kB / 1.001 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5564, allocations: 0 / 1.001 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0005022/0.5569, allocations: 195.7 kB / 1.001 GB, free: 15.73 MB / 0.7637 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.001311/0.5582, allocations: 1.383 MB / 1.002 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0003954/0.5586, allocations: 285.7 kB / 1.002 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5586, allocations: 0 / 1.002 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.5588, allocations: 167.7 kB / 1.003 GB, free: 13.87 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.5604, allocations: 329 kB / 1.003 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/0.5651, allocations: 4.511 MB / 1.007 GB, free: 8.887 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.5654, allocations: 0.8669 MB / 1.008 GB, free: 7.992 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003264/0.5658, allocations: 124.6 kB / 1.008 GB, free: 7.871 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.566, allocations: 187.4 kB / 1.008 GB, free: 7.688 MB / 0.7637 GB Notification: Performance of SimCode: time 2.41e-07/0.566, allocations: 0 / 1.008 GB, free: 7.688 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.438/5.004, allocations: 15.99 MB / 1.024 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/5.004, allocations: 236.7 kB / 1.024 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.153/7.157, allocations: 0 / 1.024 GB, free: 7.738 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)