Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.461/1.461, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2179/0.2179, allocations: 22.35 MB / 312.7 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 67.89 kB / 380.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3149, allocations: 54.94 MB / 435.8 MB, free: 39.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002873/0.3178, allocations: 1.818 MB / 437.6 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.3189, allocations: 0.6598 MB / 438.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.319, allocations: 2.938 kB / 438.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.3193, allocations: 24.11 kB / 438.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.3194, allocations: 44.98 kB / 438.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.3197, allocations: 118.8 kB / 438.4 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.3199, allocations: 227.2 kB / 438.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.32, allocations: 54.39 kB / 438.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.3201, allocations: 91.36 kB / 438.8 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.3203, allocations: 100.3 kB / 438.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.964e-05/0.3203, allocations: 22.53 kB / 438.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.25e-05/0.3204, allocations: 20.69 kB / 438.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.3205, allocations: 50.97 kB / 439 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.082e-05/0.3205, allocations: 93.45 kB / 439.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.3207, allocations: 180.9 kB / 439.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3207, allocations: 0 / 439.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3207, allocations: 0 / 439.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.3207, allocations: 0 / 439.3 MB, free: 37.77 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009264/0.3217, allocations: 0.58 MB / 439.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.3217, allocations: 8.688 kB / 439.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.3218, allocations: 23.62 kB / 439.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004027/0.3222, allocations: 281.9 kB / 440.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.3222, allocations: 10.19 kB / 440.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.3222, allocations: 19.88 kB / 440.2 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.3226, allocations: 181.4 kB / 440.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.3226, allocations: 0 / 440.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.3226, allocations: 14.7 kB / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3226, allocations: 2.688 kB / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.3229, allocations: 135.2 kB / 440.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007792/0.3237, allocations: 0.5264 MB / 441 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004645/0.3242, allocations: 182.4 kB / 441.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.3244, allocations: 95.66 kB / 441.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3244, allocations: 3 kB / 441.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.3247, allocations: 189.7 kB / 441.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3247, allocations: 0 / 441.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001487/0.3262, allocations: 0.6243 MB / 442.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.3262, allocations: 156.8 kB / 442.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.3265, allocations: 216.6 kB / 442.5 MB, free: 35.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.3266, allocations: 32.95 kB / 442.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.3266, allocations: 118.4 kB / 442.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.3267, allocations: 51.33 kB / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/0.3267, allocations: 36.09 kB / 442.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.3268, allocations: 334.6 kB / 443 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.3269, allocations: 67.41 kB / 443.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.3271, allocations: 91.55 kB / 443.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3282, allocations: 0.5263 MB / 443.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3282, allocations: 0 / 443.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003968/0.3286, allocations: 277.2 kB / 444 MB, free: 34.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.3286, allocations: 66.83 kB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3286, allocations: 0 / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3287, allocations: 3.938 kB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.3288, allocations: 35.47 kB / 444.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.3289, allocations: 0 / 444.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.3291, allocations: 28.8 kB / 444.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.3291, allocations: 5.5 kB / 444.1 MB, free: 34.47 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002025/0.3293, allocations: 167.1 kB / 444.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001044/0.3294, allocations: 79.66 kB / 444.4 MB, free: 34.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008334/0.3303, allocations: 0.4907 MB / 444.8 MB, free: 34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.924e-06/0.3303, allocations: 3.938 kB / 444.9 MB, free: 34 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0002838/0.3306, allocations: 250.8 kB / 445.1 MB, free: 33.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.3306, allocations: 67.94 kB / 445.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-06/0.3306, allocations: 0 / 445.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.767e-06/0.3306, allocations: 0 / 445.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.3308, allocations: 28.81 kB / 445.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.3308, allocations: 0 / 445.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.331, allocations: 31.62 kB / 445.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.331, allocations: 2.906 kB / 445.2 MB, free: 33.77 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001112/0.3311, allocations: 236.7 kB / 445.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.303e-05/0.3311, allocations: 17.59 kB / 445.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.937e-05/0.3312, allocations: 27.95 kB / 445.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3312, allocations: 6.891 kB / 445.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3312, allocations: 0 / 445.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3312, allocations: 0 / 445.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.3314, allocations: 274.9 kB / 445.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3314, allocations: 0 / 445.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.3315, allocations: 14.75 kB / 445.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/0.3319, allocations: 140.2 kB / 445.9 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.3319, allocations: 13.48 kB / 445.9 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007256/0.3327, allocations: 0.802 MB / 446.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3327, allocations: 3.938 kB / 446.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000829/0.3335, allocations: 0.4983 MB / 447.2 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.788e-05/0.3336, allocations: 94.08 kB / 447.3 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.3336, allocations: 9.828 kB / 447.3 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.3338, allocations: 21.83 kB / 447.4 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/0.3339, allocations: 19.81 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.3339, allocations: 6.5 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002506/0.3342, allocations: 165.6 kB / 447.6 MB, free: 32.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3342, allocations: 0 / 447.6 MB, free: 32.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003155/0.3345, allocations: 62.12 kB / 447.6 MB, free: 32.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.0001193/0.3346, allocations: 110.3 kB / 447.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000564/0.3352, allocations: 492.5 kB / 448.2 MB, free: 31.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3352, allocations: 0 / 448.2 MB, free: 31.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000389/0.3356, allocations: 218.2 kB / 448.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.3359, allocations: 41.72 kB / 448.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007144/0.3366, allocations: 411.7 kB / 448.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.3368, allocations: 0.7316 MB / 449.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.3369, allocations: 42.25 kB / 449.6 MB, free: 30.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.337, allocations: 15.25 kB / 449.6 MB, free: 30.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.337, allocations: 0 / 449.6 MB, free: 30.59 MB / 350.1 MB Notification: Performance of Templates: time 0.005228/0.3422, allocations: 2.651 MB / 452.3 MB, free: 30.36 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.makefile (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & ./AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)