Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.Coursework.ThermSys_component_models.HeatPump_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatPump_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001427/0.001427, allocations: 198.8 kB / 16.14 MB, free: 6.645 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1904/0.1904, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.91 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2857, allocations: 54.95 MB / 435 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.00234/0.2881, allocations: 1.733 MB / 436.8 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001678/0.2883, allocations: 65.75 kB / 436.8 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.276e-05/0.2883, allocations: 2.469 kB / 436.8 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.81e-05/0.2884, allocations: 7.125 kB / 436.9 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.2885, allocations: 13.59 kB / 436.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.443e-05/0.2885, allocations: 13.75 kB / 436.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.516e-05/0.2886, allocations: 78.66 kB / 437 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.2887, allocations: 40.73 kB / 437 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.874e-05/0.2888, allocations: 29.72 kB / 437 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.108e-05/0.2888, allocations: 31.47 kB / 437.1 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.2889, allocations: 6.312 kB / 437.1 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.588e-05/0.2889, allocations: 3.281 kB / 437.1 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.949e-05/0.2889, allocations: 14.2 kB / 437.1 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.517e-05/0.289, allocations: 36.03 kB / 437.1 MB, free: 38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.757e-05/0.289, allocations: 79.64 kB / 437.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2891, allocations: 3.938 kB / 437.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2891, allocations: 6.531 kB / 437.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2891, allocations: 0 / 437.2 MB, free: 37.96 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003523/0.2894, allocations: 363.3 kB / 437.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2895, allocations: 19.94 kB / 437.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.496e-05/0.2895, allocations: 14.62 kB / 437.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.462e-05/0.2896, allocations: 175.1 kB / 437.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.2896, allocations: 7.031 kB / 437.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.2896, allocations: 9.75 kB / 437.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.2898, allocations: 95.36 kB / 437.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.2898, allocations: 0 / 437.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.2898, allocations: 4 kB / 437.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2898, allocations: 2.906 kB / 437.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.755e-05/0.2899, allocations: 48.2 kB / 437.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004586/0.2904, allocations: 454.5 kB / 438.4 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.73e-05/0.2905, allocations: 55.75 kB / 438.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.2905, allocations: 23.3 kB / 438.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.2906, allocations: 0 / 438.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.2906, allocations: 36.52 kB / 438.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.31e-07/0.2906, allocations: 0 / 438.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001759/0.2908, allocations: 77.84 kB / 438.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.2908, allocations: 62.31 kB / 438.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.916e-05/0.2908, allocations: 105.1 kB / 438.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.783e-06/0.2909, allocations: 25.7 kB / 438.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.2909, allocations: 110.2 kB / 438.9 MB, free: 36.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.143e-05/0.2909, allocations: 15.75 kB / 438.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.2909, allocations: 23.36 kB / 438.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.119e-05/0.291, allocations: 313.6 kB / 439.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.89e-05/0.291, allocations: 23.41 kB / 439.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.235e-05/0.2911, allocations: 30.09 kB / 439.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.039e-05/0.2911, allocations: 55.86 kB / 439.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2911, allocations: 0 / 439.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.735e-05/0.2912, allocations: 90.86 kB / 439.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.2913, allocations: 5.219 kB / 439.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2913, allocations: 6.5 kB / 439.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2913, allocations: 0 / 439.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.621e-05/0.2914, allocations: 18.67 kB / 439.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2914, allocations: 3.938 kB / 439.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.173e-05/0.2914, allocations: 11.12 kB / 439.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.2915, allocations: 7.438 kB / 439.4 MB, free: 35.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 5.044e-05/0.2915, allocations: 125.6 kB / 439.6 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.2915, allocations: 3.906 kB / 439.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.2917, allocations: 83.97 kB / 439.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2917, allocations: 0 / 439.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2917, allocations: 10.88 kB / 439.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2917, allocations: 0 / 439.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.2918, allocations: 181.5 kB / 439.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2918, allocations: 0 / 439.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.121e-05/0.2919, allocations: 19.05 kB / 439.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2919, allocations: 0 / 439.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.2919, allocations: 4 kB / 439.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2919, allocations: 0 / 439.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2919, allocations: 7.938 kB / 439.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.528e-05/0.292, allocations: 165.6 kB / 440 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.2921, allocations: 80.53 kB / 440.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.2921, allocations: 2.812 kB / 440.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.826e-05/0.2921, allocations: 0 / 440.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.2922, allocations: 10.84 kB / 440.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.2922, allocations: 0 / 440.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.362e-05/0.2922, allocations: 88.64 kB / 440.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2922, allocations: 0 / 440.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.2924, allocations: 23.97 kB / 440.2 MB, free: 35.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.782e-05/0.2925, allocations: 98.47 kB / 440.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.2926, allocations: 41.06 kB / 440.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2926, allocations: 0 / 440.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.521e-05/0.2926, allocations: 24.97 kB / 440.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.2929, allocations: 6.578 kB / 440.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003108/0.2932, allocations: 213.5 kB / 440.6 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.2934, allocations: 0.6891 MB / 441.3 MB, free: 34.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.947e-05/0.2934, allocations: 12.95 kB / 441.3 MB, free: 34.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.236e-05/0.2934, allocations: 10.47 kB / 441.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2934, allocations: 0 / 441.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of Templates: time 0.002186/0.2956, allocations: 471.4 kB / 441.8 MB, free: 34.07 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1)