Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.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.1-maint.9.1.x/package.mo", uses=false) 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) 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.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",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.001232/0.001232, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001382/0.001382, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.326/2.326, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.000323, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7005/0.7008, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.24/0.9409, allocations: 250.9 MB / 1.199 GB, free: 4.66 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.05585/0.9968, allocations: 43.1 MB / 1.241 GB, free: 9.48 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00787/1.005, allocations: 246.2 kB / 1.241 GB, free: 9.238 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0102/1.015, allocations: 2.977 MB / 1.244 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.6042/1.619, allocations: 9.219 MB / 1.253 GB, free: 75.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01708/1.636, allocations: 5.971 MB / 1.259 GB, free: 75.14 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.02672/1.663, allocations: 10.83 MB / 1.269 GB, free: 75.12 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01219/1.675, allocations: 4.333 MB / 1.274 GB, free: 74.59 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01675/1.692, allocations: 5.406 MB / 1.279 GB, free: 74.57 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01033/1.702, allocations: 3.204 MB / 1.282 GB, free: 74.55 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.002518/1.705, allocations: 230.8 kB / 1.282 GB, free: 74.55 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01185/1.717, allocations: 2.796 MB / 1.285 GB, free: 74.55 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003056/1.72, allocations: 1.029 MB / 1.286 GB, free: 74.55 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.005282/1.725, allocations: 1.375 MB / 1.287 GB, free: 74.52 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01327/1.738, allocations: 7.298 MB / 1.294 GB, free: 73.93 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/1.739, allocations: 0 / 1.294 GB, free: 73.93 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.456e-06/1.739, allocations: 0 / 1.294 GB, free: 73.93 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0004014/1.739, allocations: 2.516 kB / 1.294 GB, free: 73.93 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.01839/1.757, allocations: 6.232 MB / 1.3 GB, free: 70.76 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/1.757, allocations: 9.281 kB / 1.3 GB, free: 70.76 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002009/1.759, allocations: 0.549 MB / 1.301 GB, free: 70.7 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003836/1.763, allocations: 0.7816 MB / 1.302 GB, free: 70.32 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/1.774, allocations: 4.701 MB / 1.306 GB, free: 69.48 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/1.774, allocations: 324.5 kB / 1.307 GB, free: 69.47 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009714/1.775, allocations: 434.7 kB / 1.307 GB, free: 69.46 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00675/1.782, allocations: 4.314 MB / 1.311 GB, free: 68.66 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.439e-05/1.782, allocations: 12.91 kB / 1.311 GB, free: 68.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003588/1.782, allocations: 176.5 kB / 1.311 GB, free: 68.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/1.783, allocations: 122.2 kB / 1.312 GB, free: 68.66 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004795/1.787, allocations: 2.945 MB / 1.314 GB, free: 68.62 MB / 0.9981 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.02369/1.811, allocations: 25.17 MB / 1.339 GB, free: 52.61 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/1.814, allocations: 2.765 MB / 1.342 GB, free: 51.25 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002047/1.816, allocations: 3.906 MB / 1.346 GB, free: 46.75 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.757e-05/1.816, allocations: 71.91 kB / 1.346 GB, free: 46.7 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=217): time 4.679e-06/1.816, allocations: 4 kB / 1.346 GB, free: 46.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=217): time 0.009321/1.825, allocations: 4.054 MB / 1.35 GB, free: 45.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/1.826, allocations: 75.28 kB / 1.35 GB, free: 45.24 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005669/1.831, allocations: 4.394 MB / 1.354 GB, free: 44.19 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004141/1.832, allocations: 79.33 kB / 1.354 GB, free: 44.16 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001577/1.833, allocations: 2.799 MB / 1.357 GB, free: 43.01 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006939/1.834, allocations: 0.7509 MB / 1.357 GB, free: 42.46 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/1.834, allocations: 57.78 kB / 1.358 GB, free: 42.46 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.834, allocations: 425.6 kB / 1.358 GB, free: 42.11 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/1.835, allocations: 0.7825 MB / 1.359 GB, free: 42 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/1.837, allocations: 1.782 MB / 1.36 GB, free: 40.69 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/1.838, allocations: 1.078 MB / 1.362 GB, free: 40.57 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/1.838, allocations: 6.25 kB / 1.362 GB, free: 40.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.00672/1.845, allocations: 3.49 MB / 1.365 GB, free: 39.75 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.002448/1.848, allocations: 10.33 MB / 1.375 GB, free: 28.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-05/1.848, allocations: 22.06 kB / 1.375 GB, free: 28.89 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/1.85, allocations: 0.5692 MB / 1.376 GB, free: 28.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/1.852, allocations: 0.5609 MB / 1.376 GB, free: 28.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/1.854, allocations: 2.684 MB / 1.379 GB, free: 26.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005227/1.859, allocations: 0.6197 MB / 1.379 GB, free: 26.17 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003316/1.86, allocations: 133 kB / 1.379 GB, free: 26.16 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/1.86, allocations: 5.594 kB / 1.379 GB, free: 26.16 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004737/1.864, allocations: 2.801 MB / 1.382 GB, free: 25.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.993e-05/1.865, allocations: 24 kB / 1.382 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008953/1.865, allocations: 372 kB / 1.383 GB, free: 25.29 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/1.867, allocations: 0.5556 MB / 1.383 GB, free: 24.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007255/1.874, allocations: 7.785 MB / 1.391 GB, free: 17.56 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005113/1.88, allocations: 0.5681 MB / 1.391 GB, free: 17.04 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000563/1.88, allocations: 129.4 kB / 1.391 GB, free: 16.93 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * 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 (323): * Single equations (assignments): 319 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 12,1 9,1 12,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.002785/1.883, allocations: 1.002 MB / 1.392 GB, free: 16.38 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/1.885, allocations: 0.5133 MB / 1.393 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0063/1.891, allocations: 3.583 MB / 1.396 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.875e-05/1.891, allocations: 38.22 kB / 1.396 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.891, allocations: 4 kB / 1.396 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003448/1.894, allocations: 2.435 MB / 1.399 GB, free: 11.57 MB / 0.9981 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 postOpt removeSimpleEquations (simulation): time 0.0159/1.91, allocations: 8.285 MB / 1.407 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/1.91, allocations: 4 kB / 1.407 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/1.912, allocations: 369.5 kB / 1.407 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006434/1.912, allocations: 300.3 kB / 1.408 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/1.913, allocations: 67.2 kB / 1.408 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/1.914, allocations: 2.494 MB / 1.41 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.914, allocations: 0 / 1.41 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006824/1.921, allocations: 4.428 MB / 1.414 GB, free: 15.4 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003182/1.924, allocations: 1.031 MB / 1.415 GB, free: 14.59 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001358/1.925, allocations: 51.56 kB / 1.415 GB, free: 14.57 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004542/1.93, allocations: 429.3 kB / 1.416 GB, free: 14.19 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003683/1.93, allocations: 147.8 kB / 1.416 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004796/1.931, allocations: 115.3 kB / 1.416 GB, free: 13.96 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.007755/1.938, allocations: 2.923 MB / 1.419 GB, free: 11.94 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.91e-07/1.938, allocations: 0 / 1.419 GB, free: 11.94 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.01448/1.953, allocations: 3.313 MB / 1.422 GB, free: 8.855 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * 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 (219): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01354/1.966, allocations: 6.404 MB / 1.428 GB, free: 3.898 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.009361/1.976, allocations: 4.4 MB / 1.433 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/1.976, allocations: 7.188 kB / 1.433 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00239/1.978, allocations: 1.233 MB / 1.434 GB, free: 15.86 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01555/1.994, allocations: 2.605 MB / 1.436 GB, free: 13.71 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03419/2.028, allocations: 29.36 MB / 1.465 GB, free: 372 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003409/2.032, allocations: 2.994 MB / 1.468 GB, free: 13.41 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.005674/2.037, allocations: 1.168 MB / 1.469 GB, free: 12.26 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003439/2.041, allocations: 2.535 MB / 1.472 GB, free: 11.71 MB / 1.061 GB Notification: Performance of SimCode: time 7.71e-07/2.041, allocations: 0 / 1.472 GB, free: 11.71 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2432/2.284, allocations: 148 MB / 1.616 GB, free: 10.06 MB / 1.201 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/2.284, allocations: 256.3 kB / 1.616 GB, free: 9.727 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.505/8.789, allocations: 7.938 kB / 1.616 GB, free: 9.719 MB / 1.201 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat does not exist to compare? outputFormat=mat