Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.217/2.217, allocations: 390.5 MB / 398 MB, free: 10.93 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 186.6 kB / 491.2 MB, free: 1.531 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008912/0.0008912, allocations: 90.53 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.223e-05/2.234e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2821, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.618/5.901, allocations: 2.12 GB / 3.332 GB, free: 202.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/5.901, allocations: 88.52 kB / 3.332 GB, free: 202 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 4.885/10.79, allocations: 1.378 GB / 4.71 GB, free: 139.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.274e-06/10.79, allocations: 0 / 4.71 GB, free: 139.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0007404/10.79, allocations: 135.8 kB / 4.71 GB, free: 139.7 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 0.01375/10.8, allocations: 4.85 MB / 4.715 GB, free: 134.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/10.8, allocations: 12.03 kB / 4.715 GB, free: 134.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01185/10.81, allocations: 1.644 MB / 4.716 GB, free: 133.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01541/10.83, allocations: 5.824 MB / 4.722 GB, free: 127.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/10.83, allocations: 120 kB / 4.722 GB, free: 127.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/10.83, allocations: 231.9 kB / 4.722 GB, free: 126.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008691/10.84, allocations: 4.478 MB / 4.727 GB, free: 122.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/10.85, allocations: 4.639 MB / 4.731 GB, free: 117.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001441/10.85, allocations: 7.938 kB / 4.731 GB, free: 117.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001142/10.85, allocations: 15.89 kB / 4.731 GB, free: 117.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001306/10.85, allocations: 159.4 kB / 4.732 GB, free: 117.5 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.03267/10.88, allocations: 18.46 MB / 4.75 GB, free: 98.59 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006348/10.89, allocations: 3.276 MB / 4.753 GB, free: 95.32 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002677/10.89, allocations: 1.626 MB / 4.754 GB, free: 93.68 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002332/10.9, allocations: 2.831 MB / 4.757 GB, free: 90.24 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003087/10.9, allocations: 1.839 MB / 4.759 GB, free: 88.36 MB / 1.151 GB Notification: Performance of pre-optimization done (n=285): time 5.851e-06/10.9, allocations: 0 / 4.759 GB, free: 88.36 MB / 1.151 GB Notification: Performance of matching and sorting (n=285): time 0.06286/10.96, allocations: 8.14 MB / 4.767 GB, free: 80.13 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.171e-05/10.96, allocations: 287.3 kB / 4.767 GB, free: 79.79 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006056/10.97, allocations: 2.814 MB / 4.77 GB, free: 76.98 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0008372/10.97, allocations: 29.7 kB / 4.77 GB, free: 76.94 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.002047/10.97, allocations: 1.974 MB / 4.772 GB, free: 74.95 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001552/10.97, allocations: 0.9315 MB / 4.773 GB, free: 74 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004889/10.97, allocations: 0 / 4.773 GB, free: 74 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002555/10.97, allocations: 424.2 kB / 4.773 GB, free: 73.58 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/10.97, allocations: 1.337 MB / 4.774 GB, free: 72.24 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/10.98, allocations: 1.97 MB / 4.776 GB, free: 70.02 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1581/11.14, allocations: 13.42 MB / 4.79 GB, free: 56.57 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-05/11.14, allocations: 4 kB / 4.79 GB, free: 56.57 MB / 1.151 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.2158/11.35, allocations: 15.54 MB / 4.805 GB, free: 40.97 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001126/11.35, allocations: 6.451 MB / 4.811 GB, free: 33.88 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.082e-05/11.35, allocations: 19.95 kB / 4.811 GB, free: 33.86 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007696/11.35, allocations: 112.8 kB / 4.811 GB, free: 33.74 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006921/11.36, allocations: 0.8073 MB / 4.812 GB, free: 32.93 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002595/11.36, allocations: 2.094 MB / 4.814 GB, free: 30.69 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008345/11.37, allocations: 432.9 kB / 4.814 GB, free: 30.27 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/11.37, allocations: 155.9 kB / 4.815 GB, free: 30.11 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/11.37, allocations: 4 kB / 4.815 GB, free: 30.11 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1739/11.55, allocations: 15.16 MB / 4.829 GB, free: 14.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/11.55, allocations: 19.94 kB / 4.829 GB, free: 14.88 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005583/11.55, allocations: 113.1 kB / 4.829 GB, free: 14.77 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004141/11.55, allocations: 0.7995 MB / 4.83 GB, free: 13.97 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/11.55, allocations: 1.5 MB / 4.832 GB, free: 12.35 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005218/11.56, allocations: 389.5 kB / 4.832 GB, free: 11.96 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000732/11.56, allocations: 155.9 kB / 4.832 GB, free: 11.81 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001273/11.56, allocations: 185.2 kB / 4.832 GB, free: 11.62 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0635/11.62, allocations: 8.14 MB / 4.84 GB, free: 3.398 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001628/11.62, allocations: 363.5 kB / 4.841 GB, free: 3.039 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7088/12.33, allocations: 8.989 MB / 4.849 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.974e-05/12.33, allocations: 32.94 kB / 4.849 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/12.33, allocations: 0 / 4.849 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06484/12.4, allocations: 8.03 MB / 4.857 GB, free: 238.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07566/12.47, allocations: 13.36 MB / 4.87 GB, free: 237.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/12.47, allocations: 0.9375 kB / 4.87 GB, free: 237.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003455/12.48, allocations: 0.6172 MB / 4.871 GB, free: 237.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001366/12.48, allocations: 458.5 kB / 4.871 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003258/12.48, allocations: 69.62 kB / 4.871 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004881/12.48, allocations: 7.482 MB / 4.879 GB, free: 231 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/12.48, allocations: 1.156 kB / 4.879 GB, free: 231 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06837/12.55, allocations: 10.5 MB / 4.889 GB, free: 230.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004429/12.56, allocations: 1.054 MB / 4.89 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001876/12.56, allocations: 14.52 kB / 4.89 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005132/12.56, allocations: 272.5 kB / 4.89 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005237/12.57, allocations: 191.6 kB / 4.891 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003857/12.57, allocations: 134.2 kB / 4.891 GB, free: 230.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003907/12.57, allocations: 2.176 MB / 4.893 GB, free: 230.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.2e-07/12.57, allocations: 2.281 kB / 4.893 GB, free: 230.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01133/12.58, allocations: 2.637 MB / 4.895 GB, free: 230 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (274): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.07045/12.65, allocations: 12.54 MB / 4.908 GB, free: 228.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.008853/12.66, allocations: 5.557 MB / 4.913 GB, free: 228.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/12.66, allocations: 4.25 kB / 4.913 GB, free: 228.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003115/12.66, allocations: 1.862 MB / 4.915 GB, free: 228.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009655/12.67, allocations: 1.693 MB / 4.917 GB, free: 228.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02284/12.7, allocations: 9.157 MB / 4.925 GB, free: 226.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003171/12.7, allocations: 3.185 MB / 4.929 GB, free: 225.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.01154/12.71, allocations: 3.392 MB / 4.932 GB, free: 225.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00446/12.72, allocations: 1.882 MB / 4.934 GB, free: 225.8 MB / 1.151 GB Notification: Performance of SimCode: time 6.31e-07/12.72, allocations: 0 / 4.934 GB, free: 225.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1817/12.9, allocations: 118.8 MB / 5.05 GB, free: 193.3 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/12.9, allocations: 175.5 kB / 5.05 GB, free: 193.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.958/18.85, allocations: 4.031 kB / 5.05 GB, free: 193.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1)