Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Smith_predictor.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) Running command: translateModel(AES.Coursework.Typical_control_structures.Smith_predictor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Smith_predictor") translateModel(AES.Coursework.Typical_control_structures.Smith_predictor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Smith_predictor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00549/0.00549, allocations: 104.7 kB / 15.74 MB, free: 6.488 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.00131/0.001311, allocations: 197.5 kB / 16.67 MB, free: 6.375 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2673/0.2673, allocations: 22.38 MB / 312.9 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 61.25 kB / 437.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1322, allocations: 54.95 MB / 492 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003219/0.1354, allocations: 1.825 MB / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.1369, allocations: 0.6156 MB / 494.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.1371, allocations: 3.938 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004245/0.1376, allocations: 51.69 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003088/0.1379, allocations: 63.69 kB / 494.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000452/0.1384, allocations: 123.7 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.1388, allocations: 319.4 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.139, allocations: 49.91 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.1393, allocations: 123.6 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003209/0.1396, allocations: 163.4 kB / 495.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.247e-05/0.1397, allocations: 20 kB / 495.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.381e-05/0.1398, allocations: 20 kB / 495.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.1399, allocations: 95.77 kB / 495.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.1402, allocations: 103.3 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.1405, allocations: 243.1 kB / 495.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1405, allocations: 0 / 495.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1405, allocations: 0 / 495.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1405, allocations: 4 kB / 495.8 MB, free: 13.39 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.002119/0.1427, allocations: 0.6777 MB / 496.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1427, allocations: 12.03 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.595e-05/0.1428, allocations: 28.66 kB / 496.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009418/0.1438, allocations: 362.6 kB / 496.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.1438, allocations: 8.375 kB / 496.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.1438, allocations: 20.31 kB / 496.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.1442, allocations: 186.6 kB / 497.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.1443, allocations: 0 / 497.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.1443, allocations: 12 kB / 497.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.1443, allocations: 7.938 kB / 497.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000355/0.1447, allocations: 163.9 kB / 497.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.146, allocations: 0.6563 MB / 497.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.1464, allocations: 222.4 kB / 498.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.1466, allocations: 116.7 kB / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.1466, allocations: 8.359 kB / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.1467, allocations: 34.5 kB / 498.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.1467, allocations: 4 kB / 498.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001603/0.1483, allocations: 0.5796 MB / 498.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.1484, allocations: 51.41 kB / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008293/0.1492, allocations: 356.8 kB / 499.3 MB, free: 9.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.1492, allocations: 25.7 kB / 499.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1494, allocations: 140.4 kB / 499.5 MB, free: 9.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.727e-05/0.1494, allocations: 78.86 kB / 499.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.593e-05/0.1495, allocations: 41.7 kB / 499.6 MB, free: 9.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1497, allocations: 338.8 kB / 499.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.1498, allocations: 92.17 kB / 500 MB, free: 8.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.15, allocations: 92.41 kB / 0.4884 GB, free: 8.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.152, allocations: 0.626 MB / 0.489 GB, free: 8.266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.152, allocations: 0 / 0.489 GB, free: 8.266 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007994/0.1528, allocations: 423.3 kB / 0.4894 GB, free: 7.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1528, allocations: 4 kB / 0.4894 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1528, allocations: 0 / 0.4894 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003803/0.1532, allocations: 104.8 kB / 0.4895 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1534, allocations: 39.92 kB / 0.4895 GB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.1557, allocations: 2.084 MB / 0.4916 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.156, allocations: 55.8 kB / 0.4916 GB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.1561, allocations: 4 kB / 0.4916 GB, free: 5.414 MB / 366.1 MB Warning: Assuming fixed start value for the following 6 variables: K.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Mr.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Mr.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Pr.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Pr.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (20): * Single equations (assignments): 19 * 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): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.1563, allocations: 167.2 kB / 0.4918 GB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.1563, allocations: 27.64 kB / 0.4918 GB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.634e-05/0.1564, allocations: 38.19 kB / 0.4918 GB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1565, allocations: 8 kB / 0.4918 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1565, allocations: 0 / 0.4918 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.1565, allocations: 3.984 kB / 0.4918 GB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004137/0.1569, allocations: 337.3 kB / 0.4922 GB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1569, allocations: 11.88 kB / 0.4922 GB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.1571, allocations: 23.98 kB / 0.4922 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/0.1574, allocations: 76.77 kB / 0.4923 GB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.1575, allocations: 11.94 kB / 0.4923 GB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.1592, allocations: 1.858 MB / 0.4941 GB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1592, allocations: 0 / 0.4941 GB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008872/0.1601, allocations: 0.5361 MB / 0.4946 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.452e-05/0.1602, allocations: 104.9 kB / 0.4947 GB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.1603, allocations: 4 kB / 0.4947 GB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.1607, allocations: 51.98 kB / 0.4948 GB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-05/0.1608, allocations: 15.98 kB / 0.4948 GB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.1608, allocations: 7.984 kB / 0.4948 GB, free: 1.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008223/0.1616, allocations: 280.3 kB / 0.4951 GB, free: 1.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.904e-06/0.1616, allocations: 0 / 0.4951 GB, free: 1.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.1622, allocations: 63.88 kB / 0.4951 GB, free: 1.574 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pr.x_scaled[1],Pr.x_scaled[2],Mr.x_scaled[1],Mr.x_scaled[2],K.x_scaled[1],K.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 (17): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001281/0.1623, allocations: 95.25 kB / 0.4952 GB, free: 1.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008196/0.1631, allocations: 401.4 kB / 0.4956 GB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1631, allocations: 0 / 0.4956 GB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004417/0.1636, allocations: 258.5 kB / 0.4958 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.164, allocations: 39.14 kB / 0.4959 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.1652, allocations: 0.5696 MB / 0.4964 GB, free: 176 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.1657, allocations: 0.7713 MB / 0.4972 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.1659, allocations: 66.19 kB / 0.4973 GB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.106e-05/0.166, allocations: 15.44 kB / 0.4973 GB, free: 15.29 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.166, allocations: 0 / 0.4973 GB, free: 15.29 MB / 382.1 MB Notification: Performance of Templates: time 0.007589/0.1736, allocations: 3.102 MB / 0.5003 GB, free: 12.2 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Smith_predictor.sim & ./AES_AES.Coursework.Typical_control_structures.Smith_predictor -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1)