Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.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.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/AES main/package.mo): time 0.07877/0.07877, allocations: 19.39 MB / 34.65 MB, free: 276 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.0009235/0.0009236, allocations: 177.5 kB / 40.28 MB, free: 6.543 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.449/1.449, allocations: 225.7 MB / 271.5 MB, free: 3.293 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.0007469/0.0007473, allocations: 87.58 kB / 327.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003197, allocations: 12 kB / 395.4 MB, free: 47.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09526/0.09559, allocations: 55.18 MB / 450.6 MB, free: 8.668 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec): time 0.001649/0.0973, allocations: 1.037 MB / 451.6 MB, free: 7.633 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.0991, allocations: 1.334 MB / 452.9 MB, free: 6.281 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.09922, allocations: 8 kB / 452.9 MB, free: 6.273 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.09954, allocations: 67.61 kB / 453 MB, free: 6.207 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.09976, allocations: 83.59 kB / 453.1 MB, free: 6.125 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.1, allocations: 147.8 kB / 453.2 MB, free: 5.98 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.1004, allocations: 347.7 kB / 453.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.1006, allocations: 87.39 kB / 453.7 MB, free: 5.559 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.1008, allocations: 131.3 kB / 453.8 MB, free: 5.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.101, allocations: 135.2 kB / 453.9 MB, free: 5.297 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.101, allocations: 8 kB / 453.9 MB, free: 5.289 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.756e-05/0.101, allocations: 8 kB / 453.9 MB, free: 5.281 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.699e-05/0.1011, allocations: 63.69 kB / 454 MB, free: 5.219 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1012, allocations: 124.9 kB / 454.1 MB, free: 5.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.1015, allocations: 227.1 kB / 454.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1015, allocations: 0 / 454.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1015, allocations: 0 / 454.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.1015, allocations: 0 / 454.3 MB, free: 4.867 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.00136/0.1029, allocations: 0.6581 MB / 455 MB, free: 4.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.1029, allocations: 13.16 kB / 455 MB, free: 4.148 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.103, allocations: 36.5 kB / 455 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006879/0.1037, allocations: 387.2 kB / 455.4 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.1037, allocations: 12.38 kB / 455.4 MB, free: 3.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/0.1037, allocations: 20.38 kB / 455.5 MB, free: 3.664 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.1041, allocations: 218.7 kB / 455.7 MB, free: 3.426 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1041, allocations: 0 / 455.7 MB, free: 3.426 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1041, allocations: 8 kB / 455.7 MB, free: 3.418 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1041, allocations: 11.98 kB / 455.7 MB, free: 3.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.1044, allocations: 148.8 kB / 455.8 MB, free: 3.262 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.1056, allocations: 0.9513 MB / 456.8 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.1061, allocations: 246.7 kB / 457 MB, free: 1.996 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.1063, allocations: 73.34 kB / 457.1 MB, free: 1.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.1063, allocations: 4 kB / 457.1 MB, free: 1.918 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.1063, allocations: 38.56 kB / 457.1 MB, free: 1.871 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.1063, allocations: 0 / 457.1 MB, free: 1.871 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004522/0.1068, allocations: 261.4 kB / 457.4 MB, free: 1.613 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.1068, allocations: 55.41 kB / 457.4 MB, free: 1.547 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006469/0.1075, allocations: 372.5 kB / 457.8 MB, free: 1.164 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.1075, allocations: 29.7 kB / 457.8 MB, free: 1.129 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1077, allocations: 176.2 kB / 458 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.1077, allocations: 78.89 kB / 458.1 MB, free: 0.875 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.1077, allocations: 8 kB / 458.1 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1079, allocations: 338.8 kB / 458.4 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.108, allocations: 60.2 kB / 458.5 MB, free: 476 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.1082, allocations: 99.41 kB / 458.6 MB, free: 364 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.1092, allocations: 391.9 kB / 459 MB, free: 15.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1092, allocations: 0 / 459 MB, free: 15.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004667/0.1097, allocations: 247.2 kB / 459.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1097, allocations: 12 kB / 459.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1098, allocations: 0 / 459.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1098, allocations: 4 kB / 459.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.11, allocations: 39.92 kB / 459.3 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.11, allocations: 7.938 kB / 459.3 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.1103, allocations: 51.8 kB / 459.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.1103, allocations: 8 kB / 459.3 MB, free: 15.59 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: g1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 0.0001777/0.1105, allocations: 141.8 kB / 459.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.961e-05/0.1105, allocations: 27.62 kB / 459.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.1106, allocations: 42.31 kB / 459.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1106, allocations: 0 / 459.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1106, allocations: 3.938 kB / 459.5 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.1106, allocations: 7.922 kB / 459.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003628/0.111, allocations: 325.3 kB / 459.9 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.111, allocations: 0 / 459.9 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.1112, allocations: 35.92 kB / 459.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1112, allocations: 0 / 459.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.1113, allocations: 7.984 kB / 459.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1113, allocations: 4 kB / 459.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1113, allocations: 3.938 kB / 459.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005128/0.1118, allocations: 387 kB / 460.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.222e-05/0.1119, allocations: 100.8 kB / 460.4 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.1119, allocations: 4 kB / 460.4 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.1122, allocations: 39.94 kB / 460.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.1123, allocations: 15.91 kB / 460.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.1123, allocations: 8 kB / 460.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000574/0.1129, allocations: 287 kB / 460.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1129, allocations: 4 kB / 460.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002667/0.1132, allocations: 43.84 kB / 460.8 MB, free: 14.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * 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 0.0001161/0.1133, allocations: 111.2 kB / 460.9 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.1137, allocations: 175.6 kB / 461.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.1137, allocations: 3.938 kB / 461.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.1139, allocations: 83.91 kB / 461.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.1143, allocations: 54.42 kB / 461.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009306/0.1152, allocations: 0.6324 MB / 461.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.1156, allocations: 0.7794 MB / 462.6 MB, free: 12.15 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1157, allocations: 34.27 kB / 462.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.72e-05/0.1158, allocations: 23.44 kB / 462.7 MB, free: 12.09 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1158, allocations: 0 / 462.7 MB, free: 12.09 MB / 330.7 MB Notification: Performance of Templates: time 0.004725/0.1205, allocations: 1.97 MB / 464.6 MB, free: 10.13 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.makefile (rm -f AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe 2>&1)