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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1058/0.1058, allocations: 21.45 MB / 36.42 MB, free: 1.164 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009227/0.0009227, allocations: 186.6 kB / 42.65 MB, free: 3.996 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.4 MB / 254.1 MB, free: 15.24 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007295/0.0007295, allocations: 88.31 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002895, allocations: 13.59 kB / 373.3 MB, free: 59.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 52.95 MB / 426.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002005/0.1079, allocations: 1.705 MB / 427.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009288/0.1089, allocations: 0.6831 MB / 428.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.109, allocations: 0 / 428.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000291/0.1093, allocations: 31.78 kB / 428.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.1095, allocations: 43.72 kB / 428.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.1098, allocations: 131.8 kB / 428.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002344/0.11, allocations: 275.3 kB / 429.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.1102, allocations: 94.61 kB / 429.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.1103, allocations: 95.55 kB / 429.3 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.1104, allocations: 103.5 kB / 429.4 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.1105, allocations: 8 kB / 429.4 MB, free: 9.844 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.781e-05/0.1105, allocations: 11.94 kB / 429.4 MB, free: 9.832 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.61e-05/0.1106, allocations: 55.8 kB / 429.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.241e-05/0.1106, allocations: 61.58 kB / 429.5 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.1108, allocations: 207.5 kB / 429.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1108, allocations: 0 / 429.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1108, allocations: 4 kB / 429.7 MB, free: 9.504 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1108, allocations: 0 / 429.7 MB, free: 9.504 MB / 298.7 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.001117/0.112, allocations: 0.5844 MB / 430.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.112, allocations: 8.031 kB / 430.3 MB, free: 8.859 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.1121, allocations: 31.62 kB / 430.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000452/0.1125, allocations: 313.5 kB / 430.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.1126, allocations: 24.31 kB / 430.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.1126, allocations: 16 kB / 430.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004069/0.113, allocations: 251.5 kB / 430.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.1131, allocations: 4 kB / 430.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.1131, allocations: 8 kB / 430.9 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.1131, allocations: 4 kB / 430.9 MB, free: 8.168 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003763/0.1135, allocations: 203.2 kB / 431.1 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.1145, allocations: 0.7342 MB / 431.9 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/0.1153, allocations: 273.2 kB / 432.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.1155, allocations: 104.8 kB / 432.2 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.1155, allocations: 7.984 kB / 432.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.1155, allocations: 30.56 kB / 432.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.814e-06/0.1155, allocations: 0 / 432.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0025/0.118, allocations: 0.9479 MB / 433.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.1181, allocations: 110.8 kB / 433.3 MB, free: 5.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.1184, allocations: 265 kB / 433.6 MB, free: 5.383 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1185, allocations: 29.7 kB / 433.6 MB, free: 5.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.832e-05/0.1185, allocations: 164.2 kB / 433.8 MB, free: 5.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.1186, allocations: 59.11 kB / 433.8 MB, free: 5.125 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.1186, allocations: 4 kB / 433.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.1187, allocations: 342.8 kB / 434.2 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.1188, allocations: 95.94 kB / 434.3 MB, free: 4.684 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.119, allocations: 136.4 kB / 434.4 MB, free: 4.535 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.1192, allocations: 104.8 kB / 434.5 MB, free: 4.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1192, allocations: 15.91 kB / 434.5 MB, free: 4.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004944/0.1197, allocations: 275.4 kB / 434.8 MB, free: 4.145 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.1198, allocations: 110.8 kB / 434.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1198, allocations: 4 kB / 434.9 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.1198, allocations: 0 / 434.9 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.1201, allocations: 59.97 kB / 435 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1201, allocations: 7.953 kB / 435 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.1204, allocations: 43.8 kB / 435 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1204, allocations: 8 kB / 435 MB, free: 3.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.821e-06/0.1204, allocations: 4 kB / 435 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002257/0.1206, allocations: 175.8 kB / 435.2 MB, free: 3.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-06/0.1207, allocations: 4 kB / 435.2 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-06/0.1207, allocations: 4.062 kB / 435.2 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.1209, allocations: 47.97 kB / 435.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-06/0.1209, allocations: 0 / 435.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.1211, allocations: 27.83 kB / 435.3 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.1211, allocations: 4 kB / 435.3 MB, free: 3.641 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.1212, allocations: 225 kB / 435.5 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.485e-05/0.1213, allocations: 27.7 kB / 435.5 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009444/0.1222, allocations: 454 kB / 436 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1223, allocations: 4 kB / 436 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1223, allocations: 0 / 436 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1223, allocations: 3.984 kB / 436 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002745/0.1226, allocations: 329.5 kB / 436.3 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1226, allocations: 4 kB / 436.3 MB, free: 2.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.1227, allocations: 23.92 kB / 436.3 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.1232, allocations: 160.7 kB / 436.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.1232, allocations: 0 / 436.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.1259, allocations: 2.331 MB / 438.8 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1259, allocations: 0 / 438.8 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.1271, allocations: 0.6441 MB / 439.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.1272, allocations: 92.95 kB / 439.5 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1272, allocations: 12 kB / 439.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.1275, allocations: 31.95 kB / 439.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.912e-05/0.1276, allocations: 19.89 kB / 439.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.1276, allocations: 4 kB / 439.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003328/0.128, allocations: 204.4 kB / 439.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.128, allocations: 0 / 439.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004244/0.1284, allocations: 91.69 kB / 439.9 MB, free: 14.77 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001172/0.1286, allocations: 99.03 kB / 440 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006169/0.1292, allocations: 319 kB / 440.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1292, allocations: 0 / 440.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005533/0.1297, allocations: 286.7 kB / 440.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004135/0.1302, allocations: 48.77 kB / 440.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.1312, allocations: 0.6191 MB / 441.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.1315, allocations: 0.7638 MB / 442 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.1317, allocations: 53.59 kB / 442.1 MB, free: 12.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.1318, allocations: 19.42 kB / 442.1 MB, free: 12.51 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1318, allocations: 0 / 442.1 MB, free: 12.51 MB / 314.7 MB Notification: Performance of Templates: time 0.006098/0.1379, allocations: 3.193 MB / 445.3 MB, free: 9.324 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)