Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001721/0.001722, allocations: 188.5 kB / 16.25 MB, free: 6.633 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.761/2.761, allocations: 472.6 MB / 0.7448 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 76.28 kB / 0.9115 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3068, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.8578/1.165, allocations: 250.9 MB / 1.313 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02566/1.19, allocations: 17.96 MB / 1.33 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003868/1.194, allocations: 74.53 kB / 1.33 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003569/1.198, allocations: 0.9514 MB / 1.331 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01188/1.21, allocations: 3.592 MB / 1.335 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005068/1.215, allocations: 1.641 MB / 1.336 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.008145/1.223, allocations: 5.09 MB / 1.341 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003218/1.226, allocations: 1.808 MB / 1.343 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005829/1.232, allocations: 2.167 MB / 1.345 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003861/1.236, allocations: 1.611 MB / 1.347 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000786/1.237, allocations: 184.5 kB / 1.347 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006074/1.243, allocations: 2.626 MB / 1.35 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001093/1.244, allocations: 0.5947 MB / 1.35 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002675/1.247, allocations: 1.11 MB / 1.351 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01027/1.257, allocations: 3.776 MB / 1.355 GB, free: 1.301 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/1.257, allocations: 4 kB / 1.355 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.224e-06/1.257, allocations: 0 / 1.355 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001267/1.257, allocations: 0 / 1.355 GB, free: 1.297 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.006305/1.264, allocations: 2.476 MB / 1.357 GB, free: 15.78 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/1.264, allocations: 7.969 kB / 1.357 GB, free: 15.78 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001883/1.265, allocations: 375.3 kB / 1.358 GB, free: 15.65 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/1.268, allocations: 1.432 MB / 1.359 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.375e-05/1.268, allocations: 112.8 kB / 1.359 GB, free: 14.81 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/1.268, allocations: 137 kB / 1.359 GB, free: 14.77 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/1.271, allocations: 1.5 MB / 1.361 GB, free: 14.09 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.205e-05/1.271, allocations: 8.703 kB / 1.361 GB, free: 14.08 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/1.271, allocations: 57.02 kB / 1.361 GB, free: 14.04 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-05/1.271, allocations: 57.27 kB / 1.361 GB, free: 14.04 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001979/1.273, allocations: 1.142 MB / 1.362 GB, free: 13.64 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 preOpt removeSimpleEquations (simulation): time 0.009119/1.282, allocations: 7.185 MB / 1.369 GB, free: 8.363 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/1.283, allocations: 0.8203 MB / 1.37 GB, free: 7.977 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007157/1.284, allocations: 449.3 kB / 1.37 GB, free: 7.812 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008817/1.285, allocations: 0.714 MB / 1.371 GB, free: 7.051 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/1.285, allocations: 46.2 kB / 1.371 GB, free: 7.004 MB / 1.014 GB Notification: Performance of pre-optimization done (n=74): time 2.595e-06/1.285, allocations: 0 / 1.371 GB, free: 7.004 MB / 1.014 GB Notification: Performance of matching and sorting (n=74): time 0.006532/1.292, allocations: 2.072 MB / 1.373 GB, free: 6.152 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/1.292, allocations: 67.55 kB / 1.373 GB, free: 6.086 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/1.294, allocations: 1.31 MB / 1.374 GB, free: 5.578 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001059/1.294, allocations: 38.42 kB / 1.374 GB, free: 5.539 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006304/1.294, allocations: 0.8039 MB / 1.375 GB, free: 4.91 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/1.295, allocations: 262 kB / 1.375 GB, free: 4.711 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/1.295, allocations: 163.6 kB / 1.376 GB, free: 4.633 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000136/1.295, allocations: 341.7 kB / 1.376 GB, free: 4.312 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/1.296, allocations: 336.8 kB / 1.376 GB, free: 4.191 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007972/1.296, allocations: 0.5649 MB / 1.377 GB, free: 3.812 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/1.298, allocations: 0.8677 MB / 1.378 GB, free: 3.336 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/1.298, allocations: 1.781 kB / 1.378 GB, free: 3.336 MB / 1.014 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00256/1.3, allocations: 1.267 MB / 1.379 GB, free: 2.84 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/1.3, allocations: 4.875 kB / 1.379 GB, free: 2.84 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/1.3, allocations: 5.656 kB / 1.379 GB, free: 2.84 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001988/1.302, allocations: 412.7 kB / 1.379 GB, free: 2.648 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006097/1.303, allocations: 155.8 kB / 1.379 GB, free: 2.621 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/1.305, allocations: 2.054 MB / 1.381 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/1.306, allocations: 180 kB / 1.382 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.799e-05/1.306, allocations: 41.41 kB / 1.382 GB, free: 0.668 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001132/1.307, allocations: 0.6364 MB / 1.382 GB, free: 292 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007768/1.308, allocations: 0.5585 MB / 1.383 GB, free: 15.85 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001258/1.309, allocations: 0.8597 MB / 1.384 GB, free: 15.31 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.747e-06/1.309, allocations: 2.094 kB / 1.384 GB, free: 15.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.002194/1.312, allocations: 1.208 MB / 1.385 GB, free: 14.71 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/1.312, allocations: 6.844 kB / 1.385 GB, free: 14.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.312, allocations: 10.2 kB / 1.385 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/1.313, allocations: 358.2 kB / 1.385 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/1.314, allocations: 158.2 kB / 1.385 GB, free: 14.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003538/1.317, allocations: 4.192 MB / 1.389 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/1.319, allocations: 166.3 kB / 1.39 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.868e-05/1.319, allocations: 36.61 kB / 1.39 GB, free: 10.39 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (79): * Single equations (assignments): 75 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,21), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003202/1.319, allocations: 237.2 kB / 1.39 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/1.32, allocations: 151.9 kB / 1.39 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002946/1.323, allocations: 1.191 MB / 1.391 GB, free: 9.422 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/1.323, allocations: 14.77 kB / 1.391 GB, free: 9.418 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/1.323, allocations: 0 / 1.391 GB, free: 9.418 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002446/1.325, allocations: 1.278 MB / 1.392 GB, free: 8.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005051/1.33, allocations: 2.752 MB / 1.395 GB, free: 6.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/1.33, allocations: 6.562 kB / 1.395 GB, free: 6.699 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/1.331, allocations: 101.4 kB / 1.395 GB, free: 6.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001596/1.332, allocations: 349.7 kB / 1.396 GB, free: 6.516 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/1.332, allocations: 22.36 kB / 1.396 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001568/1.334, allocations: 2.022 MB / 1.398 GB, free: 4.676 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/1.334, allocations: 5.438 kB / 1.398 GB, free: 4.676 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/1.336, allocations: 1.213 MB / 1.399 GB, free: 3.926 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006786/1.337, allocations: 331.1 kB / 1.399 GB, free: 3.652 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/1.337, allocations: 17.03 kB / 1.399 GB, free: 3.641 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/1.338, allocations: 109.2 kB / 1.399 GB, free: 3.59 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/1.338, allocations: 64.75 kB / 1.399 GB, free: 3.555 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.325e-05/1.338, allocations: 35.11 kB / 1.399 GB, free: 3.539 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001153/1.339, allocations: 0.8848 MB / 1.4 GB, free: 3.059 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.6e-07/1.339, allocations: 0 / 1.4 GB, free: 3.059 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00248/1.342, allocations: 0.9024 MB / 1.401 GB, free: 2.867 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,20), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008701/1.343, allocations: 378.8 kB / 1.401 GB, free: 2.668 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003582/1.346, allocations: 1.717 MB / 1.403 GB, free: 1.82 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.346, allocations: 0 / 1.403 GB, free: 1.82 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0009607/1.347, allocations: 473 kB / 1.403 GB, free: 1.625 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003464/1.351, allocations: 0.7855 MB / 1.404 GB, free: 1.207 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/1.356, allocations: 3.344 MB / 1.408 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009332/1.357, allocations: 1.344 MB / 1.409 GB, free: 12.8 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001512/1.358, allocations: 326.8 kB / 1.409 GB, free: 12.48 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/1.359, allocations: 94.06 kB / 1.409 GB, free: 12.39 MB / 1.045 GB Notification: Performance of SimCode: time 1.092e-06/1.359, allocations: 4 kB / 1.409 GB, free: 12.39 MB / 1.045 GB Notification: Performance of Templates: time 0.0566/1.415, allocations: 32.16 MB / 1.441 GB, free: 12.74 MB / 1.076 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1)