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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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: "" <> 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.0008993/0.0008991, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.00093/0.0009302, allocations: 177.3 kB / 15.94 MB, free: 228 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.275/1.275, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.408/2.408, allocations: 409.2 MB / 0.6838 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003293, allocations: 8 kB / 0.8375 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6565/0.6568, allocations: 146.8 MB / 0.9809 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.1855/0.8424, allocations: 209.9 MB / 1.186 GB, free: 3.863 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01918/0.8616, allocations: 15.86 MB / 1.201 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.8639, allocations: 63.56 kB / 1.201 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.003024/0.8669, allocations: 0.9952 MB / 1.202 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.8785, allocations: 3.275 MB / 1.206 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005204/0.8837, allocations: 1.825 MB / 1.207 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.005547/0.8893, allocations: 3.032 MB / 1.21 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001901/0.8912, allocations: 1.329 MB / 1.212 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003054/0.8942, allocations: 1.561 MB / 1.213 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.8954, allocations: 0.9762 MB / 1.214 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.8956, allocations: 68 kB / 1.214 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003095/0.8987, allocations: 1.303 MB / 1.215 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004143/0.8991, allocations: 434.5 kB / 1.216 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004587/0.8996, allocations: 432.7 kB / 1.216 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002683/0.9023, allocations: 2.443 MB / 1.219 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.9023, allocations: 0 / 1.219 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9023, allocations: 0 / 1.219 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.643e-05/0.9023, allocations: 0 / 1.219 GB, free: 2.219 MB / 0.9669 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.00344/0.9058, allocations: 2.078 MB / 1.221 GB, free: 88 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.9058, allocations: 8.031 kB / 1.221 GB, free: 80 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/0.906, allocations: 202.8 kB / 1.221 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.9075, allocations: 381.1 kB / 1.221 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.9096, allocations: 1.337 MB / 1.223 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.859e-05/0.9097, allocations: 106.7 kB / 1.223 GB, free: 14 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.9098, allocations: 140 kB / 1.223 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.912, allocations: 1.487 MB / 1.224 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.912, allocations: 11.88 kB / 1.224 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.9121, allocations: 56 kB / 1.224 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.232e-05/0.9122, allocations: 58.61 kB / 1.224 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/0.9141, allocations: 1.15 MB / 1.225 GB, free: 11.03 MB / 0.9825 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.0071/0.9212, allocations: 7.301 MB / 1.233 GB, free: 3.133 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.9225, allocations: 0.8649 MB / 1.233 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006187/0.9232, allocations: 0.55 MB / 1.234 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.9232, allocations: 43.22 kB / 1.234 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=74): time 2.354e-06/0.9232, allocations: 0 / 1.234 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of matching and sorting (n=74): time 0.006474/0.9297, allocations: 2.213 MB / 1.236 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.9297, allocations: 60.06 kB / 1.236 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.9312, allocations: 1.314 MB / 1.238 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.33e-05/0.9313, allocations: 41.7 kB / 1.238 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005207/0.9319, allocations: 0.7986 MB / 1.238 GB, free: 13 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.9321, allocations: 260.3 kB / 1.239 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.9321, allocations: 16 kB / 1.239 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.9322, allocations: 341.9 kB / 1.239 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005408/0.9328, allocations: 329.8 kB / 1.239 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007018/0.9335, allocations: 0.5716 MB / 1.24 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006477/0.9341, allocations: 426.6 kB / 1.24 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.9342, allocations: 0 / 1.24 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002213/0.9364, allocations: 1.275 MB / 1.241 GB, free: 9.691 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000573/0.937, allocations: 1.972 MB / 1.243 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.937, allocations: 4 kB / 1.243 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/0.9388, allocations: 418.2 kB / 1.244 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005946/0.9394, allocations: 159.7 kB / 1.244 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.9408, allocations: 2.057 MB / 1.246 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.942, allocations: 178.9 kB / 1.246 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.26e-05/0.9421, allocations: 39.98 kB / 1.246 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.9421, allocations: 4 kB / 1.246 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001737/0.9439, allocations: 1.068 MB / 1.247 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.9439, allocations: 8.062 kB / 1.247 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/0.9452, allocations: 376.8 kB / 1.248 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005883/0.9458, allocations: 155.8 kB / 1.248 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4736/1.419, allocations: 3.875 MB / 1.252 GB, free: 264.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/1.421, allocations: 177.4 kB / 1.252 GB, free: 264.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/1.421, allocations: 37.39 kB / 1.252 GB, free: 264.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 21,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008514/1.422, allocations: 478.6 kB / 1.252 GB, free: 263.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000398/1.422, allocations: 152.7 kB / 1.252 GB, free: 263.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/1.426, allocations: 1.24 MB / 1.254 GB, free: 263.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/1.426, allocations: 11.45 kB / 1.254 GB, free: 263.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.426, allocations: 1.359 kB / 1.254 GB, free: 263.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002398/1.428, allocations: 1.316 MB / 1.255 GB, free: 263.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/1.433, allocations: 2.747 MB / 1.258 GB, free: 261.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/1.433, allocations: 3.688 kB / 1.258 GB, free: 261.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/1.433, allocations: 100.8 kB / 1.258 GB, free: 261.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/1.435, allocations: 372.5 kB / 1.258 GB, free: 261.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-05/1.435, allocations: 16.39 kB / 1.258 GB, free: 261.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/1.436, allocations: 2.047 MB / 1.26 GB, free: 260.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/1.436, allocations: 4.875 kB / 1.26 GB, free: 260.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/1.438, allocations: 1.402 MB / 1.261 GB, free: 259.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006583/1.439, allocations: 350.3 kB / 1.262 GB, free: 259 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/1.439, allocations: 14.61 kB / 1.262 GB, free: 259 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009973/1.44, allocations: 117.7 kB / 1.262 GB, free: 259 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/1.44, allocations: 55.98 kB / 1.262 GB, free: 258.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.135e-05/1.44, allocations: 29.78 kB / 1.262 GB, free: 258.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001432/1.442, allocations: 0.893 MB / 1.263 GB, free: 258.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.442, allocations: 0 / 1.263 GB, free: 258.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00321/1.445, allocations: 0.9153 MB / 1.264 GB, free: 258.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 21,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002946/1.448, allocations: 2.91 MB / 1.267 GB, free: 256.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003413/1.451, allocations: 1.676 MB / 1.268 GB, free: 255.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/1.452, allocations: 3.875 kB / 1.268 GB, free: 255.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008585/1.452, allocations: 482.1 kB / 1.269 GB, free: 255.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/1.455, allocations: 0.7771 MB / 1.269 GB, free: 255.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004402/1.46, allocations: 7.345 MB / 1.277 GB, free: 249.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/1.46, allocations: 1.38 MB / 1.278 GB, free: 248.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001039/1.461, allocations: 338.7 kB / 1.278 GB, free: 248.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/1.462, allocations: 0.6392 MB / 1.279 GB, free: 248.4 MB / 0.9981 GB Notification: Performance of SimCode: time 8.22e-07/1.462, allocations: 0 / 1.279 GB, free: 248.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.875/5.337, allocations: 43.96 MB / 1.322 GB, free: 206.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/5.337, allocations: 282.6 kB / 1.322 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.868/9.206, allocations: 0 / 1.322 GB, free: 206.6 MB / 0.9981 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat does not exist to compare? outputFormat=mat