Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/AES main/package.mo): time 0.09255/0.09255, allocations: 19.39 MB / 34.65 MB, free: 52 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.001054/0.001054, allocations: 177.4 kB / 40.28 MB, free: 6.52 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.534/1.534, allocations: 225.7 MB / 271.5 MB, free: 3.219 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.0007401/0.0007401, allocations: 99.52 kB / 327.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005316/0.0005319, allocations: 8 kB / 395.4 MB, free: 47.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1087, allocations: 55.19 MB / 450.6 MB, free: 8.656 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002443/0.1112, allocations: 1.681 MB / 452.2 MB, free: 6.965 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.1125, allocations: 0.655 MB / 452.9 MB, free: 6.305 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.1127, allocations: 4 kB / 452.9 MB, free: 6.301 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003083/0.113, allocations: 31.77 kB / 452.9 MB, free: 6.27 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.1132, allocations: 39.72 kB / 453 MB, free: 6.23 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.1136, allocations: 163.8 kB / 453.1 MB, free: 6.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003464/0.114, allocations: 287.4 kB / 453.4 MB, free: 5.789 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.1142, allocations: 101 kB / 453.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1144, allocations: 87.56 kB / 453.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.1146, allocations: 107.3 kB / 453.7 MB, free: 5.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.168e-05/0.1146, allocations: 8 kB / 453.7 MB, free: 5.492 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.513e-05/0.1147, allocations: 8 kB / 453.7 MB, free: 5.484 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.949e-05/0.1148, allocations: 47.81 kB / 453.8 MB, free: 5.438 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1149, allocations: 133 kB / 453.9 MB, free: 5.301 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.1151, allocations: 255 kB / 454.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1151, allocations: 0 / 454.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1151, allocations: 0 / 454.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1152, allocations: 0 / 454.1 MB, free: 5.051 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001132/0.1163, allocations: 0.5729 MB / 454.7 MB, free: 4.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1163, allocations: 13.16 kB / 454.7 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/0.1164, allocations: 28.56 kB / 454.8 MB, free: 4.391 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.117, allocations: 318.7 kB / 455.1 MB, free: 4.043 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.117, allocations: 16.73 kB / 455.1 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.117, allocations: 20.38 kB / 455.1 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.1175, allocations: 266.3 kB / 455.4 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1175, allocations: 0 / 455.4 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.737e-05/0.1176, allocations: 7.984 kB / 455.4 MB, free: 3.727 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1176, allocations: 11.94 kB / 455.4 MB, free: 3.715 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004227/0.118, allocations: 199.9 kB / 455.6 MB, free: 3.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.1192, allocations: 0.7186 MB / 456.3 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007661/0.12, allocations: 278.4 kB / 456.6 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.1203, allocations: 105.1 kB / 456.7 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.1203, allocations: 8 kB / 456.7 MB, free: 2.352 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.1203, allocations: 34.47 kB / 456.7 MB, free: 2.309 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.1203, allocations: 0 / 456.7 MB, free: 2.309 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.002653/0.123, allocations: 0.9477 MB / 457.7 MB, free: 1.332 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.1231, allocations: 106.8 kB / 457.8 MB, free: 1.203 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/0.1235, allocations: 264.9 kB / 458 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1235, allocations: 29.7 kB / 458.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.1236, allocations: 156.2 kB / 458.2 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.75e-05/0.1237, allocations: 67.09 kB / 458.3 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.17e-05/0.1237, allocations: 4 kB / 458.3 MB, free: 0.668 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1239, allocations: 334.8 kB / 458.6 MB, free: 340 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.1241, allocations: 91.95 kB / 458.7 MB, free: 248 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.1243, allocations: 142.2 kB / 458.8 MB, free: 92 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.1257, allocations: 477.5 kB / 459.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1258, allocations: 0 / 459.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001222/0.127, allocations: 0.5266 MB / 459.8 MB, free: 15.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.378e-05/0.1271, allocations: 102.7 kB / 459.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1271, allocations: 4 kB / 459.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003945/0.1275, allocations: 124.8 kB / 460.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.1276, allocations: 16 kB / 460.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003218/0.1308, allocations: 2.35 MB / 462.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.1311, allocations: 47.91 kB / 462.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1311, allocations: 7.984 kB / 462.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.1311, allocations: 4.094 kB / 462.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005067/0.1317, allocations: 262.1 kB / 462.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.1317, allocations: 0 / 462.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.1319, allocations: 96.84 kB / 462.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.132, allocations: 27.92 kB / 462.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.1338, allocations: 1.905 MB / 464.8 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.134, allocations: 27.84 kB / 464.8 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.1341, allocations: 12.06 kB / 464.8 MB, free: 9.816 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] 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 (14): * Single equations (assignments): 13 * 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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002257/0.1343, allocations: 225.3 kB / 465 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.1343, allocations: 19.81 kB / 465 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.1354, allocations: 460.8 kB / 465.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1354, allocations: 0 / 465.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.1354, allocations: 0 / 465.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1354, allocations: 0 / 465.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003396/0.1358, allocations: 333.2 kB / 465.8 MB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1358, allocations: 0 / 465.8 MB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.1359, allocations: 19.94 kB / 465.8 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.1364, allocations: 156.7 kB / 466 MB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.1364, allocations: 4 kB / 466 MB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002929/0.1393, allocations: 2.319 MB / 468.3 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1393, allocations: 4.031 kB / 468.3 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.1406, allocations: 0.6326 MB / 468.9 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.1406, allocations: 104.8 kB / 469 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.1407, allocations: 11.97 kB / 469.1 MB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.1409, allocations: 36.06 kB / 469.1 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.141, allocations: 19.95 kB / 469.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1411, allocations: 8 kB / 469.1 MB, free: 5.246 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003041/0.1414, allocations: 200.4 kB / 469.3 MB, free: 5.051 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1414, allocations: 0 / 469.3 MB, free: 5.051 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005324/0.1419, allocations: 95.75 kB / 469.4 MB, free: 4.957 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.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 (9): * Single equations (assignments): 8 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000124/0.142, allocations: 116.5 kB / 469.5 MB, free: 4.832 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.1434, allocations: 0.628 MB / 470.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1434, allocations: 192 / 470.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004768/0.1439, allocations: 290.5 kB / 470.4 MB, free: 3.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.1443, allocations: 52.2 kB / 470.5 MB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.1454, allocations: 0.6593 MB / 471.1 MB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.1457, allocations: 0.7641 MB / 471.9 MB, free: 2.348 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.1458, allocations: 41.67 kB / 472 MB, free: 2.309 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/0.1459, allocations: 19.42 kB / 472 MB, free: 2.293 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1459, allocations: 0 / 472 MB, free: 2.293 MB / 330.7 MB Notification: Performance of Templates: time 0.008266/0.1541, allocations: 4.315 MB / 476.3 MB, free: 14 MB / 346.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)