Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",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.001107/0.001107, 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.001273/0.001273, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.437/1.437, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.612/2.612, allocations: 461.9 MB / 0.7344 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 69.83 kB / 0.8987 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3363, allocations: 157.4 MB / 1.052 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.848/1.184, allocations: 250.9 MB / 1.297 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02213/1.206, allocations: 17.95 MB / 1.315 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003831/1.21, allocations: 74.81 kB / 1.315 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003237/1.214, allocations: 0.9471 MB / 1.316 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01001/1.224, allocations: 3.586 MB / 1.319 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004727/1.228, allocations: 1.657 MB / 1.321 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.007193/1.236, allocations: 5.082 MB / 1.326 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002613/1.238, allocations: 1.808 MB / 1.328 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005546/1.244, allocations: 2.172 MB / 1.33 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003358/1.247, allocations: 1.604 MB / 1.331 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003753/1.248, allocations: 186.4 kB / 1.332 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005252/1.253, allocations: 2.627 MB / 1.334 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005873/1.253, allocations: 0.5939 MB / 1.335 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001516/1.255, allocations: 1.115 MB / 1.336 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005645/1.261, allocations: 3.77 MB / 1.34 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.261, allocations: 2.906 kB / 1.34 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.192e-06/1.261, allocations: 0 / 1.34 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.096e-05/1.261, allocations: 4 kB / 1.34 GB, free: 8.68 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.004241/1.265, allocations: 2.483 MB / 1.342 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/1.265, allocations: 9.188 kB / 1.342 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002182/1.265, allocations: 204.5 kB / 1.342 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/1.267, allocations: 373.4 kB / 1.343 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/1.269, allocations: 1.424 MB / 1.344 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.192e-05/1.269, allocations: 111.2 kB / 1.344 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/1.269, allocations: 141 kB / 1.344 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/1.272, allocations: 1.503 MB / 1.346 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/1.272, allocations: 2.625 kB / 1.346 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/1.272, allocations: 59.53 kB / 1.346 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/1.272, allocations: 49.53 kB / 1.346 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/1.274, allocations: 1.144 MB / 1.347 GB, free: 6.637 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.006864/1.28, allocations: 7.183 MB / 1.354 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/1.282, allocations: 0.8174 MB / 1.355 GB, free: 2.508 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007625/1.283, allocations: 444.8 kB / 1.355 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008033/1.283, allocations: 0.7216 MB / 1.356 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/1.283, allocations: 42.44 kB / 1.356 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=74): time 3.817e-06/1.283, allocations: 0 / 1.356 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of matching and sorting (n=74): time 0.006852/1.29, allocations: 2.086 MB / 1.358 GB, free: 1.203 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/1.29, allocations: 62.84 kB / 1.358 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001985/1.292, allocations: 1.31 MB / 1.359 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001109/1.292, allocations: 40.27 kB / 1.359 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004327/1.293, allocations: 0.8027 MB / 1.36 GB, free: 260 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/1.293, allocations: 257.6 kB / 1.36 GB, free: 60 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/1.293, allocations: 168.4 kB / 1.36 GB, free: 15.98 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001253/1.293, allocations: 349 kB / 1.361 GB, free: 15.65 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005619/1.294, allocations: 333.9 kB / 1.361 GB, free: 15.53 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007332/1.295, allocations: 0.5567 MB / 1.362 GB, free: 15.16 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/1.296, allocations: 0.8706 MB / 1.363 GB, free: 14.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.296, allocations: 1.781 kB / 1.363 GB, free: 14.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002472/1.299, allocations: 1.261 MB / 1.364 GB, free: 14.19 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/1.299, allocations: 9.219 kB / 1.364 GB, free: 14.19 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/1.299, allocations: 6.062 kB / 1.364 GB, free: 14.19 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001965/1.301, allocations: 415.5 kB / 1.364 GB, free: 14.09 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000578/1.301, allocations: 150.2 kB / 1.364 GB, free: 14.08 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/1.303, allocations: 2.058 MB / 1.366 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/1.304, allocations: 180.7 kB / 1.366 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.63e-05/1.304, allocations: 37.8 kB / 1.367 GB, free: 12.22 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001176/1.305, allocations: 0.638 MB / 1.367 GB, free: 11.91 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007506/1.306, allocations: 0.5573 MB / 1.368 GB, free: 11.53 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001266/1.308, allocations: 0.8589 MB / 1.369 GB, free: 11.06 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.62e-06/1.308, allocations: 2.094 kB / 1.369 GB, free: 11.06 MB / 1.014 GB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.002463/1.31, allocations: 1.212 MB / 1.37 GB, free: 10.57 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.31, allocations: 5.094 kB / 1.37 GB, free: 10.57 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/1.31, allocations: 5.531 kB / 1.37 GB, free: 10.57 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001501/1.312, allocations: 356 kB / 1.37 GB, free: 10.49 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/1.312, allocations: 156.5 kB / 1.37 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/1.316, allocations: 4.192 MB / 1.374 GB, free: 6.609 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/1.317, allocations: 161.3 kB / 1.374 GB, free: 6.555 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-05/1.317, allocations: 37.95 kB / 1.375 GB, free: 6.547 MB / 1.014 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.0003043/1.317, allocations: 235.7 kB / 1.375 GB, free: 6.332 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003823/1.318, allocations: 154.9 kB / 1.375 GB, free: 6.254 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/1.321, allocations: 1.197 MB / 1.376 GB, free: 5.707 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/1.321, allocations: 12.31 kB / 1.376 GB, free: 5.703 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/1.321, allocations: 0 / 1.376 GB, free: 5.703 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00245/1.323, allocations: 1.285 MB / 1.377 GB, free: 4.797 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00529/1.329, allocations: 2.755 MB / 1.38 GB, free: 2.977 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/1.329, allocations: 6.641 kB / 1.38 GB, free: 2.973 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/1.329, allocations: 98.02 kB / 1.38 GB, free: 2.957 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/1.331, allocations: 357.1 kB / 1.38 GB, free: 2.789 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/1.331, allocations: 17.5 kB / 1.38 GB, free: 2.777 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/1.332, allocations: 2.026 MB / 1.382 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.332, allocations: 5 kB / 1.382 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/1.335, allocations: 1.201 MB / 1.384 GB, free: 216 kB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009885/1.336, allocations: 329.6 kB / 1.384 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004199/1.336, allocations: 27.89 kB / 1.384 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/1.338, allocations: 114 kB / 1.384 GB, free: 15.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/1.338, allocations: 51.25 kB / 1.384 GB, free: 15.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.283e-05/1.338, allocations: 31.42 kB / 1.384 GB, free: 15.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001772/1.34, allocations: 0.8897 MB / 1.385 GB, free: 15.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.8e-07/1.34, allocations: 0 / 1.385 GB, free: 15.34 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00354/1.343, allocations: 0.8984 MB / 1.386 GB, free: 15.15 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.003362/1.347, allocations: 1.999 MB / 1.388 GB, free: 13.79 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003918/1.35, allocations: 1.713 MB / 1.39 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/1.351, allocations: 2.188 kB / 1.39 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001053/1.352, allocations: 472.2 kB / 1.39 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004412/1.356, allocations: 0.7947 MB / 1.391 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02433/1.38, allocations: 12.12 MB / 1.403 GB, free: 1.195 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/1.382, allocations: 1.344 MB / 1.404 GB, free: 15.82 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001624/1.383, allocations: 319.8 kB / 1.404 GB, free: 15.51 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/1.384, allocations: 0.6399 MB / 1.405 GB, free: 14.87 MB / 1.045 GB Notification: Performance of SimCode: time 1.232e-06/1.384, allocations: 0 / 1.405 GB, free: 14.87 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.835/6.22, allocations: 44.55 MB / 1.448 GB, free: 3.031 MB / 1.076 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003465/6.22, allocations: 321 kB / 1.449 GB, free: 2.641 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.806/10.03, allocations: 0 / 1.449 GB, free: 2.641 MB / 1.076 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1)