Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [/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.09346/0.09346, allocations: 21.61 MB / 37.4 MB, free: 0.7539 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 192.4 kB / 43.63 MB, free: 3.562 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.1 MB / 254.8 MB, free: 14.26 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008685/0.0008685, allocations: 100.2 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 55.2 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07737/0.07856, allocations: 51.97 MB / 424.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002809/0.08141, allocations: 2.569 MB / 426.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009599/0.08239, allocations: 0.8117 MB / 427.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.08253, allocations: 4 kB / 427.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003062/0.08285, allocations: 71.53 kB / 427.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.0831, allocations: 123.3 kB / 427.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.08337, allocations: 175.7 kB / 428 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.08371, allocations: 0.4993 MB / 428.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.08388, allocations: 120.5 kB / 428.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.08407, allocations: 211.1 kB / 428.9 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000199/0.08428, allocations: 230.9 kB / 429.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.08433, allocations: 20 kB / 429.1 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.291e-05/0.08438, allocations: 24 kB / 429.1 MB, free: 9.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.493e-05/0.08447, allocations: 91.64 kB / 429.2 MB, free: 9.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.08458, allocations: 174.8 kB / 429.4 MB, free: 9.398 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.0848, allocations: 378.5 kB / 429.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.08481, allocations: 0 / 429.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.08482, allocations: 0 / 429.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.08483, allocations: 0 / 429.8 MB, free: 9.027 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001562/0.0864, allocations: 0.8336 MB / 430.6 MB, free: 8.141 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.08643, allocations: 12.03 kB / 430.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.433e-05/0.0865, allocations: 48.38 kB / 430.7 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006564/0.08716, allocations: 419.8 kB / 431.1 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.0872, allocations: 32.72 kB / 431.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.08724, allocations: 32 kB / 431.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.0876, allocations: 297.7 kB / 431.4 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.08762, allocations: 0 / 431.4 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.08765, allocations: 16 kB / 431.4 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.08766, allocations: 11.94 kB / 431.4 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.08797, allocations: 218.1 kB / 431.7 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.08917, allocations: 1.038 MB / 432.7 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006105/0.08979, allocations: 385.3 kB / 433.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.08999, allocations: 152.7 kB / 433.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.09002, allocations: 7.938 kB / 433.2 MB, free: 5.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.09005, allocations: 34.56 kB / 433.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.623e-06/0.09006, allocations: 8 kB / 433.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001513/0.09157, allocations: 1.099 MB / 434.4 MB, free: 4.168 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.09161, allocations: 63.41 kB / 434.4 MB, free: 4.094 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006029/0.09222, allocations: 425.6 kB / 434.8 MB, free: 3.672 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.09225, allocations: 29.7 kB / 434.9 MB, free: 3.637 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.09234, allocations: 204.5 kB / 435.1 MB, free: 3.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.0924, allocations: 149.8 kB / 435.2 MB, free: 3.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.766e-05/0.09249, allocations: 70.14 kB / 435.3 MB, free: 3.211 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.09255, allocations: 358.7 kB / 435.6 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.09271, allocations: 108.8 kB / 435.7 MB, free: 2.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.09289, allocations: 169.8 kB / 435.9 MB, free: 2.555 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.09422, allocations: 0.606 MB / 436.5 MB, free: 1.934 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.09423, allocations: 0 / 436.5 MB, free: 1.934 MB / 298.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008052/0.09504, allocations: 0.8083 MB / 437.3 MB, free: 1.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.09507, allocations: 4 kB / 437.3 MB, free: 1.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.09508, allocations: 0 / 437.3 MB, free: 1.031 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002455/0.09533, allocations: 98.67 kB / 437.4 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/0.09566, allocations: 91.83 kB / 437.5 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.0993, allocations: 7.312 MB / 444.8 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003669/0.09969, allocations: 35.95 kB / 444.9 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.09972, allocations: 19.98 kB / 444.9 MB, free: 8.945 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001998/0.09993, allocations: 165.7 kB / 445 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.1, allocations: 39.53 kB / 445.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.912e-05/0.1001, allocations: 52.06 kB / 445.1 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1001, allocations: 4 kB / 445.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.1001, allocations: 0 / 445.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1001, allocations: 0 / 445.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.1013, allocations: 0.8813 MB / 446 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1013, allocations: 0 / 446 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1016, allocations: 59.91 kB / 446.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002171/0.1018, allocations: 76.78 kB / 446.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.1018, allocations: 11.94 kB / 446.2 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.1033, allocations: 1.717 MB / 447.9 MB, free: 5.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1033, allocations: 0 / 447.9 MB, free: 5.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006301/0.1096, allocations: 5.203 MB / 453.1 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.929e-05/0.1097, allocations: 112.6 kB / 453.2 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.1098, allocations: 12 kB / 453.2 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.1101, allocations: 36.02 kB / 453.2 MB, free: 52 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.1102, allocations: 31.89 kB / 453.3 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.1102, allocations: 12 kB / 453.3 MB, free: 8 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006133/0.1109, allocations: 331.2 kB / 453.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1109, allocations: 0 / 453.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006916/0.1116, allocations: 120 kB / 453.7 MB, free: 15.56 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (g1.x_scaled[1],g2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.wg) * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001053/0.1117, allocations: 115.2 kB / 453.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007786/0.1125, allocations: 0.6354 MB / 454.5 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1125, allocations: 4 kB / 454.5 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.1128, allocations: 286.7 kB / 454.8 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.1132, allocations: 61.3 kB / 454.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.1151, allocations: 1.57 MB / 456.4 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.1155, allocations: 0.8353 MB / 457.2 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.1157, allocations: 55.25 kB / 457.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.1158, allocations: 27.44 kB / 457.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.624e-06/0.1158, allocations: 0 / 457.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of Templates: time 0.009003/0.1248, allocations: 5.408 MB / 462.7 MB, free: 6.43 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)