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.006678/0.006678, allocations: 100.5 kB / 15.73 MB, free: 6.469 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.001301/0.001301, allocations: 196.7 kB / 16.67 MB, free: 6.379 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2229/0.2229, allocations: 22.35 MB / 312.9 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.00139, allocations: 56.16 kB / 437.3 MB, free: 33.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 54.97 MB / 492.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002808/0.1056, allocations: 1.832 MB / 494.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.1067, allocations: 0.6 MB / 494.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1069, allocations: 4 kB / 494.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.1072, allocations: 27.72 kB / 494.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.1074, allocations: 35.72 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.1077, allocations: 107.9 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.108, allocations: 215.6 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.1082, allocations: 57.53 kB / 495.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.1083, allocations: 91.62 kB / 495.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.1085, allocations: 91.64 kB / 495.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.159e-05/0.1086, allocations: 20 kB / 495.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.808e-05/0.1086, allocations: 16 kB / 495.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.874e-05/0.1087, allocations: 55.77 kB / 495.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.151e-05/0.1088, allocations: 79.53 kB / 495.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.109, allocations: 180 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1091, allocations: 4 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1091, allocations: 0 / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1091, 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.001109/0.1102, allocations: 0.5186 MB / 496.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1102, allocations: 12.03 kB / 496.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.287e-05/0.1103, allocations: 46.73 kB / 496.2 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.223e-05/0.1104, allocations: 24.66 kB / 496.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/0.1109, allocations: 280.6 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.1109, allocations: 8.609 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.111, allocations: 12.38 kB / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.1113, allocations: 165.6 kB / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.1113, allocations: 7.984 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.1113, allocations: 0 / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1114, allocations: 4 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.1116, allocations: 120.6 kB / 496.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009506/0.1126, allocations: 0.5322 MB / 497.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.1132, allocations: 186.6 kB / 497.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.1133, allocations: 72.83 kB / 497.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.1134, allocations: 0 / 497.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.1134, allocations: 42.44 kB / 497.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.1134, allocations: 0 / 497.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001678/0.1151, allocations: 0.5303 MB / 498.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.1151, allocations: 81.11 kB / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.1155, allocations: 219.1 kB / 498.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.1155, allocations: 25.7 kB / 498.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/0.1156, allocations: 127.9 kB / 498.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.1157, allocations: 47.3 kB / 498.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-05/0.1158, allocations: 33.7 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1159, allocations: 330.8 kB / 499 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.116, allocations: 64.81 kB / 499.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.1162, allocations: 90.53 kB / 499.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.1165, allocations: 144.1 kB / 499.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1165, allocations: 3.938 kB / 499.3 MB, free: 9.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003623/0.1169, allocations: 189.4 kB / 499.5 MB, free: 9.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1169, allocations: 8.062 kB / 499.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1169, allocations: 4 kB / 499.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1169, allocations: 0 / 499.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.1172, allocations: 43.91 kB / 499.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.1172, allocations: 0 / 499.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.1174, allocations: 35.75 kB / 499.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1174, allocations: 7.984 kB / 499.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001528/0.1176, allocations: 144.1 kB / 499.7 MB, free: 9.242 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001027/0.1177, allocations: 85.34 kB / 499.8 MB, free: 9.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001728/0.1179, allocations: 117.6 kB / 499.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.52e-07/0.1179, allocations: 0 / 499.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002467/0.1181, allocations: 161.5 kB / 0.4884 GB, free: 8.867 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1182, allocations: 8 kB / 0.4884 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-06/0.1182, allocations: 0 / 0.4884 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-06/0.1182, allocations: 0 / 0.4884 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.1184, allocations: 43.98 kB / 0.4884 GB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.865e-06/0.1184, allocations: 0 / 0.4884 GB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.1186, allocations: 27.88 kB / 0.4884 GB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.1186, allocations: 4 kB / 0.4885 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.0001072/0.1187, allocations: 188.9 kB / 0.4886 GB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.1188, allocations: 15.81 kB / 0.4886 GB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007179/0.1195, allocations: 283.6 kB / 0.4889 GB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1195, allocations: 4 kB / 0.4889 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1195, allocations: 0 / 0.4889 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.1195, allocations: 3.938 kB / 0.4889 GB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.1199, allocations: 281.3 kB / 0.4892 GB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1199, allocations: 0 / 0.4892 GB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.12, allocations: 19.98 kB / 0.4892 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003622/0.1204, allocations: 84.78 kB / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1204, allocations: 0 / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.1226, allocations: 1.84 MB / 0.4911 GB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1226, allocations: 3.938 kB / 0.4911 GB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.1234, allocations: 435.1 kB / 0.4915 GB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.1235, allocations: 96.95 kB / 0.4916 GB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.1236, allocations: 4 kB / 0.4916 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.1238, allocations: 23.97 kB / 0.4916 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.1238, allocations: 11.98 kB / 0.4916 GB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1239, allocations: 4 kB / 0.4916 GB, free: 5.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002957/0.1242, allocations: 173.1 kB / 0.4918 GB, free: 5.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1242, allocations: 0 / 0.4918 GB, free: 5.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003733/0.1245, allocations: 55.84 kB / 0.4919 GB, free: 5.047 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.00112/0.1257, allocations: 0.9691 MB / 0.4928 GB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004602/0.1261, allocations: 211.8 kB / 0.493 GB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1262, allocations: 0 / 0.493 GB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003811/0.1265, allocations: 210.6 kB / 0.4932 GB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.1269, allocations: 40.84 kB / 0.4933 GB, free: 3.586 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.1301, allocations: 2.203 MB / 0.4954 GB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1304, allocations: 0.7359 MB / 0.4961 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001271/0.1306, allocations: 41.23 kB / 0.4962 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.138e-05/0.1307, allocations: 51.42 kB / 0.4962 GB, free: 456 kB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1307, allocations: 0 / 0.4962 GB, free: 456 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.1559, allocations: 4.62 MB / 0.5007 GB, free: 11.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.18, allocations: 4.531 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)