Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.OOM_Intro.HelloWorld.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) Running command: "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007188/0.007188, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001181/0.001182, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2097/0.2097, allocations: 22.35 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 74.02 kB / 434.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1341, allocations: 54.96 MB / 489.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld): time 0.001694/0.1358, allocations: 0.5202 MB / 489.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001549/0.136, allocations: 19.95 kB / 489.9 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.755e-05/0.1361, allocations: 3.938 kB / 490 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.1361, allocations: 0 / 490 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.1362, allocations: 0 / 490 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001059/0.1363, allocations: 0 / 490 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.779e-05/0.1363, allocations: 15.92 kB / 490 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.014e-05/0.1364, allocations: 4 kB / 490 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.766e-05/0.1364, allocations: 0 / 490 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.786e-05/0.1365, allocations: 7.938 kB / 490 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.1365, allocations: 4 kB / 490 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.776e-06/0.1365, allocations: 0 / 490 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.758e-05/0.1365, allocations: 11.92 kB / 490 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.207e-05/0.1366, allocations: 11.92 kB / 490 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.896e-05/0.1366, allocations: 0 / 490 MB, free: 3.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1366, allocations: 0 / 490 MB, free: 3.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1367, allocations: 0 / 490 MB, free: 3.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1367, allocations: 0 / 490 MB, free: 3.238 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000377/0.137, allocations: 326.4 kB / 490.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1371, allocations: 16.03 kB / 490.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.608e-05/0.1371, allocations: 30.75 kB / 490.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.363e-05/0.1372, allocations: 4.844 kB / 490.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.818e-05/0.1373, allocations: 164.4 kB / 490.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.1373, allocations: 4.375 kB / 490.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.1373, allocations: 384 / 490.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1374, allocations: 38.19 kB / 490.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.1374, allocations: 3.938 kB / 490.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.1374, allocations: 0 / 490.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1374, allocations: 0 / 490.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.107e-05/0.1375, allocations: 12 kB / 490.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.1376, allocations: 153.7 kB / 490.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.192e-05/0.1377, allocations: 26.55 kB / 490.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.293e-05/0.1378, allocations: 8.922 kB / 490.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.1378, allocations: 7.984 kB / 490.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.1378, allocations: 38.5 kB / 490.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1378, allocations: 0 / 490.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001809/0.138, allocations: 49.62 kB / 490.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.465e-05/0.138, allocations: 51.41 kB / 490.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.506e-05/0.1381, allocations: 93.86 kB / 491 MB, free: 2.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.724e-06/0.1381, allocations: 25.7 kB / 491 MB, free: 2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.169e-05/0.1381, allocations: 80.14 kB / 491.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.1381, allocations: 15.89 kB / 491.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/0.1382, allocations: 13.84 kB / 491.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.215e-05/0.1382, allocations: 315.2 kB / 491.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.859e-05/0.1383, allocations: 4 kB / 491.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.106e-05/0.1383, allocations: 11.92 kB / 491.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.1385, allocations: 33.06 kB / 491.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1385, allocations: 0 / 491.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.324e-05/0.1386, allocations: 45.69 kB / 491.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.1386, allocations: 11.97 kB / 491.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1386, allocations: 0 / 491.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.1386, allocations: 4 kB / 491.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.326e-05/0.1387, allocations: 7.984 kB / 491.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.1387, allocations: 0 / 491.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.559e-05/0.1388, allocations: 12.41 kB / 491.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.1388, allocations: 3.938 kB / 491.6 MB, free: 1.426 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: x:VARIABLE(start = xstart fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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.000128/0.1389, allocations: 118.9 kB / 491.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.756e-06/0.1389, allocations: 7.938 kB / 491.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.924e-05/0.1389, allocations: 3.125 kB / 491.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.139, allocations: 4 kB / 491.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.139, allocations: 0 / 491.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.139, allocations: 0 / 491.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.099e-05/0.139, allocations: 157.6 kB / 491.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.139, allocations: 0 / 491.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.125e-05/0.1391, allocations: 7.984 kB / 491.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1391, allocations: 3.938 kB / 491.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.1391, allocations: 0 / 491.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1391, allocations: 7.938 kB / 491.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1391, allocations: 4 kB / 491.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.1393, allocations: 69.12 kB / 492 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.1393, allocations: 85.08 kB / 492 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.1393, allocations: 3.938 kB / 492 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.225e-05/0.1394, allocations: 3.984 kB / 492.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.892e-05/0.1394, allocations: 96 / 492.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1394, allocations: 8 kB / 492.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.236e-05/0.1394, allocations: 79.28 kB / 492.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1395, allocations: 0 / 492.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001696/0.1396, allocations: 4 kB / 492.1 MB, free: 0.7734 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * 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 (2): * Single equations (assignments): 2 * 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.0002759/0.1399, allocations: 0.6163 MB / 492.8 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.14, allocations: 15.94 kB / 492.8 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.14, allocations: 0 / 492.8 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.849e-05/0.1401, allocations: 11.98 kB / 492.8 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.1402, allocations: 0 / 492.8 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.1413, allocations: 1.101 MB / 493.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.1415, allocations: 0.6807 MB / 494.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.42e-05/0.1416, allocations: 3.906 kB / 494.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.1416, allocations: 11.44 kB / 494.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1416, allocations: 0 / 494.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.161, allocations: 1.102 MB / 495.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/7.46, allocations: 14.92 kB / 495.7 MB, free: 13.14 MB / 366.1 MB (rm -f AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; mkfifo AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; head -c 1048576 < AES_AES.Coursework.OOM_Intro.HelloWorld.pipe >> ../files/AES_AES.Coursework.OOM_Intro.HelloWorld.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_OOM_Intro_HelloWorld_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_OOM_Intro_HelloWorld.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld.pipe 2>&1)