Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Thermal.Air.MAvolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.ProcessComponents.Thermal.Air.MAvolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.Air.MAvolume") translateModel(AES.ProcessComponents.Thermal.Air.MAvolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.Air.MAvolume") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.091/0.091, allocations: 21.61 MB / 36.56 MB, free: 1.105 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009065/0.0009065, allocations: 182.4 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 223.2 MB / 272.1 MB, free: 1.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008266/0.0008266, allocations: 96.06 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002622, allocations: 8 kB / 395 MB, free: 48.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07608/0.07635, allocations: 55.82 MB / 450.9 MB, free: 8.629 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2596/0.336, allocations: 80.97 MB / 0.5194 GB, free: 11.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.3362, allocations: 72.56 kB / 0.5194 GB, free: 11.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005641/0.3418, allocations: 2.562 MB / 0.5219 GB, free: 11.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3419, allocations: 0 / 0.5219 GB, free: 11.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.3419, allocations: 3.75 kB / 0.5219 GB, free: 11.17 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0004336/0.3423, allocations: 431.9 kB / 0.5224 GB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.3424, allocations: 7.531 kB / 0.5224 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.3424, allocations: 16.22 kB / 0.5224 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.225e-05/0.3425, allocations: 177.8 kB / 0.5225 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.3425, allocations: 17.97 kB / 0.5226 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.3425, allocations: 17.72 kB / 0.5226 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.3427, allocations: 152.5 kB / 0.5227 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.3428, allocations: 0 / 0.5227 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.3428, allocations: 10.09 kB / 0.5227 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3428, allocations: 11.73 kB / 0.5227 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001657/0.343, allocations: 126.9 kB / 0.5229 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007287/0.3437, allocations: 0.4948 MB / 0.5233 GB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.3441, allocations: 193.8 kB / 0.5235 GB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3441, allocations: 192 / 0.5235 GB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.3441, allocations: 36.44 kB / 0.5236 GB, free: 10.15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.002e-06/0.3441, allocations: 0 / 0.5236 GB, free: 10.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.003955/0.3481, allocations: 1.439 MB / 0.525 GB, free: 9.695 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.834e-05/0.3481, allocations: 55.25 kB / 0.525 GB, free: 9.633 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.382e-05/0.3482, allocations: 98.64 kB / 0.5251 GB, free: 9.543 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.3482, allocations: 36.86 kB / 0.5252 GB, free: 9.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.831e-05/0.3482, allocations: 117.1 kB / 0.5253 GB, free: 9.406 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.802e-05/0.3483, allocations: 111 kB / 0.5254 GB, free: 9.336 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.3483, allocations: 15.31 kB / 0.5254 GB, free: 9.328 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/0.3483, allocations: 330.4 kB / 0.5257 GB, free: 9.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.3484, allocations: 80.62 kB / 0.5258 GB, free: 9.012 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.3486, allocations: 122.8 kB / 0.5259 GB, free: 8.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.3487, allocations: 97.28 kB / 0.526 GB, free: 8.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3487, allocations: 0 / 0.526 GB, free: 8.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001062/0.3498, allocations: 421.3 kB / 0.5264 GB, free: 8.898 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.3498, allocations: 7.875 kB / 0.5264 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3498, allocations: 0 / 0.5264 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009496/0.3508, allocations: 168.1 kB / 0.5266 GB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.3518, allocations: 152.1 kB / 0.5267 GB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003304/0.3552, allocations: 4.415 MB / 0.531 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.3554, allocations: 7.344 kB / 0.531 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.3554, allocations: 11.16 kB / 0.531 GB, free: 4.883 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: T:VARIABLE(min = max(0.0, max(0.0, 0.0)) start = Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real p:VARIABLE(min = max(0.0, max(0.0, max(0.0, 0.0))) start = pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002144/0.3556, allocations: 155.7 kB / 0.5312 GB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.731e-05/0.3557, allocations: 11.62 kB / 0.5312 GB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.357, allocations: 481.6 kB / 0.5317 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.357, allocations: 3.844 kB / 0.5317 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.357, allocations: 0 / 0.5317 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.357, allocations: 3.781 kB / 0.5317 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.3588, allocations: 0.8507 MB / 0.5325 GB, free: 20.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3588, allocations: 0.625 kB / 0.5325 GB, free: 20.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008954/0.3597, allocations: 136.2 kB / 0.5326 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/0.3617, allocations: 317.7 kB / 0.5329 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.3617, allocations: 15.55 kB / 0.5329 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004169/0.3659, allocations: 4.641 MB / 0.5375 GB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3659, allocations: 4 kB / 0.5375 GB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3673, allocations: 0.6773 MB / 0.5381 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.3673, allocations: 92.52 kB / 0.5382 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.3674, allocations: 3.688 kB / 0.5382 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.3676, allocations: 18.94 kB / 0.5382 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/0.3676, allocations: 34.53 kB / 0.5383 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.3677, allocations: 7.656 kB / 0.5383 GB, free: 15.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.085e-05/0.3677, allocations: 89.89 kB / 0.5384 GB, free: 15.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3677, allocations: 0 / 0.5384 GB, free: 15.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000434/0.3681, allocations: 77.69 kB / 0.5384 GB, free: 15.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (Ma,p,T) * 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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000117/0.3683, allocations: 108.2 kB / 0.5385 GB, free: 15.22 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Air/MAvolume.mo:13:3-13:61:writable] Warning: Variable $DER.p has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.001449/0.3697, allocations: 0.5782 MB / 0.5391 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3697, allocations: 0 / 0.5391 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.3709, allocations: 498 kB / 0.5396 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.3711, allocations: 29.83 kB / 0.5396 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008812/0.372, allocations: 0.7754 MB / 0.5404 GB, free: 14.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.3723, allocations: 0.7388 MB / 0.5411 GB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.3724, allocations: 21.55 kB / 0.5411 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/0.3724, allocations: 18.88 kB / 0.5411 GB, free: 13.32 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3725, allocations: 0 / 0.5411 GB, free: 13.32 MB / 378.7 MB Notification: Performance of Templates: time 0.005068/0.3775, allocations: 3.444 MB / 0.5445 GB, free: 11.62 MB / 378.7 MB make -j1 -f AES_AES.ProcessComponents.Thermal.Air.MAvolume.makefile (rm -f AES_AES.ProcessComponents.Thermal.Air.MAvolume.pipe ; mkfifo AES_AES.ProcessComponents.Thermal.Air.MAvolume.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Thermal.Air.MAvolume.pipe >> ../files/AES_AES.ProcessComponents.Thermal.Air.MAvolume.sim & ./AES_AES.ProcessComponents.Thermal.Air.MAvolume -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Thermal.Air.MAvolume.pipe 2>&1)