Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.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.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",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.001552/0.001552, allocations: 108 kB / 15.6 MB, free: 132 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.001779/0.001779, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.558/2.558, allocations: 437 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 0.8693 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5839/0.5853, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.2318/0.8172, allocations: 236.4 MB / 1.248 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.5854/1.403, allocations: 17.54 MB / 1.265 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003231/1.406, allocations: 90.53 kB / 1.265 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0103/1.416, allocations: 4.596 MB / 1.27 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01172/1.428, allocations: 3.442 MB / 1.273 GB, free: 1.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007294/1.435, allocations: 2.51 MB / 1.276 GB, free: 1.82 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01093/1.446, allocations: 7.742 MB / 1.283 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002822/1.449, allocations: 1.922 MB / 1.285 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005444/1.455, allocations: 2.639 MB / 1.288 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003553/1.458, allocations: 1.599 MB / 1.289 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001025/1.459, allocations: 203.9 kB / 1.29 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009868/1.469, allocations: 3.594 MB / 1.293 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.00167/1.471, allocations: 0.8813 MB / 1.294 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002838/1.474, allocations: 1.377 MB / 1.295 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009053/1.483, allocations: 4.818 MB / 1.3 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/1.483, allocations: 1.781 kB / 1.3 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.543e-06/1.483, allocations: 0.9688 kB / 1.3 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.548e-05/1.483, allocations: 0 / 1.3 GB, free: 0.8008 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.005773/1.489, allocations: 3.227 MB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/1.489, allocations: 15.83 kB / 1.303 GB, free: 15.15 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002363/1.489, allocations: 197.3 kB / 1.303 GB, free: 15.11 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005774/1.495, allocations: 0.8802 MB / 1.304 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005511/1.5, allocations: 2.678 MB / 1.307 GB, free: 14.38 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004136/1.501, allocations: 161.1 kB / 1.307 GB, free: 14.37 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004062/1.501, allocations: 148 kB / 1.307 GB, free: 14.37 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003386/1.504, allocations: 1.677 MB / 1.309 GB, free: 14.14 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/1.505, allocations: 0 / 1.309 GB, free: 14.14 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/1.505, allocations: 57.91 kB / 1.309 GB, free: 14.14 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.132e-05/1.505, allocations: 49.83 kB / 1.309 GB, free: 14.14 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00357/1.508, allocations: 1.469 MB / 1.31 GB, free: 14.12 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.01206/1.52, allocations: 8.17 MB / 1.318 GB, free: 9.875 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/1.523, allocations: 1.586 MB / 1.32 GB, free: 9.156 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/1.524, allocations: 0.5195 MB / 1.32 GB, free: 9.141 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/1.526, allocations: 0.7747 MB / 1.321 GB, free: 8.383 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001272/1.527, allocations: 0.5421 MB / 1.322 GB, free: 8.324 MB / 1.014 GB Notification: Performance of pre-optimization done (n=82): time 3.997e-06/1.527, allocations: 0 / 1.322 GB, free: 8.324 MB / 1.014 GB Notification: Performance of matching and sorting (n=82): time 0.004473/1.531, allocations: 1.63 MB / 1.323 GB, free: 8.047 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/1.532, allocations: 62.19 kB / 1.323 GB, free: 7.984 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/1.535, allocations: 2.137 MB / 1.325 GB, free: 7.734 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002427/1.535, allocations: 48.02 kB / 1.325 GB, free: 7.703 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000863/1.536, allocations: 1.055 MB / 1.326 GB, free: 7.363 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003155/1.536, allocations: 304.9 kB / 1.327 GB, free: 7.176 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000437/1.537, allocations: 315.3 kB / 1.327 GB, free: 7.145 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.541e-05/1.537, allocations: 308.1 kB / 1.327 GB, free: 6.844 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/1.538, allocations: 0.6262 MB / 1.328 GB, free: 6.82 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/1.54, allocations: 1.017 MB / 1.329 GB, free: 6.395 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002534/1.542, allocations: 1.56 MB / 1.33 GB, free: 5.984 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/1.542, allocations: 2.75 kB / 1.33 GB, free: 5.984 MB / 1.014 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003635/1.546, allocations: 1.915 MB / 1.332 GB, free: 5.766 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.993e-05/1.546, allocations: 39.09 kB / 1.332 GB, free: 5.734 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/1.546, allocations: 11.84 kB / 1.332 GB, free: 5.734 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.142e-05/1.546, allocations: 15.62 kB / 1.332 GB, free: 5.734 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/1.547, allocations: 328.7 kB / 1.333 GB, free: 5.73 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/1.547, allocations: 23.67 kB / 1.333 GB, free: 5.73 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/1.549, allocations: 183.7 kB / 1.333 GB, free: 5.66 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/1.549, allocations: 60.92 kB / 1.333 GB, free: 5.656 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00216/1.551, allocations: 1.115 MB / 1.334 GB, free: 5.559 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00157/1.553, allocations: 1.014 MB / 1.335 GB, free: 5.137 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00259/1.555, allocations: 1.569 MB / 1.337 GB, free: 4.719 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.283e-06/1.555, allocations: 2.812 kB / 1.337 GB, free: 4.719 MB / 1.014 GB Notification: Performance of matching and sorting (n=199) (initialization_lambda0): time 0.003968/1.559, allocations: 1.917 MB / 1.338 GB, free: 4.504 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/1.56, allocations: 38.55 kB / 1.338 GB, free: 4.473 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/1.56, allocations: 11.22 kB / 1.338 GB, free: 4.473 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/1.56, allocations: 15.91 kB / 1.338 GB, free: 4.473 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/1.561, allocations: 326.6 kB / 1.339 GB, free: 4.469 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-05/1.561, allocations: 25.27 kB / 1.339 GB, free: 4.465 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/1.563, allocations: 167.9 kB / 1.339 GB, free: 4.41 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/1.563, allocations: 61.94 kB / 1.339 GB, free: 4.41 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000426/1.564, allocations: 263.9 kB / 1.339 GB, free: 4.219 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/1.564, allocations: 216.9 kB / 1.34 GB, free: 4.102 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/1.568, allocations: 1.202 MB / 1.341 GB, free: 3.992 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/1.568, allocations: 7.594 kB / 1.341 GB, free: 3.992 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/1.568, allocations: 7.25 kB / 1.341 GB, free: 3.988 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002331/1.57, allocations: 1.241 MB / 1.342 GB, free: 3.508 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 postOpt removeSimpleEquations (simulation): time 0.008132/1.578, allocations: 3.114 MB / 1.345 GB, free: 2.465 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/1.578, allocations: 0 / 1.345 GB, free: 2.465 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/1.579, allocations: 192.5 kB / 1.345 GB, free: 2.457 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/1.579, allocations: 44.02 kB / 1.345 GB, free: 2.441 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-05/1.58, allocations: 23.53 kB / 1.345 GB, free: 2.43 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/1.581, allocations: 1.537 MB / 1.347 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.581, allocations: 2.781 kB / 1.347 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004264/1.585, allocations: 1.78 MB / 1.348 GB, free: 152 kB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/1.586, allocations: 394.9 kB / 1.349 GB, free: 15.87 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006186/1.587, allocations: 24.03 kB / 1.349 GB, free: 15.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/1.588, allocations: 73.94 kB / 1.349 GB, free: 15.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/1.589, allocations: 55.84 kB / 1.349 GB, free: 15.83 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.234e-05/1.589, allocations: 40.08 kB / 1.349 GB, free: 15.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002765/1.592, allocations: 1.424 MB / 1.35 GB, free: 15.28 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.71e-07/1.592, allocations: 4 kB / 1.35 GB, free: 15.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004236/1.596, allocations: 1.099 MB / 1.351 GB, free: 15.06 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006369/1.602, allocations: 2.953 MB / 1.354 GB, free: 13.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005431/1.608, allocations: 2.443 MB / 1.357 GB, free: 12.76 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.608, allocations: 3.938 kB / 1.357 GB, free: 12.76 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001406/1.609, allocations: 0.6122 MB / 1.357 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00503/1.614, allocations: 1.02 MB / 1.358 GB, free: 11.9 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03394/1.648, allocations: 17.2 MB / 1.375 GB, free: 11.03 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001784/1.65, allocations: 1.656 MB / 1.377 GB, free: 9.344 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.002611/1.653, allocations: 0.5558 MB / 1.377 GB, free: 8.785 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/1.654, allocations: 0.9483 MB / 1.378 GB, free: 7.836 MB / 1.045 GB Notification: Performance of SimCode: time 1.002e-06/1.654, allocations: 0 / 1.378 GB, free: 7.836 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/1.76, allocations: 55.65 MB / 1.433 GB, free: 0.9727 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/13.06, allocations: 2.812 kB / 1.433 GB, free: 0.9727 MB / 1.092 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)