Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_latest_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.004785/0.004785, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001382/0.001382, allocations: 189.9 kB / 16.67 MB, free: 5.934 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.454/2.454, allocations: 482.6 MB / 0.7551 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 73.19 kB / 1.083 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2662, allocations: 162.3 MB / 1.242 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.2309/0.4971, allocations: 236.5 MB / 1.473 GB, free: 11.48 MB / 1.201 GB Notification: Performance of NFInst.instExpressions: time 0.02385/0.521, allocations: 17.55 MB / 1.49 GB, free: 9.891 MB / 1.217 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.5232, allocations: 91.5 kB / 1.49 GB, free: 9.801 MB / 1.217 GB Notification: Performance of NFTyping.typeComponents: time 0.004782/0.528, allocations: 2.124 MB / 1.492 GB, free: 7.672 MB / 1.217 GB Notification: Performance of NFTyping.typeBindings: time 0.007268/0.5353, allocations: 3.578 MB / 1.496 GB, free: 4.086 MB / 1.217 GB Notification: Performance of NFTyping.typeClassSections: time 0.005022/0.5403, allocations: 2.572 MB / 1.498 GB, free: 1.523 MB / 1.217 GB Notification: Performance of NFFlatten.flatten: time 0.008722/0.5491, allocations: 7.615 MB / 1.506 GB, free: 9.898 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.5513, allocations: 1.934 MB / 1.507 GB, free: 7.914 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004461/0.5557, allocations: 2.892 MB / 1.51 GB, free: 5.012 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002232/0.558, allocations: 1.599 MB / 1.512 GB, free: 3.41 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.0002987/0.5583, allocations: 208 kB / 1.512 GB, free: 3.207 MB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005411/0.5637, allocations: 3.594 MB / 1.516 GB, free: 15.61 MB / 1.248 GB Notification: Performance of NFScalarize.scalarize: time 0.0007825/0.5645, allocations: 0.8763 MB / 1.516 GB, free: 14.73 MB / 1.248 GB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.5658, allocations: 1.372 MB / 1.518 GB, free: 13.35 MB / 1.248 GB Notification: Performance of NFConvertDAE.convert: time 0.005575/0.5713, allocations: 4.905 MB / 1.523 GB, free: 8.426 MB / 1.248 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.5713, allocations: 0 / 1.523 GB, free: 8.426 MB / 1.248 GB Notification: Performance of FrontEnd: time 1.002e-06/0.5714, allocations: 0 / 1.523 GB, free: 8.426 MB / 1.248 GB Notification: Performance of Transformations before backend: time 2.569e-05/0.5714, allocations: 4 kB / 1.523 GB, free: 8.422 MB / 1.248 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 334 * Number of variables: 334 Notification: Performance of Generate backend data structure: time 0.004707/0.5761, allocations: 3.335 MB / 1.526 GB, free: 5.004 MB / 1.248 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.5761, allocations: 8.031 kB / 1.526 GB, free: 4.996 MB / 1.248 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002165/0.5764, allocations: 198.4 kB / 1.526 GB, free: 4.793 MB / 1.248 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004728/0.5811, allocations: 0.8841 MB / 1.527 GB, free: 3.906 MB / 1.248 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004025/0.5851, allocations: 2.796 MB / 1.53 GB, free: 1.039 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.5852, allocations: 106.6 kB / 1.53 GB, free: 0.9336 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001989/0.5854, allocations: 144 kB / 1.53 GB, free: 0.793 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002923/0.5884, allocations: 1.659 MB / 1.531 GB, free: 15.05 MB / 1.264 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.5884, allocations: 7.922 kB / 1.531 GB, free: 15.05 MB / 1.264 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.5885, allocations: 60 kB / 1.532 GB, free: 14.99 MB / 1.264 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.072e-05/0.5886, allocations: 50.47 kB / 1.532 GB, free: 14.94 MB / 1.264 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/0.5918, allocations: 1.438 MB / 1.533 GB, free: 13.49 MB / 1.264 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.009346/0.6012, allocations: 8.135 MB / 1.541 GB, free: 4.746 MB / 1.264 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.6039, allocations: 1.578 MB / 1.542 GB, free: 3.031 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.605, allocations: 0.514 MB / 1.543 GB, free: 2.516 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001226/0.6062, allocations: 0.7747 MB / 1.544 GB, free: 1.594 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.6074, allocations: 0.5353 MB / 1.544 GB, free: 1.047 MB / 1.264 GB Notification: Performance of pre-optimization done (n=80): time 2.264e-06/0.6074, allocations: 0 / 1.544 GB, free: 1.047 MB / 1.264 GB Notification: Performance of matching and sorting (n=80): time 0.4686/1.076, allocations: 1.618 MB / 1.546 GB, free: 301.3 MB / 1.264 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/1.076, allocations: 65.72 kB / 1.546 GB, free: 301.2 MB / 1.264 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/1.079, allocations: 2.137 MB / 1.548 GB, free: 301 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 7.813e-05/1.079, allocations: 47.86 kB / 1.548 GB, free: 301 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006598/1.079, allocations: 1.07 MB / 1.549 GB, free: 300.6 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.000193/1.08, allocations: 299 kB / 1.549 GB, free: 300.4 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003935/1.08, allocations: 323 kB / 1.55 GB, free: 300.2 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 2.958e-05/1.08, allocations: 302.3 kB / 1.55 GB, free: 299.9 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/1.081, allocations: 0.6163 MB / 1.551 GB, free: 299.7 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/1.083, allocations: 1.011 MB / 1.552 GB, free: 299.1 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002588/1.085, allocations: 1.546 MB / 1.553 GB, free: 298.2 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/1.085, allocations: 3.469 kB / 1.553 GB, free: 298.2 MB / 1.264 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.002987/1.088, allocations: 1.907 MB / 1.555 GB, free: 297.5 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/1.088, allocations: 38.84 kB / 1.555 GB, free: 297.4 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/1.088, allocations: 10.62 kB / 1.555 GB, free: 297.4 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/1.089, allocations: 15.03 kB / 1.555 GB, free: 297.4 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/1.09, allocations: 320.6 kB / 1.555 GB, free: 297.4 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/1.09, allocations: 20.89 kB / 1.555 GB, free: 297.4 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/1.091, allocations: 186 kB / 1.555 GB, free: 297.3 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.185e-05/1.091, allocations: 56.66 kB / 1.556 GB, free: 297.3 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001612/1.093, allocations: 1.105 MB / 1.557 GB, free: 296.9 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001248/1.094, allocations: 1.007 MB / 1.558 GB, free: 296.2 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00217/1.096, allocations: 1.553 MB / 1.559 GB, free: 295.3 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.591e-06/1.096, allocations: 3.281 kB / 1.559 GB, free: 295.3 MB / 1.264 GB Notification: Performance of matching and sorting (n=196) (initialization_lambda0): time 0.002917/1.099, allocations: 1.906 MB / 1.561 GB, free: 294.6 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/1.099, allocations: 39.41 kB / 1.561 GB, free: 294.5 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/1.099, allocations: 13.64 kB / 1.561 GB, free: 294.5 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/1.099, allocations: 19.48 kB / 1.561 GB, free: 294.5 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/1.1, allocations: 312.3 kB / 1.561 GB, free: 294.5 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/1.1, allocations: 23.47 kB / 1.561 GB, free: 294.5 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/1.101, allocations: 170.4 kB / 1.562 GB, free: 294.5 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.824e-05/1.101, allocations: 63.91 kB / 1.562 GB, free: 294.4 MB / 1.264 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 (162): * Single equations (assignments): 159 * 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.000209/1.102, allocations: 259 kB / 1.562 GB, free: 294.2 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/1.102, allocations: 220.3 kB / 1.562 GB, free: 294.1 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/1.104, allocations: 1.175 MB / 1.563 GB, free: 293.7 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.986e-06/1.104, allocations: 8.359 kB / 1.563 GB, free: 293.7 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.104, allocations: 8.938 kB / 1.563 GB, free: 293.7 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001974/1.106, allocations: 1.227 MB / 1.564 GB, free: 292.9 MB / 1.264 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.004435/1.111, allocations: 3.094 MB / 1.567 GB, free: 291.5 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.111, allocations: 1.188 kB / 1.567 GB, free: 291.5 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000851/1.112, allocations: 192.4 kB / 1.568 GB, free: 291.4 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/1.112, allocations: 42.17 kB / 1.568 GB, free: 291.4 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.845e-05/1.112, allocations: 27.83 kB / 1.568 GB, free: 291.4 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008001/1.113, allocations: 1.534 MB / 1.569 GB, free: 289.9 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.113, allocations: 9.969 kB / 1.569 GB, free: 289.9 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/1.116, allocations: 1.744 MB / 1.571 GB, free: 289.2 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/1.116, allocations: 409.2 kB / 1.571 GB, free: 288.9 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/1.116, allocations: 18.5 kB / 1.571 GB, free: 288.9 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009511/1.117, allocations: 75.52 kB / 1.571 GB, free: 288.9 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/1.118, allocations: 60.2 kB / 1.571 GB, free: 288.9 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.499e-05/1.118, allocations: 40.88 kB / 1.571 GB, free: 288.9 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.001601/1.119, allocations: 1.426 MB / 1.573 GB, free: 288.3 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.7e-07/1.119, allocations: 0 / 1.573 GB, free: 288.3 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.001972/1.121, allocations: 1.095 MB / 1.574 GB, free: 288.1 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,mov.motSpe.y,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 (80): * Single equations (assignments): 77 * 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.00482/1.126, allocations: 2.929 MB / 1.577 GB, free: 286.7 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.003453/1.129, allocations: 2.286 MB / 1.579 GB, free: 285.9 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.129, allocations: 0 / 1.579 GB, free: 285.9 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.001031/1.131, allocations: 0.6146 MB / 1.58 GB, free: 285.6 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003194/1.134, allocations: 1.028 MB / 1.581 GB, free: 285.3 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/1.151, allocations: 15.51 MB / 1.596 GB, free: 273.8 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000729/1.151, allocations: 1.651 MB / 1.597 GB, free: 272.1 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.001384/1.153, allocations: 0.5363 MB / 1.598 GB, free: 271.6 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008154/1.154, allocations: 0.9405 MB / 1.599 GB, free: 270.6 MB / 1.264 GB Notification: Performance of SimCode: time 2.4e-07/1.154, allocations: 0 / 1.599 GB, free: 270.6 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.86/4.013, allocations: 55.81 MB / 1.653 GB, free: 215.5 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.17/37.19, allocations: 5.312 kB / 1.653 GB, free: 215.5 MB / 1.264 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)