Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",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.302/2.302, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001223/0.001224, allocations: 173.1 kB / 498.1 MB, free: 5.727 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.491/1.491, allocations: 223.2 MB / 0.7948 GB, free: 18.01 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.0008665/0.0008665, allocations: 96.31 kB / 0.9346 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003808, allocations: 7.719 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2333, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.762/4.995, allocations: 2.2 GB / 3.423 GB, free: 284.6 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/4.995, allocations: 101.2 kB / 3.423 GB, free: 284.5 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.491/8.486, allocations: 0.9454 GB / 4.368 GB, free: 239.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 4.789e-06/8.486, allocations: 0 / 4.368 GB, free: 239.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.001074/8.488, allocations: 131.3 kB / 4.368 GB, free: 239.5 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: 985 * Number of variables: 985 Notification: Performance of Generate backend data structure: time 0.02091/8.508, allocations: 5.194 MB / 4.373 GB, free: 234.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.065e-05/8.509, allocations: 8.031 kB / 4.373 GB, free: 234.2 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003061/8.512, allocations: 0.5305 MB / 4.374 GB, free: 233.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0094/8.521, allocations: 1.281 MB / 4.375 GB, free: 232.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01707/8.538, allocations: 5.576 MB / 4.381 GB, free: 226.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003716/8.539, allocations: 286.9 kB / 4.381 GB, free: 226.6 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002096/8.541, allocations: 383.8 kB / 4.381 GB, free: 226.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02001/8.561, allocations: 5.428 MB / 4.387 GB, free: 220.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00032/8.561, allocations: 7.938 kB / 4.387 GB, free: 220.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001856/8.563, allocations: 166.5 kB / 4.387 GB, free: 220.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002468/8.563, allocations: 183.3 kB / 4.387 GB, free: 220.3 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/8.578, allocations: 5.306 MB / 4.392 GB, free: 215 MB / 1.167 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.04231/8.621, allocations: 19.47 MB / 4.411 GB, free: 195.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009478/8.63, allocations: 3.596 MB / 4.415 GB, free: 191.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002467/8.633, allocations: 1.862 MB / 4.416 GB, free: 189.3 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005692/8.638, allocations: 2.082 MB / 4.418 GB, free: 187.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=265): time 9.598e-06/8.638, allocations: 0 / 4.418 GB, free: 187.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=265): time 0.01476/8.653, allocations: 5.159 MB / 4.423 GB, free: 182 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/8.653, allocations: 295.1 kB / 4.424 GB, free: 181.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00977/8.663, allocations: 3.555 MB / 4.427 GB, free: 178.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001204/8.664, allocations: 73.7 kB / 4.427 GB, free: 178 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.003099/8.667, allocations: 1.995 MB / 4.429 GB, free: 176 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001933/8.669, allocations: 0.9001 MB / 4.43 GB, free: 175.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007412/8.67, allocations: 60 kB / 4.43 GB, free: 175 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0003846/8.671, allocations: 424 kB / 4.431 GB, free: 174.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004179/8.675, allocations: 1.579 MB / 4.432 GB, free: 173 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004308/8.679, allocations: 2.275 MB / 4.434 GB, free: 170.5 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004252/8.683, allocations: 1.925 MB / 4.436 GB, free: 168.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-05/8.683, allocations: 7.938 kB / 4.436 GB, free: 168.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.0111/8.695, allocations: 4.438 MB / 4.441 GB, free: 164.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001779/8.696, allocations: 7.452 MB / 4.448 GB, free: 156 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.056e-05/8.696, allocations: 16 kB / 4.448 GB, free: 156 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006927/8.697, allocations: 108.8 kB / 4.448 GB, free: 155.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/8.702, allocations: 0.8112 MB / 4.449 GB, free: 155.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/8.704, allocations: 1.588 MB / 4.45 GB, free: 153.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00773/8.712, allocations: 0.543 MB / 4.451 GB, free: 152.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001744/8.714, allocations: 151.9 kB / 4.451 GB, free: 152.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/8.714, allocations: 4 kB / 4.451 GB, free: 152.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01592/8.73, allocations: 4.081 MB / 4.455 GB, free: 148.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/8.73, allocations: 19.98 kB / 4.455 GB, free: 148.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007543/8.731, allocations: 121.4 kB / 4.455 GB, free: 148.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005555/8.736, allocations: 0.8112 MB / 4.456 GB, free: 147.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/8.739, allocations: 1.585 MB / 4.457 GB, free: 145.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007713/8.747, allocations: 0.4967 MB / 4.458 GB, free: 145.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/8.748, allocations: 143.9 kB / 4.458 GB, free: 145.2 MB / 1.167 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (372): * Single equations (assignments): 371 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.006124/8.755, allocations: 1.531 MB / 4.46 GB, free: 143.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002326/8.757, allocations: 391.2 kB / 4.46 GB, free: 143.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/8.77, allocations: 4.408 MB / 4.464 GB, free: 138.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.841e-05/8.77, allocations: 35.98 kB / 4.464 GB, free: 138.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/8.77, allocations: 0 / 4.464 GB, free: 138.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007921/8.778, allocations: 3.538 MB / 4.468 GB, free: 135.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02378/8.802, allocations: 9.376 MB / 4.477 GB, free: 125.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.048e-05/8.802, allocations: 4 kB / 4.477 GB, free: 125.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003685/8.806, allocations: 0.644 MB / 4.478 GB, free: 124.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005795/8.806, allocations: 104.6 kB / 4.478 GB, free: 124.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005124/8.807, allocations: 91.92 kB / 4.478 GB, free: 124.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/8.809, allocations: 1.582 MB / 4.479 GB, free: 123 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/8.809, allocations: 7.938 kB / 4.479 GB, free: 123 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/8.823, allocations: 6.545 MB / 4.486 GB, free: 116.2 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003957/8.827, allocations: 1.1 MB / 4.487 GB, free: 115.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00188/8.829, allocations: 63.98 kB / 4.487 GB, free: 115.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00547/8.835, allocations: 311.4 kB / 4.487 GB, free: 114.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008177/8.836, allocations: 193.8 kB / 4.487 GB, free: 114.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009031/8.836, allocations: 134.9 kB / 4.487 GB, free: 114.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.008451/8.845, allocations: 2.806 MB / 4.49 GB, free: 111.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.222e-06/8.845, allocations: 0 / 4.49 GB, free: 111.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01412/8.859, allocations: 2.486 MB / 4.493 GB, free: 109.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.02172/8.881, allocations: 9.583 MB / 4.502 GB, free: 99.63 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01495/8.896, allocations: 6.178 MB / 4.508 GB, free: 93.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/8.896, allocations: 8.938 kB / 4.508 GB, free: 93.39 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.004444/8.9, allocations: 1.975 MB / 4.51 GB, free: 91.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01197/8.912, allocations: 2.025 MB / 4.512 GB, free: 89.45 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0377/8.95, allocations: 26.41 MB / 4.538 GB, free: 61.87 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004821/8.955, allocations: 3.148 MB / 4.541 GB, free: 58.69 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0112/8.966, allocations: 2.085 MB / 4.543 GB, free: 56.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005421/8.972, allocations: 1.928 MB / 4.545 GB, free: 54.67 MB / 1.167 GB Notification: Performance of SimCode: time 1.703e-06/8.972, allocations: 0 / 4.545 GB, free: 54.67 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.046/10.02, allocations: 131.2 MB / 4.673 GB, free: 256.5 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/10.02, allocations: 267.2 kB / 4.673 GB, free: 256.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.008/16.03, allocations: 0 / 4.673 GB, free: 256.1 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat does not exist to compare? outputFormat=mat