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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",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.0073/0.0073, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001786/0.001786, allocations: 197 kB / 16.67 MB, free: 5.969 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2213/0.2213, allocations: 22.36 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 62.41 kB / 437.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1166, allocations: 54.97 MB / 492.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002903/0.1196, allocations: 1.828 MB / 494.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.1207, allocations: 0.6001 MB / 494.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.973e-05/0.1208, allocations: 0 / 494.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000317/0.1211, allocations: 31.73 kB / 494.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.1213, allocations: 39.7 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.1216, allocations: 114.4 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.1218, allocations: 215.6 kB / 495.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.122, allocations: 53.52 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1221, allocations: 87.64 kB / 495.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.1223, allocations: 95.64 kB / 495.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.1224, allocations: 16 kB / 495.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.088e-05/0.1224, allocations: 20 kB / 495.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.165e-05/0.1225, allocations: 51.83 kB / 495.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.1227, allocations: 83.45 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.1229, allocations: 180 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1229, allocations: 0 / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1229, allocations: 4 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1229, allocations: 0 / 495.6 MB, free: 13.64 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.001058/0.124, allocations: 0.5225 MB / 496.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.124, allocations: 8.031 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.832e-05/0.1241, allocations: 46.73 kB / 496.2 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.026e-05/0.1241, allocations: 24.66 kB / 496.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004764/0.1246, allocations: 276.6 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.1247, allocations: 12.61 kB / 496.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/0.1247, allocations: 12.38 kB / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.125, allocations: 165.5 kB / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.125, allocations: 0 / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.125, allocations: 11.98 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1251, allocations: 4 kB / 496.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.1253, allocations: 112.6 kB / 496.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008829/0.1262, allocations: 0.5399 MB / 497.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.1268, allocations: 190.6 kB / 497.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.1269, allocations: 64.83 kB / 497.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.127, allocations: 4 kB / 497.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.127, allocations: 38.7 kB / 497.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 2.665e-06/0.127, allocations: 3.938 kB / 497.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001574/0.1286, allocations: 0.5302 MB / 498.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.1287, allocations: 77.11 kB / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.129, allocations: 215.2 kB / 498.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1291, allocations: 29.7 kB / 498.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/0.1292, allocations: 123.9 kB / 498.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.1292, allocations: 55.28 kB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.131e-05/0.1293, allocations: 29.7 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1294, allocations: 330.8 kB / 499 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1296, allocations: 68.81 kB / 499.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.1297, allocations: 92.92 kB / 499.2 MB, free: 9.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.13, allocations: 141.5 kB / 499.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.13, allocations: 0 / 499.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003338/0.1303, allocations: 199.5 kB / 499.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1303, allocations: 4 kB / 499.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.1303, allocations: 0 / 499.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1304, allocations: 4 kB / 499.5 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.1306, allocations: 43.91 kB / 499.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.1306, allocations: 0 / 499.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.1308, allocations: 35.75 kB / 499.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.1308, allocations: 8.031 kB / 499.6 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001474/0.131, allocations: 148.1 kB / 499.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001034/0.1311, allocations: 70.55 kB / 499.8 MB, free: 9.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001733/0.1313, allocations: 120.6 kB / 499.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.41e-07/0.1313, allocations: 0 / 499.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002421/0.1315, allocations: 165.5 kB / 0.4884 GB, free: 8.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/0.1316, allocations: 4 kB / 0.4884 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-06/0.1316, allocations: 8.062 kB / 0.4884 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-06/0.1316, allocations: 0 / 0.4884 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.1318, allocations: 39.91 kB / 0.4884 GB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1318, allocations: 4 kB / 0.4884 GB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.132, allocations: 19.89 kB / 0.4884 GB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.132, allocations: 4 kB / 0.4884 GB, free: 8.785 MB / 366.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.0001453/0.1321, allocations: 192.9 kB / 0.4886 GB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.252e-05/0.1322, allocations: 19.81 kB / 0.4887 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006972/0.1329, allocations: 275.6 kB / 0.4889 GB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.1329, allocations: 3.938 kB / 0.4889 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1329, allocations: 0 / 0.4889 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.1329, allocations: 7.922 kB / 0.4889 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.1333, allocations: 285.3 kB / 0.4892 GB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1333, allocations: 0 / 0.4892 GB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.863e-05/0.1334, allocations: 11.94 kB / 0.4892 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003846/0.1338, allocations: 84.78 kB / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.1338, allocations: 4 kB / 0.4893 GB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00237/0.1362, allocations: 1.84 MB / 0.4911 GB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.1362, allocations: 3.938 kB / 0.4911 GB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008174/0.1371, allocations: 440 kB / 0.4915 GB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.353e-05/0.1372, allocations: 88.92 kB / 0.4916 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.9e-05/0.1372, allocations: 12 kB / 0.4916 GB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.1374, allocations: 20.02 kB / 0.4916 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.1375, allocations: 11.98 kB / 0.4916 GB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.1375, allocations: 4 kB / 0.4916 GB, free: 5.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002843/0.1378, allocations: 173.1 kB / 0.4918 GB, free: 5.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1378, allocations: 0 / 0.4918 GB, free: 5.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003634/0.1382, allocations: 55.84 kB / 0.4919 GB, free: 5.039 MB / 366.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.001171/0.1393, allocations: 0.9726 MB / 0.4928 GB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004492/0.1398, allocations: 210.3 kB / 0.493 GB, free: 3.836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1398, allocations: 0 / 0.493 GB, free: 3.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.1402, allocations: 214.6 kB / 0.4932 GB, free: 3.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.1405, allocations: 38.7 kB / 0.4933 GB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.1437, allocations: 2.2 MB / 0.4954 GB, free: 1.293 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1441, allocations: 0.7242 MB / 0.4961 GB, free: 0.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.1442, allocations: 41.05 kB / 0.4962 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.709e-05/0.1443, allocations: 47.42 kB / 0.4962 GB, free: 464 kB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1443, allocations: 0 / 0.4962 GB, free: 464 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02758/0.1719, allocations: 4.63 MB / 0.5007 GB, free: 11.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.1, allocations: 12.73 kB / 0.5007 GB, free: 11.95 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_below_limit_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_below_limit.fmu > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)