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.001099/0.001099, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001508/0.001508, allocations: 168.7 kB / 15.95 MB, free: 204 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.382/1.382, allocations: 223.3 MB / 240 MB, free: 5.406 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.381/2.381, allocations: 390.4 MB / 0.6655 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003013, allocations: 12 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7217/0.722, allocations: 142.3 MB / 0.9538 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.2565/0.9786, allocations: 277.6 MB / 1.225 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.6803/1.659, allocations: 47.03 MB / 1.271 GB, free: 70.91 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01032/1.669, allocations: 262.6 kB / 1.271 GB, free: 70.91 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009738/1.679, allocations: 2.38 MB / 1.273 GB, free: 70.88 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.02571/1.705, allocations: 7.262 MB / 1.28 GB, free: 70.56 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01573/1.721, allocations: 4.769 MB / 1.285 GB, free: 70.43 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.03298/1.754, allocations: 21.08 MB / 1.306 GB, free: 70.41 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00849/1.762, allocations: 4.294 MB / 1.31 GB, free: 69.87 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01537/1.777, allocations: 5.897 MB / 1.316 GB, free: 68.73 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01007/1.788, allocations: 4.603 MB / 1.32 GB, free: 67.66 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001751/1.789, allocations: 229.1 kB / 1.32 GB, free: 67.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01077/1.8, allocations: 2.641 MB / 1.323 GB, free: 67.31 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001865/1.802, allocations: 1.061 MB / 1.324 GB, free: 67.05 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003594/1.806, allocations: 1.374 MB / 1.325 GB, free: 66.8 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01188/1.818, allocations: 7.436 MB / 1.333 GB, free: 64.48 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/1.818, allocations: 0 / 1.333 GB, free: 64.48 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.736e-06/1.818, allocations: 0 / 1.333 GB, free: 64.48 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003353/1.818, allocations: 0 / 1.333 GB, free: 64.48 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.01223/1.83, allocations: 6.252 MB / 1.339 GB, free: 60.58 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.83, allocations: 11 kB / 1.339 GB, free: 60.58 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001165/1.831, allocations: 0.5475 MB / 1.339 GB, free: 60.42 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/1.834, allocations: 0.7855 MB / 1.34 GB, free: 60.04 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009289/1.843, allocations: 5.003 MB / 1.345 GB, free: 57.96 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/1.843, allocations: 324.3 kB / 1.345 GB, free: 57.95 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004949/1.844, allocations: 436 kB / 1.346 GB, free: 57.94 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006791/1.85, allocations: 4.347 MB / 1.35 GB, free: 56.42 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.394e-05/1.851, allocations: 22.58 kB / 1.35 GB, free: 56.4 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003328/1.851, allocations: 178 kB / 1.35 GB, free: 56.4 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/1.851, allocations: 110.9 kB / 1.35 GB, free: 56.4 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005486/1.856, allocations: 2.944 MB / 1.353 GB, free: 55.93 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.03007/1.887, allocations: 25.03 MB / 1.378 GB, free: 36.85 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/1.89, allocations: 2.758 MB / 1.38 GB, free: 35.48 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/1.891, allocations: 0.9954 MB / 1.381 GB, free: 35.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00182/1.893, allocations: 3.922 MB / 1.385 GB, free: 30.61 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/1.893, allocations: 57.69 kB / 1.385 GB, free: 30.56 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=217): time 4.068e-06/1.893, allocations: 0 / 1.385 GB, free: 30.56 MB / 0.9981 GB Notification: Performance of matching and sorting (n=217): time 0.008369/1.901, allocations: 4.071 MB / 1.389 GB, free: 27.23 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/1.901, allocations: 77.41 kB / 1.389 GB, free: 27.14 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004953/1.906, allocations: 4.185 MB / 1.393 GB, free: 24.11 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002694/1.906, allocations: 80.95 kB / 1.393 GB, free: 24.06 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001504/1.908, allocations: 2.787 MB / 1.396 GB, free: 22.57 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005635/1.909, allocations: 0.7622 MB / 1.397 GB, free: 21.92 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/1.909, allocations: 57.06 kB / 1.397 GB, free: 21.91 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.909, allocations: 418.7 kB / 1.397 GB, free: 21.54 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/1.91, allocations: 0.7873 MB / 1.398 GB, free: 21.03 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/1.911, allocations: 1.796 MB / 1.4 GB, free: 19.17 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/1.913, allocations: 1.074 MB / 1.401 GB, free: 18.52 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/1.913, allocations: 8 kB / 1.401 GB, free: 18.51 MB / 0.9981 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.005953/1.919, allocations: 3.503 MB / 1.404 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002975/1.919, allocations: 0.7382 MB / 1.405 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/1.919, allocations: 24 kB / 1.405 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/1.921, allocations: 0.5686 MB / 1.405 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/1.923, allocations: 0.5587 MB / 1.406 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/1.924, allocations: 2.687 MB / 1.409 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003951/1.928, allocations: 0.6033 MB / 1.409 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/1.928, allocations: 133.8 kB / 1.409 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.647e-06/1.928, allocations: 4 kB / 1.409 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003964/1.932, allocations: 2.802 MB / 1.412 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/1.932, allocations: 24 kB / 1.412 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007727/1.933, allocations: 372.5 kB / 1.413 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/1.935, allocations: 0.5541 MB / 1.413 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006029/1.941, allocations: 7.715 MB / 1.421 GB, free: 392 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004115/1.945, allocations: 0.5533 MB / 1.421 GB, free: 15.88 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/1.945, allocations: 129.3 kB / 1.421 GB, free: 15.77 MB / 1.014 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.00211/1.947, allocations: 0.998 MB / 1.422 GB, free: 15.18 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009307/1.948, allocations: 0.5094 MB / 1.423 GB, free: 14.67 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00552/1.954, allocations: 3.571 MB / 1.426 GB, free: 12.06 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-05/1.954, allocations: 45.78 kB / 1.426 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.954, allocations: 0 / 1.426 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003351/1.957, allocations: 2.438 MB / 1.429 GB, free: 10.31 MB / 1.014 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.01142/1.969, allocations: 8.2 MB / 1.437 GB, free: 4.336 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/1.969, allocations: 0 / 1.437 GB, free: 4.336 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/1.97, allocations: 371.6 kB / 1.437 GB, free: 3.984 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006561/1.97, allocations: 305.8 kB / 1.437 GB, free: 3.73 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/1.971, allocations: 67.22 kB / 1.437 GB, free: 3.699 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/1.972, allocations: 2.489 MB / 1.44 GB, free: 1.289 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.972, allocations: 3.984 kB / 1.44 GB, free: 1.285 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005963/1.978, allocations: 4.333 MB / 1.444 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.98, allocations: 0.9751 MB / 1.445 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004847/1.981, allocations: 50.55 kB / 1.445 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002718/1.983, allocations: 423.5 kB / 1.445 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/1.983, allocations: 158.9 kB / 1.446 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001852/1.984, allocations: 109.2 kB / 1.446 GB, free: 12.79 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.003866/1.988, allocations: 2.748 MB / 1.448 GB, free: 10.86 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.6e-07/1.988, allocations: 0 / 1.448 GB, free: 10.86 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.008712/1.996, allocations: 3.258 MB / 1.452 GB, free: 7.816 MB / 1.029 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.007921/2.004, allocations: 6.041 MB / 1.457 GB, free: 3.188 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.006625/2.011, allocations: 4.399 MB / 1.462 GB, free: 15.84 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/2.011, allocations: 4 kB / 1.462 GB, free: 15.83 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001773/2.013, allocations: 1.223 MB / 1.463 GB, free: 14.97 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01139/2.024, allocations: 2.658 MB / 1.466 GB, free: 12.8 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05789/2.082, allocations: 35.98 MB / 1.501 GB, free: 5.898 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/2.084, allocations: 2.87 MB / 1.503 GB, free: 3 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.00437/2.088, allocations: 1.157 MB / 1.505 GB, free: 1.836 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002734/2.091, allocations: 2.542 MB / 1.507 GB, free: 15.33 MB / 1.092 GB Notification: Performance of SimCode: time 7.01e-07/2.091, allocations: 0 / 1.507 GB, free: 15.33 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2384/2.33, allocations: 147.6 MB / 1.651 GB, free: 13.55 MB / 1.232 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002688/2.33, allocations: 258.2 kB / 1.651 GB, free: 13.21 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.977/8.307, allocations: 0 / 1.651 GB, free: 13.21 MB / 1.232 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