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/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.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") [/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.09079/0.09079, allocations: 21.6 MB / 37.4 MB, free: 0.7461 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.001076/0.001076, allocations: 180.5 kB / 43.63 MB, free: 3.555 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.264/1.264, allocations: 205.1 MB / 254.8 MB, free: 14.27 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.0009673/0.0009673, allocations: 110.2 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 55.25 kB / 372.3 MB, free: 59.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.0822, allocations: 51.97 MB / 424.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002664/0.0849, allocations: 2.029 MB / 426.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.08607, allocations: 0.753 MB / 427.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.08626, allocations: 0 / 427.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004364/0.08673, allocations: 71.59 kB / 427.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000259/0.087, allocations: 95.64 kB / 427.2 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.08743, allocations: 171.7 kB / 427.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.0879, allocations: 475.1 kB / 427.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.08808, allocations: 76.39 kB / 428 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.08841, allocations: 171.4 kB / 428.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.08876, allocations: 211.1 kB / 428.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.742e-05/0.08885, allocations: 12 kB / 428.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.829e-05/0.0889, allocations: 12 kB / 428.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.08903, allocations: 91.7 kB / 428.4 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.08916, allocations: 111.2 kB / 428.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001858/0.08935, allocations: 255.1 kB / 428.8 MB, free: 10.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.08936, allocations: 0 / 428.8 MB, free: 10.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08936, allocations: 0 / 428.8 MB, free: 10.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.08938, allocations: 0 / 428.8 MB, free: 10.01 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.00177/0.09115, allocations: 0.7827 MB / 429.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.0912, allocations: 8.031 kB / 429.6 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.419e-05/0.09128, allocations: 40.48 kB / 429.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000933/0.09222, allocations: 447.8 kB / 430.1 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.09225, allocations: 8.375 kB / 430.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.09229, allocations: 24.28 kB / 430.1 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002644/0.09256, allocations: 177.8 kB / 430.3 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.09258, allocations: 0 / 430.3 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.0926, allocations: 4 kB / 430.3 MB, free: 8.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.09261, allocations: 7.984 kB / 430.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002845/0.0929, allocations: 183.8 kB / 430.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009071/0.09382, allocations: 0.6485 MB / 431.1 MB, free: 7.547 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006758/0.0945, allocations: 338.8 kB / 431.4 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.09465, allocations: 112.7 kB / 431.6 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.09469, allocations: 4 kB / 431.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.09471, allocations: 30.56 kB / 431.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.172e-06/0.09472, allocations: 0 / 431.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009857/0.09571, allocations: 0.5027 MB / 432.1 MB, free: 6.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.072e-05/0.09574, allocations: 51.41 kB / 432.1 MB, free: 6.457 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008438/0.09659, allocations: 452.3 kB / 432.6 MB, free: 6.008 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.09662, allocations: 37.69 kB / 432.6 MB, free: 5.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.922e-05/0.09669, allocations: 164.4 kB / 432.8 MB, free: 5.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.09674, allocations: 82.84 kB / 432.9 MB, free: 5.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.233e-05/0.09681, allocations: 41.72 kB / 432.9 MB, free: 5.672 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.428e-05/0.09687, allocations: 342.8 kB / 433.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.097, allocations: 84.17 kB / 433.3 MB, free: 5.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.09714, allocations: 106.1 kB / 433.4 MB, free: 5.137 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.09843, allocations: 0.5182 MB / 433.9 MB, free: 4.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.09845, allocations: 0 / 433.9 MB, free: 4.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000468/0.09892, allocations: 353.8 kB / 434.3 MB, free: 4.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.09895, allocations: 8.031 kB / 434.3 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.09896, allocations: 0 / 434.3 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001731/0.09914, allocations: 48.83 kB / 434.3 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.09931, allocations: 39.92 kB / 434.4 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009175/0.1002, allocations: 1.499 MB / 435.9 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.1006, allocations: 71.78 kB / 435.9 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1007, allocations: 4.062 kB / 436 MB, free: 2.453 MB / 298.7 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.0001712/0.1008, allocations: 166.7 kB / 436.1 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.1009, allocations: 27.72 kB / 436.1 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.441e-05/0.101, allocations: 47.02 kB / 436.2 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.101, allocations: 8 kB / 436.2 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.101, allocations: 0 / 436.2 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.101, allocations: 3.984 kB / 436.2 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.1013, allocations: 349.3 kB / 436.5 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1013, allocations: 4 kB / 436.5 MB, free: 1.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.1015, allocations: 28.11 kB / 436.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.1016, allocations: 56.81 kB / 436.6 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1016, allocations: 4 kB / 436.6 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007821/0.1024, allocations: 1.495 MB / 438.1 MB, free: 84 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1024, allocations: 7.969 kB / 438.1 MB, free: 76 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005404/0.1078, allocations: 4.637 MB / 442.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.129e-05/0.108, allocations: 116.8 kB / 442.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.108, allocations: 11.98 kB / 442.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004268/0.1084, allocations: 51.98 kB / 442.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.1085, allocations: 27.95 kB / 443 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.1085, allocations: 4 kB / 443 MB, free: 10.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008147/0.1094, allocations: 362.8 kB / 443.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1094, allocations: 3.938 kB / 443.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004295/0.1098, allocations: 83.94 kB / 443.4 MB, free: 10.45 MB / 314.7 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.0001069/0.1099, allocations: 99.25 kB / 443.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005944/0.1105, allocations: 366.3 kB / 443.9 MB, free: 9.969 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1105, allocations: 0 / 443.9 MB, free: 9.969 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.1108, allocations: 238.6 kB / 444.1 MB, free: 9.723 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.1113, allocations: 52.94 kB / 444.2 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.1126, allocations: 1.04 MB / 445.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.1129, allocations: 0.8029 MB / 446 MB, free: 7.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.1131, allocations: 62.25 kB / 446.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.099e-05/0.1132, allocations: 23.38 kB / 446.1 MB, free: 7.668 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1132, allocations: 0 / 446.1 MB, free: 7.668 MB / 314.7 MB Notification: Performance of Templates: time 0.006583/0.1198, allocations: 4.01 MB / 450.1 MB, free: 3.656 MB / 314.7 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)