Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_10_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.001145/0.001145, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 192.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.506/2.506, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 63.89 kB / 0.8693 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6908/0.6922, allocations: 151.6 MB / 1.017 GB, free: 2.547 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.8852/1.577, allocations: 300.4 MB / 1.311 GB, free: 70.62 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0584/1.636, allocations: 50.04 MB / 1.36 GB, free: 64.54 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01271/1.649, allocations: 304.5 kB / 1.36 GB, free: 64.54 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009899/1.659, allocations: 3.415 MB / 1.363 GB, free: 63.72 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.02865/1.687, allocations: 9.044 MB / 1.372 GB, free: 58.38 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01775/1.705, allocations: 6.581 MB / 1.378 GB, free: 53.97 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.02606/1.731, allocations: 18.46 MB / 1.397 GB, free: 43.66 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009747/1.741, allocations: 5.841 MB / 1.402 GB, free: 37.81 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01875/1.76, allocations: 7.341 MB / 1.409 GB, free: 30.94 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008837/1.769, allocations: 5.082 MB / 1.414 GB, free: 26.24 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.002847/1.772, allocations: 0.5664 MB / 1.415 GB, free: 25.68 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01415/1.786, allocations: 4.378 MB / 1.419 GB, free: 21.58 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003497/1.789, allocations: 1.505 MB / 1.421 GB, free: 20.11 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00967/1.799, allocations: 3.738 MB / 1.424 GB, free: 16.39 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.02118/1.82, allocations: 10.3 MB / 1.434 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/1.82, allocations: 4 kB / 1.434 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.673e-06/1.82, allocations: 0 / 1.434 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003168/1.821, allocations: 0 / 1.434 GB, free: 6.52 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.01374/1.834, allocations: 7.489 MB / 1.442 GB, free: 15 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/1.834, allocations: 12.03 kB / 1.442 GB, free: 14.99 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009795/1.835, allocations: 0.5357 MB / 1.442 GB, free: 14.45 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002877/1.838, allocations: 0.7842 MB / 1.443 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/1.849, allocations: 5.034 MB / 1.448 GB, free: 8.695 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003113/1.849, allocations: 331.2 kB / 1.448 GB, free: 8.371 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001133/1.851, allocations: 431.9 kB / 1.449 GB, free: 7.949 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008588/1.859, allocations: 4.383 MB / 1.453 GB, free: 3.289 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.669e-05/1.859, allocations: 7.938 kB / 1.453 GB, free: 3.281 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004033/1.86, allocations: 180 kB / 1.453 GB, free: 3.105 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/1.86, allocations: 119.9 kB / 1.453 GB, free: 2.988 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005956/1.866, allocations: 2.957 MB / 1.456 GB, free: 28 kB / 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 preOpt removeSimpleEquations (simulation): time 0.03399/1.9, allocations: 25.3 MB / 1.481 GB, free: 4.879 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003827/1.904, allocations: 2.757 MB / 1.483 GB, free: 1.922 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001802/1.906, allocations: 0.9935 MB / 1.484 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003373/1.909, allocations: 3.911 MB / 1.488 GB, free: 12.17 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.156e-05/1.909, allocations: 64.56 kB / 1.488 GB, free: 12.1 MB / 1.061 GB Notification: Performance of pre-optimization done (n=217): time 6.302e-06/1.909, allocations: 0 / 1.488 GB, free: 12.1 MB / 1.061 GB Notification: Performance of matching and sorting (n=217): time 0.01297/1.922, allocations: 4.069 MB / 1.492 GB, free: 7.945 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/1.922, allocations: 73.41 kB / 1.492 GB, free: 7.863 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00989/1.932, allocations: 4.303 MB / 1.497 GB, free: 3.582 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0005505/1.933, allocations: 81.7 kB / 1.497 GB, free: 3.496 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.002922/1.936, allocations: 2.794 MB / 1.499 GB, free: 0.6953 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.001301/1.937, allocations: 0.7553 MB / 1.5 GB, free: 15.95 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001538/1.938, allocations: 0.5685 MB / 1.501 GB, free: 15.37 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.939, allocations: 305.1 kB / 1.501 GB, free: 15.07 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/1.94, allocations: 0.827 MB / 1.502 GB, free: 14.24 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/1.943, allocations: 1.818 MB / 1.504 GB, free: 11.98 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004286/1.947, allocations: 2.513 MB / 1.506 GB, free: 9.145 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.654e-05/1.947, allocations: 8 kB / 1.506 GB, free: 9.137 MB / 1.076 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.009478/1.957, allocations: 3.56 MB / 1.509 GB, free: 5.52 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.281e-05/1.957, allocations: 16.06 kB / 1.51 GB, free: 5.504 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.919e-05/1.957, allocations: 27.94 kB / 1.51 GB, free: 5.477 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002725/1.96, allocations: 0.5858 MB / 1.51 GB, free: 4.883 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/1.962, allocations: 0.5577 MB / 1.511 GB, free: 4.324 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/1.964, allocations: 2.684 MB / 1.513 GB, free: 1.539 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004845/1.969, allocations: 342.9 kB / 1.514 GB, free: 1.203 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006112/1.97, allocations: 136 kB / 1.514 GB, free: 1.07 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004124/1.974, allocations: 1.564 MB / 1.515 GB, free: 15.5 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002747/1.977, allocations: 1.798 MB / 1.517 GB, free: 13.26 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004454/1.981, allocations: 2.46 MB / 1.519 GB, free: 10.48 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.961e-05/1.981, allocations: 7.984 kB / 1.519 GB, free: 10.47 MB / 1.092 GB Notification: Performance of matching and sorting (n=365) (initialization_lambda0): time 0.008078/1.989, allocations: 3.317 MB / 1.523 GB, free: 7.086 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/1.989, allocations: 16 kB / 1.523 GB, free: 7.07 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/1.989, allocations: 20 kB / 1.523 GB, free: 7.051 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/1.991, allocations: 379.5 kB / 1.523 GB, free: 6.672 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/1.994, allocations: 0.5576 MB / 1.524 GB, free: 6.113 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009874/2.004, allocations: 8.449 MB / 1.532 GB, free: 13.08 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004046/2.008, allocations: 314.9 kB / 1.532 GB, free: 12.77 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005524/2.008, allocations: 132 kB / 1.532 GB, free: 12.64 MB / 1.107 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,12), (1,9), (1,12), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.001021/2.009, allocations: 368.9 kB / 1.533 GB, free: 12.27 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002106/2.012, allocations: 0.5055 MB / 1.533 GB, free: 11.76 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007271/2.019, allocations: 3.582 MB / 1.537 GB, free: 8.121 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.598e-05/2.019, allocations: 39.97 kB / 1.537 GB, free: 8.082 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/2.019, allocations: 0 / 1.537 GB, free: 8.082 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004121/2.023, allocations: 2.44 MB / 1.539 GB, free: 5.598 MB / 1.107 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.0156/2.039, allocations: 8.254 MB / 1.547 GB, free: 13.13 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/2.039, allocations: 0 / 1.547 GB, free: 13.13 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/2.04, allocations: 367.6 kB / 1.547 GB, free: 12.77 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007934/2.041, allocations: 308.5 kB / 1.548 GB, free: 12.46 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/2.041, allocations: 63.97 kB / 1.548 GB, free: 12.4 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001852/2.043, allocations: 2.493 MB / 1.55 GB, free: 9.805 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/2.043, allocations: 8.062 kB / 1.55 GB, free: 9.797 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008071/2.051, allocations: 4.332 MB / 1.554 GB, free: 5.391 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002182/2.053, allocations: 0.8844 MB / 1.555 GB, free: 4.48 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001101/2.054, allocations: 47.98 kB / 1.555 GB, free: 4.434 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/2.057, allocations: 119.8 kB / 1.556 GB, free: 4.316 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/2.058, allocations: 149.8 kB / 1.556 GB, free: 4.168 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/2.058, allocations: 111.9 kB / 1.556 GB, free: 4.059 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.005853/2.064, allocations: 2.852 MB / 1.559 GB, free: 1.234 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.81e-07/2.064, allocations: 0 / 1.559 GB, free: 1.234 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.01261/2.076, allocations: 3.234 MB / 1.562 GB, free: 13.99 MB / 1.139 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,9), (1,7), (1,9), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01692/2.093, allocations: 6.149 MB / 1.568 GB, free: 7.848 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.01645/2.11, allocations: 4.864 MB / 1.572 GB, free: 2.93 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/2.11, allocations: 4 kB / 1.572 GB, free: 2.926 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.002579/2.112, allocations: 1.239 MB / 1.574 GB, free: 1.684 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01556/2.128, allocations: 2.632 MB / 1.576 GB, free: 15.12 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07946/2.208, allocations: 42.73 MB / 1.618 GB, free: 0.5 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003453/2.211, allocations: 2.881 MB / 1.621 GB, free: 13.59 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.005679/2.217, allocations: 1.164 MB / 1.622 GB, free: 12.42 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00397/2.221, allocations: 2.526 MB / 1.624 GB, free: 9.891 MB / 1.201 GB Notification: Performance of SimCode: time 1.042e-06/2.221, allocations: 0 / 1.624 GB, free: 9.891 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7609/2.982, allocations: 148.5 MB / 1.769 GB, free: 0.4886 GB / 1.311 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/18.41, allocations: 10.16 kB / 1.769 GB, free: 0.4886 GB / 1.311 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)