Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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.FF_compensation_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001081/0.001081, allocations: 189 kB / 16.25 MB, free: 6.625 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.318/1.318, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1883/0.1883, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 71.88 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2741, allocations: 54.93 MB / 435.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002504/0.2766, allocations: 2.024 MB / 437.2 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009735/0.2776, allocations: 0.7036 MB / 438 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.614e-05/0.2777, allocations: 3.938 kB / 438 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.278, allocations: 73.14 kB / 438 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.2783, allocations: 97.36 kB / 438.1 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.2786, allocations: 167.1 kB / 438.3 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003536/0.279, allocations: 497.6 kB / 438.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.2791, allocations: 75.08 kB / 438.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.2793, allocations: 199.2 kB / 439 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2795, allocations: 213 kB / 439.2 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.2796, allocations: 23.28 kB / 439.3 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.688e-05/0.2796, allocations: 22.91 kB / 439.3 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.2797, allocations: 98.77 kB / 439.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.75e-05/0.2798, allocations: 128.8 kB / 439.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.28, allocations: 268.1 kB / 439.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.28, allocations: 0 / 439.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.28, allocations: 3.938 kB / 439.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.2801, allocations: 3.938 kB / 439.8 MB, free: 37.27 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.001808/0.2819, allocations: 0.7714 MB / 440.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2819, allocations: 7.938 kB / 440.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.282, allocations: 34.03 kB / 440.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009217/0.2829, allocations: 451 kB / 441 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.2829, allocations: 8.719 kB / 441 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.283, allocations: 19.56 kB / 441.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.2833, allocations: 187.5 kB / 441.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2833, allocations: 2.531 kB / 441.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2833, allocations: 4 kB / 441.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2833, allocations: 5.438 kB / 441.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.2836, allocations: 183.3 kB / 441.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008717/0.2845, allocations: 0.6472 MB / 442.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007516/0.2853, allocations: 341.6 kB / 442.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.2854, allocations: 106.6 kB / 442.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.2855, allocations: 6.5 kB / 442.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.313e-05/0.2855, allocations: 33.44 kB / 442.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.2855, allocations: 4 kB / 442.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001008/0.2865, allocations: 0.491 MB / 443.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.2865, allocations: 58 kB / 443.1 MB, free: 35.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008716/0.2874, allocations: 456 kB / 443.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.2874, allocations: 29.7 kB / 443.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.525e-05/0.2875, allocations: 165.5 kB / 443.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.2876, allocations: 76.86 kB / 443.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.207e-05/0.2877, allocations: 46.34 kB / 443.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.2877, allocations: 342.1 kB / 444.2 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2879, allocations: 81.58 kB / 444.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.288, allocations: 111.8 kB / 444.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.2894, allocations: 0.515 MB / 444.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2894, allocations: 4 kB / 444.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000494/0.2899, allocations: 346.2 kB / 445.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.2899, allocations: 7.844 kB / 445.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.29, allocations: 0 / 445.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.2901, allocations: 52.83 kB / 445.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.2903, allocations: 35.03 kB / 445.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009968/0.2913, allocations: 1.602 MB / 446.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.2917, allocations: 78.94 kB / 447 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.2917, allocations: 6.906 kB / 447 MB, free: 32.73 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (23): * Single equations (assignments): 22 * 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 prepare postOptimizeDAE: time 0.0001713/0.2919, allocations: 176.4 kB / 447.2 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/0.292, allocations: 27.25 kB / 447.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.369e-05/0.292, allocations: 42.12 kB / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2921, allocations: 0 / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2921, allocations: 6.812 kB / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2921, allocations: 7.359 kB / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002894/0.2924, allocations: 347.9 kB / 447.6 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2924, allocations: 3.938 kB / 447.6 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.2926, allocations: 27.44 kB / 447.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001358/0.2927, allocations: 49.53 kB / 447.7 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.2927, allocations: 10.84 kB / 447.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009021/0.2937, allocations: 1.611 MB / 449.3 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.2937, allocations: 4 kB / 449.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006278/0.2943, allocations: 0.5107 MB / 449.8 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.2944, allocations: 112.8 kB / 449.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.967e-05/0.2944, allocations: 6.688 kB / 450 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/0.2949, allocations: 68.42 kB / 450 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.295, allocations: 21.38 kB / 450 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.295, allocations: 5.25 kB / 450 MB, free: 30.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007693/0.2958, allocations: 363.9 kB / 450.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2958, allocations: 0 / 450.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.2961, allocations: 48.88 kB / 450.5 MB, free: 30.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * 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.0001075/0.2962, allocations: 103.3 kB / 450.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005912/0.2968, allocations: 389.5 kB / 450.9 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2968, allocations: 0 / 450.9 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.2971, allocations: 238.2 kB / 451.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.2975, allocations: 57.98 kB / 451.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009772/0.2985, allocations: 0.7208 MB / 451.9 MB, free: 29.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.2987, allocations: 0.7935 MB / 452.7 MB, free: 28.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.2988, allocations: 56.78 kB / 452.8 MB, free: 28.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.902e-05/0.2989, allocations: 26.62 kB / 452.8 MB, free: 28.56 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2989, allocations: 0 / 452.8 MB, free: 28.56 MB / 350.1 MB Notification: Performance of Templates: time 0.006091/0.305, allocations: 3.113 MB / 455.9 MB, free: 28.34 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.makefile (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)