Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package AES with version (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/AES main/package.mo): time 0.07619/0.07619, allocations: 19.39 MB / 34.65 MB, free: 148 kB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009013/0.0009014, allocations: 178.7 kB / 40.28 MB, free: 6.527 MB / 33.03 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.7 MB / 271.5 MB, free: 3.273 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008034/0.0008035, allocations: 95.77 kB / 327.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.000363, allocations: 8 kB / 395.4 MB, free: 47.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1006, allocations: 55.19 MB / 450.6 MB, free: 8.668 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop): time 0.003002/0.1037, allocations: 2.153 MB / 452.7 MB, free: 6.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1052, allocations: 0.7566 MB / 453.5 MB, free: 5.742 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1053, allocations: 4 kB / 453.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003692/0.1057, allocations: 79.55 kB / 453.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.106, allocations: 111.4 kB / 453.7 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.1064, allocations: 183.7 kB / 453.8 MB, free: 5.371 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005125/0.1069, allocations: 0.5148 MB / 454.4 MB, free: 4.855 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.1071, allocations: 116.4 kB / 454.5 MB, free: 4.738 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.1074, allocations: 199 kB / 454.7 MB, free: 4.543 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.1076, allocations: 214.9 kB / 454.9 MB, free: 4.332 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.1077, allocations: 16 kB / 454.9 MB, free: 4.316 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.653e-05/0.1078, allocations: 16 kB / 454.9 MB, free: 4.301 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1079, allocations: 87.64 kB / 455 MB, free: 4.215 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.1081, allocations: 200.4 kB / 455.2 MB, free: 4.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.1084, allocations: 378.4 kB / 455.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1084, allocations: 0 / 455.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1084, allocations: 0 / 455.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.1084, allocations: 0 / 455.6 MB, free: 3.641 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001692/0.1101, allocations: 0.7793 MB / 456.3 MB, free: 2.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1102, allocations: 9.156 kB / 456.3 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.1103, allocations: 48.38 kB / 456.4 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007695/0.111, allocations: 439.6 kB / 456.8 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.1111, allocations: 21.03 kB / 456.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.1111, allocations: 39.84 kB / 456.9 MB, free: 2.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004712/0.1116, allocations: 317.9 kB / 457.2 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.1116, allocations: 0 / 457.2 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.1117, allocations: 12 kB / 457.2 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1117, allocations: 8 kB / 457.2 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004011/0.1121, allocations: 242.4 kB / 457.4 MB, free: 1.645 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.1139, allocations: 1.235 MB / 458.7 MB, free: 336 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007523/0.1146, allocations: 363.7 kB / 459 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000238/0.1149, allocations: 161.4 kB / 459.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.1149, allocations: 4 kB / 459.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.1149, allocations: 42.25 kB / 459.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 1.793e-06/0.115, allocations: 0 / 459.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.004446/0.1194, allocations: 1.407 MB / 460.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.1195, allocations: 59.41 kB / 460.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007097/0.1202, allocations: 433.6 kB / 461.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.1202, allocations: 33.7 kB / 461.2 MB, free: 13.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1203, allocations: 208.4 kB / 461.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.1205, allocations: 145.8 kB / 461.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.1205, allocations: 8 kB / 461.5 MB, free: 13.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1206, allocations: 350.8 kB / 461.9 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1208, allocations: 112.8 kB / 462 MB, free: 12.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.1211, allocations: 169 kB / 462.1 MB, free: 12.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004088/0.1252, allocations: 0.9238 MB / 463.1 MB, free: 11.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1252, allocations: 0 / 463.1 MB, free: 11.78 MB / 330.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pcmd = Ge2.Pm [ 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.Pcmd = Ge1.Pm [ 1.0 , -1.0 ; -1.0 , 1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd 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.002181/0.1274, allocations: 0.9372 MB / 464 MB, free: 10.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1274, allocations: 8 kB / 464 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1274, allocations: 0 / 464 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/0.129, allocations: 270.4 kB / 464.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.1294, allocations: 79.84 kB / 464.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007454/0.1368, allocations: 7.807 MB / 472.2 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.1374, allocations: 39.95 kB / 472.2 MB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.1374, allocations: 16 kB / 472.2 MB, free: 1.996 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.thetap:VARIABLE(unit = "rad" fixed = true ) "generator and port absolute angles" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (43): * Single equations (assignments): 40 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002584/0.1377, allocations: 165.8 kB / 472.4 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.717e-05/0.1378, allocations: 39.53 kB / 472.4 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.1392, allocations: 0.5287 MB / 472.9 MB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1392, allocations: 4 kB / 472.9 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.1392, allocations: 0 / 472.9 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1392, allocations: 0 / 472.9 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.1415, allocations: 1.006 MB / 473.9 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.1415, allocations: 0 / 473.9 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005037/0.142, allocations: 67.91 kB / 474 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.1436, allocations: 204.6 kB / 474.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.15e-05/0.1436, allocations: 11.98 kB / 474.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00486/0.1485, allocations: 2.043 MB / 476.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1485, allocations: 4.125 kB / 476.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.1508, allocations: 0.7471 MB / 477 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.151, allocations: 124.5 kB / 477.1 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.678e-05/0.1511, allocations: 15.98 kB / 477.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00052/0.1516, allocations: 35.95 kB / 477.2 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.1517, allocations: 23.97 kB / 477.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.1517, allocations: 8 kB / 477.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008798/0.1526, allocations: 331 kB / 477.5 MB, free: 12.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1527, allocations: 0 / 477.5 MB, free: 12.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008022/0.1535, allocations: 96 kB / 477.6 MB, free: 12.31 MB / 346.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.thetag,Ge1.wg,Ge2.thetag,Ge2.thetap,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 (33): * Single equations (assignments): 32 * 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.0001767/0.1537, allocations: 117.2 kB / 477.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.1549, allocations: 0.6466 MB / 478.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1549, allocations: 4.25 kB / 478.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004918/0.1554, allocations: 294.5 kB / 478.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005926/0.156, allocations: 50.95 kB / 478.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.1586, allocations: 1.284 MB / 480 MB, free: 9.836 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006579/0.1593, allocations: 0.8353 MB / 480.9 MB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000253/0.1595, allocations: 47.27 kB / 480.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1597, allocations: 23.44 kB / 480.9 MB, free: 8.902 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1597, allocations: 0 / 480.9 MB, free: 8.902 MB / 346.7 MB Notification: Performance of Templates: time 0.01255/0.1722, allocations: 4.407 MB / 485.3 MB, free: 4.5 MB / 346.7 MB make -j1 -f AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe 2>&1)