Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.16/2.16, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001006/0.001006, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.795/1.795, allocations: 221.5 MB / 0.7824 GB, free: 0.9375 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009454/0.0009454, allocations: 99.84 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.853e-05/1.857e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2722, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.817/6.089, allocations: 2.199 GB / 3.405 GB, free: 122.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/6.089, allocations: 96.88 kB / 3.405 GB, free: 122.6 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.485/9.575, allocations: 0.9366 GB / 4.342 GB, free: 76.61 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.305e-06/9.575, allocations: 0 / 4.342 GB, free: 76.61 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0008043/9.576, allocations: 127.9 kB / 4.342 GB, free: 76.49 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: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 0.01487/9.591, allocations: 4.336 MB / 4.346 GB, free: 72.09 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/9.591, allocations: 8.031 kB / 4.346 GB, free: 72.08 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009101/9.6, allocations: 1.285 MB / 4.347 GB, free: 70.79 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/9.614, allocations: 5.543 MB / 4.353 GB, free: 65.18 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/9.614, allocations: 124 kB / 4.353 GB, free: 65.05 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00146/9.616, allocations: 227.9 kB / 4.353 GB, free: 64.83 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008691/9.624, allocations: 4.396 MB / 4.357 GB, free: 60.43 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009253/9.634, allocations: 4.556 MB / 4.362 GB, free: 55.72 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/9.634, allocations: 7.938 kB / 4.362 GB, free: 55.71 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004973/9.634, allocations: 8 kB / 4.362 GB, free: 55.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001392/9.634, allocations: 183.3 kB / 4.362 GB, free: 55.52 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.0311/9.665, allocations: 18.99 MB / 4.381 GB, free: 35.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004837/9.67, allocations: 3.119 MB / 4.384 GB, free: 32.78 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002145/9.673, allocations: 1.615 MB / 4.385 GB, free: 31.15 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00201/9.675, allocations: 1.864 MB / 4.387 GB, free: 28.89 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002706/9.677, allocations: 1.792 MB / 4.389 GB, free: 27.05 MB / 1.151 GB Notification: Performance of pre-optimization done (n=268): time 5.039e-06/9.677, allocations: 0 / 4.389 GB, free: 27.05 MB / 1.151 GB Notification: Performance of matching and sorting (n=268): time 0.06004/9.737, allocations: 7.431 MB / 4.396 GB, free: 19.56 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/9.738, allocations: 295.1 kB / 4.396 GB, free: 19.21 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005378/9.743, allocations: 2.998 MB / 4.399 GB, free: 16.21 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0009195/9.744, allocations: 33.7 kB / 4.399 GB, free: 16.18 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001962/9.746, allocations: 1.981 MB / 4.401 GB, free: 14.17 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001411/9.747, allocations: 0.8814 MB / 4.402 GB, free: 13.28 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/9.747, allocations: 0 / 4.402 GB, free: 13.28 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001803/9.748, allocations: 424 kB / 4.403 GB, free: 12.86 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/9.749, allocations: 1.29 MB / 4.404 GB, free: 11.56 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002104/9.752, allocations: 1.965 MB / 4.406 GB, free: 9.328 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.073/10.82, allocations: 13.25 MB / 4.419 GB, free: 225.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.232e-05/10.82, allocations: 7.531 kB / 4.419 GB, free: 225.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.1639/10.99, allocations: 15.31 MB / 4.434 GB, free: 225.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001771/10.99, allocations: 7.309 MB / 4.441 GB, free: 217.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.523e-05/10.99, allocations: 19.31 kB / 4.441 GB, free: 217.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006632/10.99, allocations: 111.1 kB / 4.441 GB, free: 217.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004666/11, allocations: 0.8214 MB / 4.442 GB, free: 217.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/11, allocations: 2.103 MB / 4.444 GB, free: 215.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007571/11.01, allocations: 440 kB / 4.444 GB, free: 215.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/11.01, allocations: 147.2 kB / 4.444 GB, free: 215.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/11.01, allocations: 3.938 kB / 4.444 GB, free: 215.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1663/11.17, allocations: 14.93 MB / 4.459 GB, free: 215.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/11.17, allocations: 17.06 kB / 4.459 GB, free: 215.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008667/11.17, allocations: 111.4 kB / 4.459 GB, free: 215.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006143/11.18, allocations: 0.815 MB / 4.46 GB, free: 215.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/11.18, allocations: 1.498 MB / 4.461 GB, free: 214.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006648/11.19, allocations: 407.4 kB / 4.462 GB, free: 214.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001389/11.19, allocations: 147.7 kB / 4.462 GB, free: 214.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (371): * Single equations (assignments): 369 * 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.001966/11.19, allocations: 180 kB / 4.462 GB, free: 214.2 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06364/11.26, allocations: 7.435 MB / 4.469 GB, free: 213.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001975/11.26, allocations: 356.5 kB / 4.47 GB, free: 213.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06504/11.32, allocations: 8.167 MB / 4.477 GB, free: 212.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.404e-05/11.32, allocations: 27.78 kB / 4.478 GB, free: 212.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/11.32, allocations: 0 / 4.478 GB, free: 212.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05985/11.38, allocations: 7.366 MB / 4.485 GB, free: 212.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07678/11.46, allocations: 12.43 MB / 4.497 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/11.46, allocations: 3.188 kB / 4.497 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003741/11.47, allocations: 0.6406 MB / 4.497 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005472/11.47, allocations: 89.09 kB / 4.498 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006494/11.47, allocations: 61.86 kB / 4.498 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/11.47, allocations: 2.086 MB / 4.5 GB, free: 209.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/11.47, allocations: 0 / 4.5 GB, free: 209.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06172/11.53, allocations: 9.698 MB / 4.509 GB, free: 208.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003207/11.53, allocations: 1.056 MB / 4.51 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/11.53, allocations: 18.28 kB / 4.51 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0042/11.54, allocations: 294.8 kB / 4.51 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003946/11.54, allocations: 177 kB / 4.511 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003717/11.54, allocations: 124.8 kB / 4.511 GB, free: 208.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.004024/11.54, allocations: 2.317 MB / 4.513 GB, free: 208.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.5e-07/11.54, allocations: 3.844 kB / 4.513 GB, free: 208.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01054/11.55, allocations: 2.373 MB / 4.515 GB, free: 208 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (288): * Single equations (assignments): 278 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.06618/11.62, allocations: 12 MB / 4.527 GB, free: 206.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.012/11.63, allocations: 5.37 MB / 4.532 GB, free: 205.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/11.63, allocations: 5.484 kB / 4.532 GB, free: 205.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00358/11.64, allocations: 1.699 MB / 4.534 GB, free: 205.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/11.65, allocations: 1.76 MB / 4.536 GB, free: 205.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02786/11.67, allocations: 8.896 MB / 4.544 GB, free: 203.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00479/11.68, allocations: 3.145 MB / 4.547 GB, free: 202.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.01349/11.69, allocations: 2.81 MB / 4.55 GB, free: 202.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005034/11.7, allocations: 1.838 MB / 4.552 GB, free: 202.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.493e-06/11.7, allocations: 0 / 4.552 GB, free: 202.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2028/11.9, allocations: 117.1 MB / 4.666 GB, free: 152.4 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/11.9, allocations: 170.9 kB / 4.667 GB, free: 152.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.946/17.85, allocations: 3.719 kB / 4.667 GB, free: 152.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_Tubular.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat does not exist to compare? outputFormat=mat