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.139/2.139, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001528/0.001528, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 221.3 MB / 0.7915 GB, free: 5.402 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.001006/0.001006, allocations: 87.95 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.803e-05/3.824e-05, allocations: 5.641 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3154, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.875/6.191, allocations: 2.12 GB / 3.339 GB, free: 167.6 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/6.191, allocations: 89.05 kB / 3.339 GB, free: 167.5 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 5.171/11.36, allocations: 1.388 GB / 4.727 GB, free: 138.7 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.834e-06/11.36, allocations: 0 / 4.727 GB, free: 138.7 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0006255/11.36, allocations: 143.8 kB / 4.727 GB, free: 138.6 MB / 1.167 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.01322/11.38, allocations: 4.843 MB / 4.732 GB, free: 133.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/11.38, allocations: 8.031 kB / 4.732 GB, free: 133.7 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001458/11.38, allocations: 0.5306 MB / 4.733 GB, free: 133.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01238/11.39, allocations: 1.636 MB / 4.734 GB, free: 131.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/11.41, allocations: 5.839 MB / 4.74 GB, free: 125.6 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003024/11.41, allocations: 287.6 kB / 4.74 GB, free: 125.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/11.41, allocations: 375.9 kB / 4.74 GB, free: 124.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0108/11.42, allocations: 5.189 MB / 4.746 GB, free: 119.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.63e-05/11.42, allocations: 3.938 kB / 4.746 GB, free: 119.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006311/11.42, allocations: 164 kB / 4.746 GB, free: 119.4 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/11.42, allocations: 163.4 kB / 4.746 GB, free: 119.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007727/11.43, allocations: 4.788 MB / 4.751 GB, free: 114.4 MB / 1.167 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.02592/11.45, allocations: 19.22 MB / 4.769 GB, free: 94.79 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004282/11.46, allocations: 3.449 MB / 4.773 GB, free: 91.33 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/11.46, allocations: 1.706 MB / 4.774 GB, free: 89.62 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001919/11.46, allocations: 2.83 MB / 4.777 GB, free: 86.18 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002636/11.46, allocations: 1.929 MB / 4.779 GB, free: 84.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=285): time 4.729e-06/11.47, allocations: 0 / 4.779 GB, free: 84.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=285): time 0.007549/11.47, allocations: 3.798 MB / 4.783 GB, free: 80.32 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.373e-05/11.47, allocations: 287.3 kB / 4.783 GB, free: 79.98 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004701/11.48, allocations: 3.329 MB / 4.786 GB, free: 76.67 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0005137/11.48, allocations: 81.64 kB / 4.786 GB, free: 76.59 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001514/11.48, allocations: 1.973 MB / 4.788 GB, free: 74.59 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001048/11.48, allocations: 0.9665 MB / 4.789 GB, free: 73.61 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/11.48, allocations: 60 kB / 4.789 GB, free: 73.55 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001394/11.48, allocations: 428.2 kB / 4.79 GB, free: 73.13 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001978/11.48, allocations: 1.404 MB / 4.791 GB, free: 71.72 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002197/11.49, allocations: 2.039 MB / 4.793 GB, free: 69.43 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/11.49, allocations: 1.749 MB / 4.795 GB, free: 67.66 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/11.49, allocations: 7.938 kB / 4.795 GB, free: 67.66 MB / 1.167 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.006697/11.49, allocations: 4.078 MB / 4.799 GB, free: 63.53 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001158/11.5, allocations: 6.581 MB / 4.805 GB, free: 56.43 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/11.5, allocations: 20 kB / 4.805 GB, free: 56.41 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006098/11.5, allocations: 108.8 kB / 4.805 GB, free: 56.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003813/11.5, allocations: 0.8034 MB / 4.806 GB, free: 55.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/11.5, allocations: 2.167 MB / 4.808 GB, free: 53.17 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005346/11.51, allocations: 0.516 MB / 4.809 GB, free: 52.65 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004988/11.51, allocations: 159.8 kB / 4.809 GB, free: 52.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/11.51, allocations: 4 kB / 4.809 GB, free: 52.49 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005925/11.51, allocations: 3.729 MB / 4.812 GB, free: 48.73 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/11.51, allocations: 16 kB / 4.812 GB, free: 48.71 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005181/11.51, allocations: 117.4 kB / 4.813 GB, free: 48.59 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003477/11.52, allocations: 0.7917 MB / 4.813 GB, free: 47.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/11.52, allocations: 1.563 MB / 4.815 GB, free: 46.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005061/11.52, allocations: 496.8 kB / 4.815 GB, free: 45.61 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004748/11.52, allocations: 159.9 kB / 4.815 GB, free: 45.46 MB / 1.167 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.0009504/11.53, allocations: 290.9 kB / 4.816 GB, free: 45.17 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/11.53, allocations: 395.1 kB / 4.816 GB, free: 44.78 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/11.54, allocations: 4.708 MB / 4.821 GB, free: 39.99 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/11.54, allocations: 28 kB / 4.821 GB, free: 39.96 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/11.54, allocations: 4 kB / 4.821 GB, free: 39.96 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00674/11.54, allocations: 3.669 MB / 4.824 GB, free: 36.17 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/11.57, allocations: 9.492 MB / 4.834 GB, free: 26.53 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/11.57, allocations: 0 / 4.834 GB, free: 26.53 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00388/11.57, allocations: 0.6242 MB / 4.834 GB, free: 25.91 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003289/11.57, allocations: 0.6327 MB / 4.835 GB, free: 25.24 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005029/11.57, allocations: 99.91 kB / 4.835 GB, free: 25.14 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/11.58, allocations: 7.494 MB / 4.842 GB, free: 17.26 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/11.58, allocations: 0 / 4.842 GB, free: 17.26 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/11.59, allocations: 6.22 MB / 4.848 GB, free: 10.92 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003127/11.59, allocations: 1.093 MB / 4.849 GB, free: 9.805 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001027/11.59, allocations: 59.98 kB / 4.849 GB, free: 9.746 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004039/11.6, allocations: 323.4 kB / 4.85 GB, free: 9.43 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/11.6, allocations: 198 kB / 4.85 GB, free: 9.234 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003113/11.6, allocations: 131.9 kB / 4.85 GB, free: 9.105 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.003821/11.6, allocations: 2.623 MB / 4.853 GB, free: 6.504 MB / 1.167 GB Notification: Performance of sort global known variables: time 5.71e-07/11.6, allocations: 0 / 4.853 GB, free: 6.504 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.008929/11.61, allocations: 2.743 MB / 4.855 GB, free: 3.754 MB / 1.167 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.7773/12.39, allocations: 8.219 MB / 4.863 GB, free: 233.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01252/12.4, allocations: 5.835 MB / 4.869 GB, free: 233.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/12.4, allocations: 0.5625 kB / 4.869 GB, free: 233.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003926/12.4, allocations: 1.938 MB / 4.871 GB, free: 233.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/12.41, allocations: 1.945 MB / 4.873 GB, free: 233.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02287/12.44, allocations: 9.488 MB / 4.882 GB, free: 231.6 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003398/12.44, allocations: 3.188 MB / 4.885 GB, free: 230.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.01466/12.46, allocations: 3.558 MB / 4.889 GB, free: 230.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004241/12.46, allocations: 1.904 MB / 4.891 GB, free: 230.8 MB / 1.167 GB Notification: Performance of SimCode: time 1.362e-06/12.46, allocations: 1.156 kB / 4.891 GB, free: 230.8 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2418/12.7, allocations: 139.6 MB / 5.027 GB, free: 222.9 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/12.7, allocations: 227.5 kB / 5.027 GB, free: 222.6 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.354/19.06, allocations: 0 / 5.027 GB, free: 222.6 MB / 1.167 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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat does not exist to compare? outputFormat=mat