Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",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.005225/0.005225, allocations: 104.2 kB / 15.74 MB, free: 5.988 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.001169/0.001169, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08971/0.08971, allocations: 22.33 MB / 312.9 MB, free: 8.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 67.91 kB / 437.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1248, allocations: 54.95 MB / 492.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003604/0.1284, allocations: 2.059 MB / 494.3 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.1301, allocations: 0.6821 MB / 494.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002835/0.1304, allocations: 7.938 kB / 494.9 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004207/0.1308, allocations: 39.67 kB / 495 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.1312, allocations: 51.58 kB / 495 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.1318, allocations: 179.7 kB / 495.2 MB, free: 1.488 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.1324, allocations: 323.4 kB / 495.5 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.1326, allocations: 104.1 kB / 495.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.1329, allocations: 131.5 kB / 495.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.1332, allocations: 135.4 kB / 495.9 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.095e-05/0.1333, allocations: 28 kB / 495.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.756e-05/0.1333, allocations: 24 kB / 495.9 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1334, allocations: 79.75 kB / 496 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.1336, allocations: 123.2 kB / 496.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.134, allocations: 299 kB / 496.4 MB, free: 268 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.134, allocations: 0 / 496.4 MB, free: 268 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.134, allocations: 0 / 496.4 MB, free: 268 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.134, allocations: 0 / 496.4 MB, free: 268 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0015/0.1355, allocations: 0.6196 MB / 497 MB, free: 15.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.1356, allocations: 8.031 kB / 497.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.807e-05/0.1356, allocations: 54.73 kB / 497.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.711e-05/0.1357, allocations: 28.56 kB / 497.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.1364, allocations: 322.6 kB / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.1364, allocations: 20.75 kB / 497.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.1365, allocations: 20.38 kB / 497.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.1369, allocations: 254.1 kB / 497.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.137, allocations: 0 / 497.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.137, allocations: 15.94 kB / 497.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.137, allocations: 4 kB / 497.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004271/0.1374, allocations: 187.9 kB / 497.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.1387, allocations: 0.7031 MB / 498.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007597/0.1395, allocations: 254.4 kB / 498.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.1397, allocations: 100.7 kB / 499 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.1398, allocations: 4 kB / 499 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.1398, allocations: 34.88 kB / 499 MB, free: 13.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.1398, allocations: 0 / 499 MB, free: 13.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002515/0.1423, allocations: 0.8128 MB / 499.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.1424, allocations: 106.8 kB / 499.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.1428, allocations: 268.9 kB / 0.4885 GB, free: 12.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.1429, allocations: 33.64 kB / 0.4885 GB, free: 12.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.143, allocations: 156.2 kB / 0.4887 GB, free: 12.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.665e-05/0.1431, allocations: 63.09 kB / 0.4887 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.331e-05/0.1432, allocations: 45.7 kB / 0.4888 GB, free: 11.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1433, allocations: 334.8 kB / 0.4891 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.1435, allocations: 92.81 kB / 0.4892 GB, free: 11.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.1437, allocations: 132.2 kB / 0.4893 GB, free: 11.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.1441, allocations: 213 kB / 0.4895 GB, free: 11.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1441, allocations: 3.938 kB / 0.4895 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004947/0.1446, allocations: 261.3 kB / 0.4898 GB, free: 10.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1447, allocations: 4 kB / 0.4898 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1447, allocations: 4.062 kB / 0.4898 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.1447, allocations: 7.938 kB / 0.4898 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.145, allocations: 63.94 kB / 0.4898 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.145, allocations: 0 / 0.4898 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.1453, allocations: 35.81 kB / 0.4899 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.1453, allocations: 8 kB / 0.4899 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001804/0.1455, allocations: 172 kB / 0.49 GB, free: 10.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001437/0.1457, allocations: 113.7 kB / 0.4902 GB, free: 10.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002252/0.1459, allocations: 160 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.056e-06/0.1459, allocations: 4 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003278/0.1462, allocations: 219.4 kB / 0.4905 GB, free: 10.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.1463, allocations: 7.938 kB / 0.4905 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1463, allocations: 16.02 kB / 0.4905 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.456e-06/0.1463, allocations: 0 / 0.4905 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.1465, allocations: 47.97 kB / 0.4906 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.1465, allocations: 0 / 0.4906 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.1467, allocations: 23.89 kB / 0.4906 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.1468, allocations: 8 kB / 0.4906 GB, free: 9.965 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.0001298/0.1469, allocations: 200.9 kB / 0.4908 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.422e-05/0.147, allocations: 27.66 kB / 0.4908 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000956/0.1479, allocations: 410.3 kB / 0.4912 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.1479, allocations: 4 kB / 0.4912 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.148, allocations: 0 / 0.4912 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.148, allocations: 0 / 0.4912 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/0.1483, allocations: 337.4 kB / 0.4915 GB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.257e-05/0.1484, allocations: 4 kB / 0.4916 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1485, allocations: 11.94 kB / 0.4916 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000488/0.149, allocations: 144.7 kB / 0.4917 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.149, allocations: 4 kB / 0.4917 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003228/0.1523, allocations: 2.424 MB / 0.4941 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1523, allocations: 12.03 kB / 0.4941 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.1534, allocations: 0.5777 MB / 0.4946 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.19e-05/0.1535, allocations: 104.7 kB / 0.4947 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.873e-05/0.1536, allocations: 12.03 kB / 0.4948 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.1538, allocations: 19.97 kB / 0.4948 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.093e-05/0.1539, allocations: 23.97 kB / 0.4948 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.1539, allocations: 4 kB / 0.4948 GB, free: 5.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003098/0.1542, allocations: 196.4 kB / 0.495 GB, free: 5.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1542, allocations: 192 / 0.495 GB, free: 5.234 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004977/0.1547, allocations: 91.69 kB / 0.4951 GB, free: 5.145 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001504/0.1562, allocations: 1.132 MB / 0.4962 GB, free: 3.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006414/0.1569, allocations: 302.3 kB / 0.4965 GB, free: 3.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1569, allocations: 0 / 0.4965 GB, free: 3.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005925/0.1575, allocations: 274.8 kB / 0.4967 GB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.158, allocations: 54.08 kB / 0.4968 GB, free: 3.359 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.1621, allocations: 2.726 MB / 0.4995 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2482/0.4103, allocations: 0.7559 MB / 0.5002 GB, free: 21.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002904/0.4107, allocations: 44.92 kB / 0.5002 GB, free: 21.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.4109, allocations: 77.38 kB / 0.5003 GB, free: 21.83 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4109, allocations: 1.969 kB / 0.5003 GB, free: 21.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.4463, allocations: 6.43 MB / 0.5066 GB, free: 21.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.44, allocations: 6.75 kB / 0.5066 GB, free: 21.3 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)