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: translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 106.6 kB / 16.27 MB, free: 6.414 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.002001/0.002001, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.818/2.818, allocations: 482.4 MB / 0.7553 GB, free: 7.004 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 67.02 kB / 0.9245 GB, free: 0 / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8413/0.8433, allocations: 162.2 MB / 1.083 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.2904/1.134, allocations: 236.5 MB / 1.314 GB, free: 1.863 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.02958/1.163, allocations: 17.56 MB / 1.331 GB, free: 272 kB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003653/1.167, allocations: 91.5 kB / 1.331 GB, free: 180 kB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.01058/1.178, allocations: 4.636 MB / 1.336 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.01011/1.188, allocations: 3.409 MB / 1.339 GB, free: 8.105 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00702/1.195, allocations: 2.499 MB / 1.341 GB, free: 5.617 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.01154/1.206, allocations: 7.232 MB / 1.348 GB, free: 14.37 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003777/1.21, allocations: 1.891 MB / 1.35 GB, free: 12.43 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006968/1.217, allocations: 2.853 MB / 1.353 GB, free: 9.562 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003843/1.221, allocations: 1.569 MB / 1.355 GB, free: 7.996 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0008382/1.222, allocations: 200 kB / 1.355 GB, free: 7.801 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007997/1.23, allocations: 3.571 MB / 1.358 GB, free: 4.223 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.001533/1.232, allocations: 0.8685 MB / 1.359 GB, free: 3.352 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.003094/1.235, allocations: 1.364 MB / 1.36 GB, free: 1.98 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.01023/1.245, allocations: 4.787 MB / 1.365 GB, free: 13.18 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/1.245, allocations: 4 kB / 1.365 GB, free: 13.18 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.813e-06/1.245, allocations: 0 / 1.365 GB, free: 13.18 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0001364/1.245, allocations: 0 / 1.365 GB, free: 13.18 MB / 1.092 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.008303/1.253, allocations: 3.202 MB / 1.368 GB, free: 9.895 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/1.253, allocations: 8.031 kB / 1.368 GB, free: 9.887 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006036/1.259, allocations: 0.8824 MB / 1.369 GB, free: 9 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006067/1.266, allocations: 2.646 MB / 1.372 GB, free: 6.281 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004757/1.266, allocations: 166.5 kB / 1.372 GB, free: 6.117 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005145/1.267, allocations: 143.9 kB / 1.372 GB, free: 5.977 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004486/1.271, allocations: 1.671 MB / 1.374 GB, free: 4.227 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.036e-05/1.271, allocations: 4 kB / 1.374 GB, free: 4.223 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002065/1.271, allocations: 52 kB / 1.374 GB, free: 4.172 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.634e-05/1.271, allocations: 54.48 kB / 1.374 GB, free: 4.117 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004106/1.276, allocations: 1.454 MB / 1.375 GB, free: 2.656 MB / 1.092 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.01409/1.29, allocations: 8.184 MB / 1.383 GB, free: 9.863 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003332/1.293, allocations: 1.595 MB / 1.385 GB, free: 8.133 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/1.294, allocations: 0.524 MB / 1.385 GB, free: 7.609 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001446/1.296, allocations: 0.7708 MB / 1.386 GB, free: 6.691 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001433/1.297, allocations: 0.5547 MB / 1.387 GB, free: 6.125 MB / 1.107 GB Notification: Performance of pre-optimization done (n=80): time 3.757e-06/1.297, allocations: 0 / 1.387 GB, free: 6.125 MB / 1.107 GB Notification: Performance of matching and sorting (n=80): time 0.005007/1.302, allocations: 1.633 MB / 1.388 GB, free: 4.461 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/1.302, allocations: 64 kB / 1.388 GB, free: 4.387 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004282/1.307, allocations: 2.131 MB / 1.39 GB, free: 2.23 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001999/1.307, allocations: 45.7 kB / 1.39 GB, free: 2.18 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001288/1.308, allocations: 1.046 MB / 1.391 GB, free: 1.117 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004001/1.309, allocations: 287.9 kB / 1.392 GB, free: 0.832 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000623/1.309, allocations: 314.6 kB / 1.392 GB, free: 0.5195 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.309, allocations: 309.1 kB / 1.392 GB, free: 220 kB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/1.311, allocations: 0.6273 MB / 1.393 GB, free: 15.58 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/1.313, allocations: 1.022 MB / 1.394 GB, free: 14.4 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003137/1.316, allocations: 1.555 MB / 1.395 GB, free: 12.71 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/1.316, allocations: 8 kB / 1.395 GB, free: 12.7 MB / 1.123 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004353/1.32, allocations: 1.902 MB / 1.397 GB, free: 10.79 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 5.788e-05/1.321, allocations: 37.73 kB / 1.397 GB, free: 10.75 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/1.321, allocations: 12 kB / 1.397 GB, free: 10.73 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.944e-05/1.321, allocations: 16 kB / 1.397 GB, free: 10.72 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/1.322, allocations: 319.5 kB / 1.398 GB, free: 10.41 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.451e-05/1.322, allocations: 19.92 kB / 1.398 GB, free: 10.39 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/1.324, allocations: 194.9 kB / 1.398 GB, free: 10.2 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/1.324, allocations: 63.97 kB / 1.398 GB, free: 10.13 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002496/1.326, allocations: 1.116 MB / 1.399 GB, free: 9.016 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001823/1.328, allocations: 1.01 MB / 1.4 GB, free: 7.855 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003061/1.331, allocations: 1.559 MB / 1.401 GB, free: 6.168 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.349e-05/1.331, allocations: 4 kB / 1.401 GB, free: 6.164 MB / 1.123 GB Notification: Performance of matching and sorting (n=196) (initialization_lambda0): time 0.004253/1.336, allocations: 1.908 MB / 1.403 GB, free: 4.238 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/1.336, allocations: 38.62 kB / 1.403 GB, free: 4.195 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/1.336, allocations: 12 kB / 1.403 GB, free: 4.184 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/1.336, allocations: 20 kB / 1.403 GB, free: 4.164 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/1.337, allocations: 311.5 kB / 1.404 GB, free: 3.859 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.967e-05/1.337, allocations: 27.92 kB / 1.404 GB, free: 3.832 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/1.339, allocations: 167.2 kB / 1.404 GB, free: 3.668 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/1.339, allocations: 59.98 kB / 1.404 GB, free: 3.609 MB / 1.123 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.0003932/1.34, allocations: 263 kB / 1.404 GB, free: 3.348 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006021/1.34, allocations: 209.3 kB / 1.404 GB, free: 3.141 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/1.344, allocations: 1.188 MB / 1.406 GB, free: 1.938 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/1.344, allocations: 12 kB / 1.406 GB, free: 1.926 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.191e-05/1.344, allocations: 7.938 kB / 1.406 GB, free: 1.918 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002628/1.346, allocations: 1.242 MB / 1.407 GB, free: 0.5859 MB / 1.123 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.007187/1.353, allocations: 3.114 MB / 1.41 GB, free: 13.35 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/1.353, allocations: 4 kB / 1.41 GB, free: 13.34 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/1.354, allocations: 199.8 kB / 1.41 GB, free: 13.15 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002457/1.355, allocations: 44.77 kB / 1.41 GB, free: 13.1 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-05/1.355, allocations: 23.98 kB / 1.41 GB, free: 13.08 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/1.356, allocations: 1.527 MB / 1.412 GB, free: 11.41 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.356, allocations: 0 / 1.412 GB, free: 11.41 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004265/1.361, allocations: 1.756 MB / 1.413 GB, free: 9.625 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009913/1.362, allocations: 398 kB / 1.414 GB, free: 9.215 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005026/1.362, allocations: 20 kB / 1.414 GB, free: 9.195 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/1.364, allocations: 79.86 kB / 1.414 GB, free: 9.117 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/1.364, allocations: 60.52 kB / 1.414 GB, free: 9.059 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.789e-05/1.364, allocations: 27.98 kB / 1.414 GB, free: 9.031 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.002867/1.367, allocations: 1.417 MB / 1.415 GB, free: 7.602 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.51e-07/1.367, allocations: 0 / 1.415 GB, free: 7.602 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.003618/1.37, allocations: 1.091 MB / 1.416 GB, free: 6.508 MB / 1.139 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.002439/1.373, allocations: 0.7296 MB / 1.417 GB, free: 5.91 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.005804/1.379, allocations: 2.41 MB / 1.419 GB, free: 3.477 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/1.379, allocations: 0 / 1.419 GB, free: 3.477 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.001542/1.38, allocations: 0.6122 MB / 1.42 GB, free: 2.848 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005195/1.385, allocations: 1.023 MB / 1.421 GB, free: 1.852 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/1.396, allocations: 4.357 MB / 1.425 GB, free: 13.44 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/1.398, allocations: 1.644 MB / 1.427 GB, free: 11.77 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007983/1.399, allocations: 171.4 kB / 1.427 GB, free: 11.6 MB / 1.154 GB Notification: Performance of SimCode: time 2.786e-06/1.399, allocations: 0 / 1.427 GB, free: 11.6 MB / 1.154 GB Notification: Performance of Templates: time 0.06733/1.466, allocations: 40.53 MB / 1.467 GB, free: 3.285 MB / 1.186 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (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 & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches