Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004872/0.004872, allocations: 101.7 kB / 15.73 MB, free: 6.039 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.001087/0.001087, allocations: 200.2 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.567/1.567, allocations: 251.7 MB / 0.5094 GB, free: 3.059 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 74.08 kB / 0.7258 GB, free: 8.953 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1917, allocations: 104.7 MB / 0.8281 GB, free: 144 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.7354/0.9272, allocations: 300.3 MB / 1.121 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.06905/0.9963, allocations: 49.47 MB / 1.17 GB, free: 4.719 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01357/1.01, allocations: 282.3 kB / 1.17 GB, free: 4.441 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.01246/1.022, allocations: 3.419 MB / 1.173 GB, free: 1 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.02801/1.05, allocations: 8.99 MB / 1.182 GB, free: 7.973 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.01793/1.068, allocations: 6.479 MB / 1.188 GB, free: 1.527 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0293/1.098, allocations: 18.36 MB / 1.206 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01236/1.11, allocations: 5.801 MB / 1.212 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01896/1.129, allocations: 7.375 MB / 1.219 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0106/1.14, allocations: 5.075 MB / 1.224 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.003238/1.143, allocations: 0.5663 MB / 1.225 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0139/1.157, allocations: 4.371 MB / 1.229 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.003808/1.161, allocations: 1.487 MB / 1.23 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.009404/1.17, allocations: 3.717 MB / 1.234 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.02115/1.191, allocations: 10.33 MB / 1.244 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/1.191, allocations: 0 / 1.244 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.044e-06/1.192, allocations: 0 / 1.244 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.000388/1.192, allocations: 0 / 1.244 GB, free: 8.227 MB / 0.9825 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.01781/1.21, allocations: 7.447 MB / 1.251 GB, free: 0.6367 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/1.21, allocations: 8.031 kB / 1.251 GB, free: 0.6289 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003761/1.214, allocations: 0.7766 MB / 1.252 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/1.226, allocations: 5.286 MB / 1.257 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/1.227, allocations: 316.1 kB / 1.258 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/1.228, allocations: 435.9 kB / 1.258 GB, free: 9.742 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009481/1.238, allocations: 4.354 MB / 1.262 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-05/1.238, allocations: 15.81 kB / 1.262 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003682/1.238, allocations: 172 kB / 1.262 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/1.238, allocations: 116 kB / 1.263 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005274/1.243, allocations: 2.961 MB / 1.265 GB, free: 1.848 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.03336/1.277, allocations: 25.07 MB / 1.29 GB, free: 6.734 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003406/1.28, allocations: 2.759 MB / 1.293 GB, free: 3.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/1.282, allocations: 0.9993 MB / 1.294 GB, free: 2.762 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5752/1.857, allocations: 3.904 MB / 1.297 GB, free: 374.5 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.147e-05/1.857, allocations: 60.45 kB / 1.297 GB, free: 374.5 MB / 1.029 GB Notification: Performance of pre-optimization done (n=217): time 4.879e-06/1.857, allocations: 0 / 1.297 GB, free: 374.5 MB / 1.029 GB Notification: Performance of matching and sorting (n=217): time 0.01238/1.87, allocations: 4.057 MB / 1.301 GB, free: 373.9 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/1.87, allocations: 74.31 kB / 1.302 GB, free: 373.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00979/1.88, allocations: 4.274 MB / 1.306 GB, free: 372.7 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0006808/1.88, allocations: 80.05 kB / 1.306 GB, free: 372.7 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.00291/1.883, allocations: 2.764 MB / 1.308 GB, free: 371.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0014/1.885, allocations: 0.7611 MB / 1.309 GB, free: 370.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001164/1.886, allocations: 0.5792 MB / 1.31 GB, free: 370.2 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 6.059e-05/1.886, allocations: 303.5 kB / 1.31 GB, free: 369.9 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/1.888, allocations: 0.8255 MB / 1.311 GB, free: 369.6 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002421/1.89, allocations: 1.83 MB / 1.313 GB, free: 368.1 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/1.894, allocations: 2.513 MB / 1.315 GB, free: 366.4 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-05/1.894, allocations: 6.875 kB / 1.315 GB, free: 366.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.00955/1.903, allocations: 3.557 MB / 1.319 GB, free: 364.9 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.803e-05/1.903, allocations: 15.78 kB / 1.319 GB, free: 364.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/1.903, allocations: 22.28 kB / 1.319 GB, free: 364.9 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/1.906, allocations: 0.5894 MB / 1.319 GB, free: 364.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/1.908, allocations: 0.5527 MB / 1.32 GB, free: 364.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001921/1.91, allocations: 2.691 MB / 1.322 GB, free: 362.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004387/1.914, allocations: 329.3 kB / 1.323 GB, free: 362.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003408/1.915, allocations: 140.3 kB / 1.323 GB, free: 362.2 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003211/1.918, allocations: 1.564 MB / 1.324 GB, free: 361.4 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002059/1.92, allocations: 1.802 MB / 1.326 GB, free: 359.9 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003308/1.923, allocations: 2.46 MB / 1.329 GB, free: 358.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.424e-05/1.923, allocations: 7.625 kB / 1.329 GB, free: 358.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=365) (initialization_lambda0): time 0.007258/1.931, allocations: 3.315 MB / 1.332 GB, free: 356.8 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/1.931, allocations: 14.67 kB / 1.332 GB, free: 356.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.931, allocations: 23.19 kB / 1.332 GB, free: 356.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009625/1.932, allocations: 369.5 kB / 1.332 GB, free: 356.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/1.933, allocations: 0.5559 MB / 1.333 GB, free: 356.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006773/1.94, allocations: 8.449 MB / 1.341 GB, free: 349.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004631/1.945, allocations: 315.1 kB / 1.341 GB, free: 349.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003109/1.945, allocations: 129 kB / 1.341 GB, free: 349.1 MB / 1.029 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.0008853/1.946, allocations: 366.3 kB / 1.342 GB, free: 348.8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.947, allocations: 0.5017 MB / 1.342 GB, free: 348.5 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005977/1.953, allocations: 3.569 MB / 1.346 GB, free: 347 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.183e-05/1.953, allocations: 34.19 kB / 1.346 GB, free: 347 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.953, allocations: 1.172 kB / 1.346 GB, free: 347 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003377/1.957, allocations: 2.443 MB / 1.348 GB, free: 346 MB / 1.029 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.01107/1.968, allocations: 8.151 MB / 1.356 GB, free: 342 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/1.968, allocations: 0 / 1.356 GB, free: 342 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/1.969, allocations: 370 kB / 1.356 GB, free: 342 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000623/1.97, allocations: 307.7 kB / 1.357 GB, free: 341.8 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/1.97, allocations: 63.05 kB / 1.357 GB, free: 341.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/1.971, allocations: 2.498 MB / 1.359 GB, free: 339.5 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.971, allocations: 3.969 kB / 1.359 GB, free: 339.5 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006236/1.977, allocations: 4.333 MB / 1.363 GB, free: 337.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002041/1.979, allocations: 0.8616 MB / 1.364 GB, free: 337 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/1.98, allocations: 49.36 kB / 1.364 GB, free: 336.9 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/1.982, allocations: 118.4 kB / 1.364 GB, free: 336.9 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/1.982, allocations: 148.6 kB / 1.365 GB, free: 336.9 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.983, allocations: 106.7 kB / 1.365 GB, free: 336.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.004043/1.987, allocations: 2.829 MB / 1.367 GB, free: 335.5 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.6e-07/1.987, allocations: 0 / 1.367 GB, free: 335.5 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.008649/1.995, allocations: 3.233 MB / 1.371 GB, free: 334 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 (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.002741/1.998, allocations: 1.518 MB / 1.372 GB, free: 332.8 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.007275/2.005, allocations: 4.43 MB / 1.376 GB, free: 328.3 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/2.005, allocations: 0 / 1.376 GB, free: 328.3 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001759/2.007, allocations: 1.235 MB / 1.378 GB, free: 327.1 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.013/2.02, allocations: 2.67 MB / 1.38 GB, free: 324.6 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/2.033, allocations: 8.958 MB / 1.389 GB, free: 315.6 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/2.034, allocations: 2.869 MB / 1.392 GB, free: 312.7 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.004294/2.039, allocations: 1.142 MB / 1.393 GB, free: 311.6 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008304/2.04, allocations: 415.2 kB / 1.393 GB, free: 311.2 MB / 1.029 GB Notification: Performance of SimCode: time 7.91e-07/2.04, allocations: 0 / 1.393 GB, free: 311.2 MB / 1.029 GB Notification: Performance of Templates: time 0.147/2.187, allocations: 105.3 MB / 1.496 GB, free: 207.5 MB / 1.029 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)