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.001291/0.001291, allocations: 105.1 kB / 16.41 MB, free: 6.492 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.001293/0.001294, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.258/1.258, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0883/0.0883, allocations: 22.32 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.89 kB / 438.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.08787, allocations: 54.96 MB / 493.4 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002742/0.09065, allocations: 1.822 MB / 495.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009827/0.09165, allocations: 0.5923 MB / 495.8 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.09177, allocations: 4 kB / 495.8 MB, free: 1.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.09204, allocations: 27.72 kB / 495.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.09222, allocations: 47.66 kB / 495.9 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.09248, allocations: 107.5 kB / 496 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002567/0.09275, allocations: 223.5 kB / 496.2 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.09289, allocations: 61.47 kB / 496.2 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.09302, allocations: 83.69 kB / 496.3 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.09319, allocations: 99.58 kB / 496.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.09324, allocations: 16 kB / 496.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.852e-05/0.09327, allocations: 16 kB / 496.5 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.776e-05/0.09336, allocations: 51.83 kB / 496.5 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.716e-05/0.09344, allocations: 79.53 kB / 496.6 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.09365, allocations: 187.4 kB / 496.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.09366, allocations: 0 / 496.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09367, allocations: 4 kB / 496.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.09368, allocations: 0 / 496.8 MB, free: 0.6602 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.0009408/0.09463, allocations: 0.5106 MB / 497.3 MB, free: 100 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.09467, allocations: 12.03 kB / 497.3 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.09473, allocations: 24.66 kB / 497.3 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.09517, allocations: 284.6 kB / 497.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.0952, allocations: 8.609 kB / 497.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.09524, allocations: 12.38 kB / 497.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.09553, allocations: 171.8 kB / 497.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.09555, allocations: 0 / 497.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.09557, allocations: 4 kB / 497.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.09558, allocations: 4 kB / 497.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.09585, allocations: 116.6 kB / 497.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008407/0.0967, allocations: 0.5398 MB / 498.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.09721, allocations: 182.6 kB / 498.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.09735, allocations: 76.81 kB / 498.7 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.09738, allocations: 0 / 498.7 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.09741, allocations: 34.56 kB / 498.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 2.374e-06/0.09742, allocations: 0 / 498.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001442/0.09886, allocations: 0.5345 MB / 499.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.09892, allocations: 81.11 kB / 499.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.09925, allocations: 215.2 kB / 499.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.09928, allocations: 33.7 kB / 499.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.141e-05/0.09936, allocations: 123.9 kB / 499.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.0994, allocations: 39.36 kB / 499.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.306e-05/0.09947, allocations: 37.7 kB / 499.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.09957, allocations: 326.8 kB / 0.4884 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.09971, allocations: 72.81 kB / 0.4885 GB, free: 12.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.09986, allocations: 90.41 kB / 0.4885 GB, free: 12.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.1001, allocations: 144.4 kB / 0.4887 GB, free: 12.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1001, allocations: 0 / 0.4887 GB, free: 12.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003213/0.1005, allocations: 193.4 kB / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.1005, allocations: 8 kB / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1005, allocations: 0 / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.1005, allocations: 0 / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.1007, allocations: 43.91 kB / 0.4889 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.1008, allocations: 3.984 kB / 0.4889 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.1009, allocations: 27.89 kB / 0.4889 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.101, allocations: 3.938 kB / 0.4889 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001341/0.1011, allocations: 152.1 kB / 0.4891 GB, free: 12.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.57e-05/0.1012, allocations: 74.55 kB / 0.4892 GB, free: 12.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000154/0.1014, allocations: 124.8 kB / 0.4893 GB, free: 12.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.32e-07/0.1014, allocations: 0 / 0.4893 GB, free: 12.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002309/0.1016, allocations: 165.5 kB / 0.4894 GB, free: 11.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/0.1016, allocations: 4 kB / 0.4894 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-06/0.1016, allocations: 0 / 0.4894 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-06/0.1016, allocations: 8 kB / 0.4894 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.1018, allocations: 43.91 kB / 0.4895 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.034e-06/0.1019, allocations: 0 / 0.4895 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.102, allocations: 19.92 kB / 0.4895 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.102, allocations: 8 kB / 0.4895 GB, free: 11.86 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 9.767e-05/0.1021, allocations: 188.9 kB / 0.4897 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.1022, allocations: 19.8 kB / 0.4897 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006187/0.1028, allocations: 279.6 kB / 0.49 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1028, allocations: 7.984 kB / 0.49 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1028, allocations: 0 / 0.49 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1028, allocations: 7.922 kB / 0.49 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.1031, allocations: 269.4 kB / 0.4903 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1031, allocations: 7.938 kB / 0.4903 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.473e-05/0.1032, allocations: 12 kB / 0.4903 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003084/0.1036, allocations: 88.78 kB / 0.4904 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.1036, allocations: 0 / 0.4904 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.1055, allocations: 1.829 MB / 0.4921 GB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1055, allocations: 4.031 kB / 0.4921 GB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/0.1062, allocations: 435.9 kB / 0.4926 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.517e-05/0.1063, allocations: 96.86 kB / 0.4927 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.1064, allocations: 0 / 0.4927 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.1066, allocations: 28.2 kB / 0.4927 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-05/0.1066, allocations: 19.98 kB / 0.4927 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.1067, allocations: 7.984 kB / 0.4927 GB, free: 8.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.107, allocations: 169 kB / 0.4929 GB, free: 8.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.107, allocations: 0 / 0.4929 GB, free: 8.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.1073, allocations: 59.84 kB / 0.4929 GB, free: 8.117 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.0001446/0.1075, allocations: 107.2 kB / 0.493 GB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004338/0.1079, allocations: 203.8 kB / 0.4932 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1079, allocations: 0 / 0.4932 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003285/0.1083, allocations: 206.6 kB / 0.4934 GB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.1086, allocations: 35.98 kB / 0.4935 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007227/0.1093, allocations: 427 kB / 0.4939 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1096, allocations: 0.7359 MB / 0.4946 GB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.254e-05/0.1097, allocations: 19.44 kB / 0.4946 GB, free: 6.324 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1097, allocations: 0 / 0.4946 GB, free: 6.324 MB / 382.1 MB Notification: Performance of Templates: time 0.00433/0.114, allocations: 2.494 MB / 0.497 GB, free: 3.836 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)