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.005173/0.005173, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.00132/0.001319, allocations: 192.2 kB / 16.79 MB, free: 6.254 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.329/1.329, allocations: 222.9 MB / 240.5 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1954/0.1954, allocations: 22.35 MB / 313 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.91 kB / 380.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2489, allocations: 54.94 MB / 435.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.00271/0.2516, allocations: 1.862 MB / 437.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009296/0.2526, allocations: 0.6077 MB / 438.2 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.821e-05/0.2526, allocations: 3 kB / 438.2 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000298/0.253, allocations: 44.89 kB / 438.2 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.2531, allocations: 62.83 kB / 438.3 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.2534, allocations: 109.2 kB / 438.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002442/0.2536, allocations: 302.7 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.2538, allocations: 42.88 kB / 438.7 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.2539, allocations: 114.9 kB / 438.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.2541, allocations: 158.6 kB / 439 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.888e-05/0.2541, allocations: 11.41 kB / 439 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.286e-05/0.2542, allocations: 10.88 kB / 439 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.2543, allocations: 93.78 kB / 439.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.33e-05/0.2544, allocations: 95.08 kB / 439.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.2545, allocations: 181.8 kB / 439.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2545, allocations: 0 / 439.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2545, allocations: 0 / 439.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.2546, allocations: 0 / 439.4 MB, free: 37.35 MB / 350.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.001545/0.2561, allocations: 0.6871 MB / 440.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.2562, allocations: 16.44 kB / 440.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.2562, allocations: 27 kB / 440.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.257, allocations: 358.9 kB / 440.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.257, allocations: 9.75 kB / 440.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.257, allocations: 23.41 kB / 440.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.2573, allocations: 179.6 kB / 440.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.2573, allocations: 4 kB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.2574, allocations: 6.469 kB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.2574, allocations: 2.688 kB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002833/0.2577, allocations: 170.7 kB / 440.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009001/0.2586, allocations: 0.6469 MB / 441.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.2589, allocations: 221.2 kB / 441.7 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.259, allocations: 113.1 kB / 441.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.2591, allocations: 7.188 kB / 441.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.2591, allocations: 44.41 kB / 441.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.2591, allocations: 0 / 441.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001329/0.2604, allocations: 0.5771 MB / 442.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.2605, allocations: 54.31 kB / 442.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006449/0.2611, allocations: 352 kB / 442.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.2612, allocations: 33.02 kB / 442.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.2612, allocations: 144.9 kB / 443 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.432e-05/0.2613, allocations: 73.3 kB / 443.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.2614, allocations: 42.22 kB / 443.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.11e-05/0.2614, allocations: 338.5 kB / 443.4 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.2616, allocations: 90.17 kB / 443.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.2617, allocations: 95.53 kB / 443.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.2635, allocations: 0.6348 MB / 444.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2635, allocations: 0 / 444.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006987/0.2642, allocations: 418.3 kB / 444.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2642, allocations: 6.375 kB / 444.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2642, allocations: 0 / 444.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000326/0.2646, allocations: 106 kB / 444.8 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.2647, allocations: 37.14 kB / 444.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.2664, allocations: 1.913 MB / 446.7 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.2667, allocations: 58.16 kB / 446.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.2667, allocations: 5.781 kB / 446.8 MB, free: 32.8 MB / 350.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.0001888/0.2669, allocations: 172.8 kB / 447 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.267, allocations: 22.81 kB / 447 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.509e-05/0.2671, allocations: 40.92 kB / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2671, allocations: 6.594 kB / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.2671, allocations: 0 / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2671, allocations: 0 / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003028/0.2674, allocations: 336 kB / 447.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2674, allocations: 6.625 kB / 447.4 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.2676, allocations: 28.5 kB / 447.4 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.2678, allocations: 68.2 kB / 447.5 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.2678, allocations: 11.38 kB / 447.5 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.269, allocations: 1.682 MB / 449.2 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.269, allocations: 0 / 449.2 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007276/0.2697, allocations: 0.542 MB / 449.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.2698, allocations: 112.9 kB / 449.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.2698, allocations: 6.938 kB / 449.8 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.2702, allocations: 48.45 kB / 449.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.2703, allocations: 8.75 kB / 449.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.2703, allocations: 12.55 kB / 449.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005517/0.2708, allocations: 277.8 kB / 450.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2709, allocations: 0 / 450.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003818/0.2712, allocations: 56.88 kB / 450.2 MB, free: 30.26 MB / 350.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.0001021/0.2714, allocations: 108 kB / 450.3 MB, free: 30.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006061/0.272, allocations: 394.3 kB / 450.7 MB, free: 29.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.272, allocations: 0 / 450.7 MB, free: 29.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.2723, allocations: 258.1 kB / 451 MB, free: 29.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.2727, allocations: 32.78 kB / 451 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008513/0.2736, allocations: 0.6977 MB / 451.7 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.2738, allocations: 0.772 MB / 452.5 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.317e-05/0.2738, allocations: 24.56 kB / 452.5 MB, free: 28.65 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2738, allocations: 0 / 452.5 MB, free: 28.65 MB / 350.1 MB Notification: Performance of Templates: time 0.005666/0.2795, allocations: 3.825 MB / 456.3 MB, free: 28.37 MB / 350.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)