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.007472/0.007472, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.001913/0.001913, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.212/0.212, allocations: 22.37 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 62.12 kB / 437.3 MB, free: 33.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.0988, allocations: 54.97 MB / 492.2 MB, free: 1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002837/0.1017, allocations: 2.055 MB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1029, allocations: 0.6897 MB / 495 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.103, allocations: 7.938 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000275/0.1033, allocations: 35.67 kB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.1034, allocations: 55.58 kB / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.1038, allocations: 183 kB / 495.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.1042, allocations: 323.3 kB / 495.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.1044, allocations: 104.2 kB / 495.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.1046, allocations: 123.5 kB / 495.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.1048, allocations: 139.4 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.098e-05/0.1048, allocations: 28 kB / 496 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.1049, allocations: 28 kB / 496 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.105, allocations: 83.67 kB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1051, allocations: 115.3 kB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.1055, allocations: 302.6 kB / 496.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1055, allocations: 4 kB / 496.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1055, allocations: 0 / 496.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1055, allocations: 4 kB / 496.5 MB, free: 12.73 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001264/0.1068, allocations: 0.6176 MB / 497.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1068, allocations: 8.031 kB / 497.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.472e-05/0.1069, allocations: 54.73 kB / 497.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.107, allocations: 32.75 kB / 497.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.1077, allocations: 322.8 kB / 497.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.1077, allocations: 16.75 kB / 497.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.237e-05/0.1078, allocations: 24.38 kB / 497.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.1083, allocations: 254.1 kB / 497.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1083, allocations: 3.984 kB / 497.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.1083, allocations: 8 kB / 497.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1084, allocations: 8 kB / 497.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.1088, allocations: 187.9 kB / 498 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.1101, allocations: 0.7071 MB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008113/0.1109, allocations: 252.5 kB / 499 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.1112, allocations: 100.8 kB / 499.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.1112, allocations: 4 kB / 499.1 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.1112, allocations: 34.5 kB / 499.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.332e-06/0.1112, allocations: 0 / 499.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.002841/0.1141, allocations: 0.8192 MB / 499.9 MB, free: 9.098 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.1142, allocations: 106.8 kB / 0.4883 GB, free: 8.969 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000461/0.1147, allocations: 268.9 kB / 0.4886 GB, free: 8.699 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.1147, allocations: 25.7 kB / 0.4886 GB, free: 8.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.1149, allocations: 160.4 kB / 0.4887 GB, free: 8.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.327e-05/0.115, allocations: 71.48 kB / 0.4888 GB, free: 8.434 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.072e-05/0.1151, allocations: 41.7 kB / 0.4888 GB, free: 8.387 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1153, allocations: 338.8 kB / 0.4892 GB, free: 8.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.1155, allocations: 92.75 kB / 0.4893 GB, free: 7.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.1158, allocations: 134.5 kB / 0.4894 GB, free: 7.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/0.1162, allocations: 209 kB / 0.4896 GB, free: 7.598 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1162, allocations: 0 / 0.4896 GB, free: 7.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005243/0.1167, allocations: 274 kB / 0.4898 GB, free: 7.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1168, allocations: 4 kB / 0.4898 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.1168, allocations: 8.062 kB / 0.4899 GB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1168, allocations: 3.938 kB / 0.4899 GB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.1171, allocations: 55.95 kB / 0.4899 GB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.1171, allocations: 4 kB / 0.4899 GB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1174, allocations: 35.86 kB / 0.49 GB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.1174, allocations: 4 kB / 0.49 GB, free: 7.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002005/0.1176, allocations: 172.1 kB / 0.4901 GB, free: 7.039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001627/0.1178, allocations: 116 kB / 0.4902 GB, free: 6.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002428/0.118, allocations: 152 kB / 0.4904 GB, free: 6.754 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.11e-07/0.118, allocations: 4 kB / 0.4904 GB, free: 6.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003489/0.1184, allocations: 224 kB / 0.4906 GB, free: 6.527 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1184, allocations: 11.94 kB / 0.4906 GB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-06/0.1184, allocations: 4.094 kB / 0.4906 GB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-06/0.1184, allocations: 0 / 0.4906 GB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.1187, allocations: 51.92 kB / 0.4907 GB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1187, allocations: 7.922 kB / 0.4907 GB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.1189, allocations: 23.88 kB / 0.4907 GB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.119, allocations: 12 kB / 0.4907 GB, free: 6.418 MB / 366.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.000137/0.1191, allocations: 192.9 kB / 0.4909 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.176e-05/0.1192, allocations: 27.78 kB / 0.4909 GB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.1202, allocations: 409.9 kB / 0.4913 GB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.1202, allocations: 7.938 kB / 0.4913 GB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1203, allocations: 0 / 0.4913 GB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1203, allocations: 0 / 0.4913 GB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.1207, allocations: 333.4 kB / 0.4916 GB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.1207, allocations: 7.984 kB / 0.4916 GB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1208, allocations: 15.94 kB / 0.4916 GB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005664/0.1214, allocations: 140.7 kB / 0.4918 GB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.1214, allocations: 0 / 0.4918 GB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005169/0.1266, allocations: 2.44 MB / 0.4942 GB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1266, allocations: 4.062 kB / 0.4942 GB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.1285, allocations: 0.5796 MB / 0.4947 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1286, allocations: 108.8 kB / 0.4948 GB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.236e-05/0.1287, allocations: 11.97 kB / 0.4949 GB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/0.1291, allocations: 27.97 kB / 0.4949 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.139e-05/0.1292, allocations: 19.97 kB / 0.4949 GB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.1292, allocations: 4 kB / 0.4949 GB, free: 1.871 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004747/0.1297, allocations: 196.4 kB / 0.4951 GB, free: 1.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1297, allocations: 0 / 0.4951 GB, free: 1.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008005/0.1305, allocations: 83.84 kB / 0.4952 GB, free: 1.598 MB / 366.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.00238/0.1329, allocations: 1.131 MB / 0.4963 GB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000982/0.1339, allocations: 300.5 kB / 0.4966 GB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1339, allocations: 0 / 0.4966 GB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008684/0.1348, allocations: 286.7 kB / 0.4968 GB, free: 15.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006684/0.1355, allocations: 44.34 kB / 0.4969 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00596/0.1415, allocations: 2.731 MB / 0.4995 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005203/0.142, allocations: 0.7635 MB / 0.5003 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002143/0.1422, allocations: 49.52 kB / 0.5003 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.1424, allocations: 75.41 kB / 0.5004 GB, free: 12.07 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1425, allocations: 192 / 0.5004 GB, free: 12.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04948/0.1919, allocations: 6.294 MB / 0.5066 GB, free: 5.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.36, allocations: 17.64 kB / 0.5066 GB, free: 5.91 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)