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.006943/0.006943, allocations: 100.2 kB / 15.73 MB, free: 6.008 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.00155/0.00155, allocations: 193 kB / 16.67 MB, free: 5.93 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.385/1.385, allocations: 222.9 MB / 240.4 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.08848/0.08848, allocations: 22.32 MB / 312.8 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002774/0.002774, allocations: 67.88 kB / 437.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1883, allocations: 54.95 MB / 492.7 MB, free: 4.047 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.004142/0.1925, allocations: 1.826 MB / 494.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.1943, allocations: 0.5962 MB / 495.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.1946, allocations: 0 / 495.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005471/0.1953, allocations: 31.72 kB / 495.1 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003177/0.1956, allocations: 35.78 kB / 495.2 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.1962, allocations: 107.7 kB / 495.3 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005493/0.1967, allocations: 223.5 kB / 495.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002929/0.197, allocations: 61.47 kB / 495.6 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/0.1973, allocations: 83.69 kB / 495.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.1977, allocations: 103.6 kB / 495.7 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-05/0.1978, allocations: 16 kB / 495.8 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.432e-05/0.1978, allocations: 16 kB / 495.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.198, allocations: 51.89 kB / 495.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.1981, allocations: 79.47 kB / 495.9 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.1986, allocations: 187.4 kB / 496.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1986, allocations: 0 / 496.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1986, allocations: 0 / 496.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1986, allocations: 0 / 496.1 MB, free: 0.625 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.001518/0.2001, allocations: 0.5145 MB / 496.6 MB, free: 60 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.2002, allocations: 8.031 kB / 496.6 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.3e-05/0.2003, allocations: 24.66 kB / 496.6 MB, free: 28 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005726/0.2008, allocations: 276.6 kB / 496.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.2009, allocations: 12.55 kB / 496.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.201, allocations: 20.36 kB / 496.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.2013, allocations: 167.8 kB / 497.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2013, allocations: 0 / 497.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.2014, allocations: 8 kB / 497.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2014, allocations: 4 kB / 497.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.2016, allocations: 116.6 kB / 497.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.2027, allocations: 0.5399 MB / 497.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.2034, allocations: 182.6 kB / 497.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2036, allocations: 68.81 kB / 498 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.2036, allocations: 4 kB / 498 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.2036, allocations: 38.56 kB / 498 MB, free: 14.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.953e-06/0.2037, allocations: 3.938 kB / 498.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001781/0.2054, allocations: 0.5303 MB / 498.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.2055, allocations: 77.11 kB / 498.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.2059, allocations: 215.2 kB / 498.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2059, allocations: 29.7 kB / 498.9 MB, free: 13.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.748e-05/0.206, allocations: 131.8 kB / 499 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.2061, allocations: 39.36 kB / 499.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.431e-05/0.2061, allocations: 37.7 kB / 499.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2063, allocations: 326.8 kB / 499.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2064, allocations: 68.81 kB / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.2066, allocations: 86.47 kB / 499.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.2069, allocations: 144.2 kB / 499.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.207, allocations: 4 kB / 499.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003687/0.2073, allocations: 193.3 kB / 499.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2074, allocations: 4 kB / 499.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2074, allocations: 0 / 499.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.2074, allocations: 8.031 kB / 499.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.2077, allocations: 43.91 kB / 500 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.2077, allocations: 4 kB / 500 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.2079, allocations: 23.88 kB / 500 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.2079, allocations: 11.94 kB / 500 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001652/0.2081, allocations: 148.1 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.944e-05/0.2082, allocations: 70.55 kB / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001762/0.2084, allocations: 124.6 kB / 0.4886 GB, free: 12.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.51e-07/0.2084, allocations: 0 / 0.4886 GB, free: 12.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002517/0.2086, allocations: 173.4 kB / 0.4888 GB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2086, allocations: 6.031 kB / 0.4888 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.2087, allocations: 0 / 0.4888 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-06/0.2087, allocations: 7.938 kB / 0.4888 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.2089, allocations: 39.91 kB / 0.4888 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.209, allocations: 0 / 0.4888 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.2091, allocations: 23.95 kB / 0.4888 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.2092, allocations: 8 kB / 0.4889 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.0001305/0.2093, allocations: 192.9 kB / 0.489 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.2094, allocations: 15.8 kB / 0.4891 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006881/0.2101, allocations: 283.6 kB / 0.4893 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.2101, allocations: 0 / 0.4893 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2101, allocations: 0 / 0.4893 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2101, allocations: 3.984 kB / 0.4893 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003563/0.2105, allocations: 265.4 kB / 0.4896 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.2105, allocations: 7.938 kB / 0.4896 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.2106, allocations: 11.94 kB / 0.4896 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003991/0.211, allocations: 92.72 kB / 0.4897 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.211, allocations: 8 kB / 0.4897 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/0.2133, allocations: 1.836 MB / 0.4915 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2133, allocations: 0 / 0.4915 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007874/0.2141, allocations: 439.5 kB / 0.4919 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.2142, allocations: 96.86 kB / 0.492 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.2142, allocations: 4 kB / 0.492 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.2144, allocations: 24.02 kB / 0.492 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.2145, allocations: 11.98 kB / 0.492 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.2145, allocations: 11.98 kB / 0.4921 GB, free: 8.305 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002798/0.2148, allocations: 169.1 kB / 0.4922 GB, free: 8.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2148, allocations: 0 / 0.4922 GB, free: 8.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003869/0.2152, allocations: 55.84 kB / 0.4923 GB, free: 8.086 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.0001175/0.2153, allocations: 95.25 kB / 0.4924 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000455/0.2158, allocations: 215.8 kB / 0.4926 GB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2158, allocations: 0 / 0.4926 GB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.2162, allocations: 210.6 kB / 0.4928 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.2165, allocations: 32.89 kB / 0.4928 GB, free: 7.527 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008116/0.2174, allocations: 405.3 kB / 0.4932 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.2177, allocations: 0.7242 MB / 0.4939 GB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.2178, allocations: 41.05 kB / 0.4939 GB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.712e-05/0.2179, allocations: 11.44 kB / 0.4939 GB, free: 6.305 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2179, allocations: 0 / 0.4939 GB, free: 6.305 MB / 382.1 MB Notification: Performance of Templates: time 0.006177/0.2241, allocations: 2.485 MB / 0.4964 GB, free: 3.824 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)