Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 103.9 kB / 16.4 MB, free: 6.469 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.001487/0.001487, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08673/0.08673, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 71.88 kB / 438.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1138, allocations: 54.94 MB / 493.4 MB, free: 4.043 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.003431/0.1172, allocations: 1.826 MB / 495.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.1184, allocations: 0.5962 MB / 495.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.1186, allocations: 0 / 495.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003388/0.119, allocations: 31.73 kB / 495.8 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.1192, allocations: 39.72 kB / 495.8 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.1196, allocations: 99.86 kB / 495.9 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003078/0.1199, allocations: 227.5 kB / 496.2 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.1201, allocations: 65.41 kB / 496.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.1202, allocations: 79.73 kB / 496.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.1204, allocations: 95.59 kB / 496.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.352e-05/0.1205, allocations: 20 kB / 496.4 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.394e-05/0.1205, allocations: 23.94 kB / 496.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.1206, allocations: 55.81 kB / 496.5 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.731e-05/0.1207, allocations: 75.53 kB / 496.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.121, allocations: 183.4 kB / 496.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.121, allocations: 3.938 kB / 496.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.121, allocations: 0 / 496.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.121, allocations: 0 / 496.8 MB, free: 0.6172 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001198/0.1222, allocations: 0.5145 MB / 497.3 MB, free: 52 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1223, allocations: 12.03 kB / 497.3 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.62e-05/0.1223, allocations: 20.66 kB / 497.3 MB, free: 20 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.1229, allocations: 276.6 kB / 497.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.1229, allocations: 16.59 kB / 497.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.1229, allocations: 12.38 kB / 497.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.1233, allocations: 167.8 kB / 497.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.1233, allocations: 4 kB / 497.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.1233, allocations: 4 kB / 497.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1234, allocations: 4 kB / 497.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002757/0.1236, allocations: 124.6 kB / 497.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.1247, allocations: 0.5321 MB / 498.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005906/0.1253, allocations: 182.6 kB / 498.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.1254, allocations: 64.83 kB / 498.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.1255, allocations: 4 kB / 498.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.1255, allocations: 42.5 kB / 498.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.1255, allocations: 0 / 498.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001611/0.1271, allocations: 0.5342 MB / 499.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.1272, allocations: 81.09 kB / 499.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.1276, allocations: 215.2 kB / 499.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1276, allocations: 25.7 kB / 499.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1277, allocations: 127.9 kB / 499.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.1278, allocations: 47.34 kB / 499.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.432e-05/0.1278, allocations: 37.7 kB / 499.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.128, allocations: 330.8 kB / 0.4884 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1281, allocations: 64.81 kB / 0.4884 GB, free: 12.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.1283, allocations: 93 kB / 0.4885 GB, free: 12.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.1285, allocations: 145.6 kB / 0.4887 GB, free: 12.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1286, allocations: 0 / 0.4887 GB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003771/0.1289, allocations: 188.5 kB / 0.4888 GB, free: 12.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.129, allocations: 4 kB / 0.4889 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.129, allocations: 0 / 0.4889 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.129, allocations: 4 kB / 0.4889 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.1293, allocations: 55.88 kB / 0.4889 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.1293, allocations: 0 / 0.4889 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.1295, allocations: 27.88 kB / 0.4889 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.1295, allocations: 11.94 kB / 0.4889 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001535/0.1297, allocations: 144.1 kB / 0.4891 GB, free: 12.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.491e-05/0.1298, allocations: 74.53 kB / 0.4892 GB, free: 12.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001731/0.1299, allocations: 121.6 kB / 0.4893 GB, free: 12.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-06/0.13, allocations: 4 kB / 0.4893 GB, free: 12.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002502/0.1302, allocations: 168.5 kB / 0.4894 GB, free: 11.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1302, allocations: 8 kB / 0.4894 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.1302, allocations: 0 / 0.4894 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.978e-06/0.1303, allocations: 3.938 kB / 0.4894 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.1305, allocations: 39.92 kB / 0.4895 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.1305, allocations: 4 kB / 0.4895 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.1307, allocations: 19.91 kB / 0.4895 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.1307, allocations: 8.031 kB / 0.4895 GB, free: 11.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 16 * 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.0001103/0.1308, allocations: 192.9 kB / 0.4897 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.1308, allocations: 15.81 kB / 0.4897 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006914/0.1315, allocations: 295.2 kB / 0.49 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1316, allocations: 0 / 0.49 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1316, allocations: 0 / 0.49 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1316, allocations: 4 kB / 0.49 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.1319, allocations: 265.4 kB / 0.4903 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1319, allocations: 3.938 kB / 0.4903 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.678e-05/0.132, allocations: 8 kB / 0.4903 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003554/0.1323, allocations: 88.78 kB / 0.4903 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.1324, allocations: 8 kB / 0.4904 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002087/0.1345, allocations: 1.84 MB / 0.4922 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1345, allocations: 0 / 0.4922 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007823/0.1353, allocations: 436 kB / 0.4926 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.1353, allocations: 96.86 kB / 0.4927 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.1354, allocations: 4 kB / 0.4927 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.1356, allocations: 23.97 kB / 0.4927 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.1357, allocations: 11.98 kB / 0.4927 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.1357, allocations: 4 kB / 0.4927 GB, free: 8.305 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002962/0.136, allocations: 177.1 kB / 0.4929 GB, free: 8.133 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.136, allocations: 0 / 0.4929 GB, free: 8.133 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.1364, allocations: 55.84 kB / 0.4929 GB, free: 8.078 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * 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 (8): * 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: 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001227/0.1365, allocations: 103.2 kB / 0.493 GB, free: 7.969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004762/0.137, allocations: 207.9 kB / 0.4932 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.137, allocations: 0 / 0.4932 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.1374, allocations: 214.6 kB / 0.4934 GB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.1377, allocations: 34.09 kB / 0.4935 GB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007605/0.1385, allocations: 427 kB / 0.4939 GB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.1388, allocations: 0.7281 MB / 0.4946 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.745e-05/0.1389, allocations: 19.42 kB / 0.4946 GB, free: 6.289 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1389, allocations: 0 / 0.4946 GB, free: 6.289 MB / 382.1 MB Notification: Performance of Templates: time 0.004844/0.1437, allocations: 2.476 MB / 0.497 GB, free: 3.816 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)