Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001679/0.001679, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09173/0.09173, allocations: 22.32 MB / 313.4 MB, free: 8.992 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 64.08 kB / 381.5 MB, free: 41.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07291/0.07412, allocations: 54.95 MB / 436.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00288/0.07704, allocations: 1.86 MB / 438.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004186/0.07748, allocations: 199.3 kB / 438.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.541e-05/0.07758, allocations: 4 kB / 438.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.07771, allocations: 35.55 kB / 438.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.297e-05/0.07779, allocations: 15.81 kB / 438.5 MB, free: 10.96 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.07804, allocations: 99.86 kB / 438.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.0783, allocations: 236.8 kB / 438.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.07845, allocations: 60.38 kB / 438.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.382e-05/0.07855, allocations: 79.7 kB / 439 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.07867, allocations: 95.52 kB / 439.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.797e-05/0.07871, allocations: 27.94 kB / 439.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.941e-05/0.07875, allocations: 20 kB / 439.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.48e-05/0.0788, allocations: 43.84 kB / 439.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.557e-05/0.07889, allocations: 95.45 kB / 439.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.07908, allocations: 199.4 kB / 439.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.07909, allocations: 0 / 439.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.0791, allocations: 0 / 439.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.07911, allocations: 0 / 439.5 MB, free: 10.02 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007663/0.07988, allocations: 0.5108 MB / 440 MB, free: 9.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.07992, allocations: 8.031 kB / 440 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.672e-05/0.07998, allocations: 28.66 kB / 440 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.08021, allocations: 232.6 kB / 440.2 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.08025, allocations: 16.81 kB / 440.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.187e-05/0.0803, allocations: 24.38 kB / 440.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.08071, allocations: 240.8 kB / 440.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.08073, allocations: 192 / 440.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.08076, allocations: 15.94 kB / 440.5 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.08077, allocations: 4 kB / 440.5 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.08111, allocations: 157 kB / 440.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.0827, allocations: 1.029 MB / 441.7 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.08303, allocations: 152.7 kB / 441.9 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.08318, allocations: 72.77 kB / 441.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.08322, allocations: 11.94 kB / 441.9 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.08324, allocations: 30.56 kB / 442 MB, free: 7.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.726e-06/0.08325, allocations: 3.984 kB / 442 MB, free: 7.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005483/0.08381, allocations: 241.6 kB / 442.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.08385, allocations: 55.41 kB / 442.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.08404, allocations: 215.7 kB / 442.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.08407, allocations: 33.7 kB / 442.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.072e-05/0.08416, allocations: 156.1 kB / 442.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.08422, allocations: 74.91 kB / 442.7 MB, free: 6.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.789e-05/0.08432, allocations: 69.69 kB / 442.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.08445, allocations: 334.8 kB / 443.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.08462, allocations: 79.89 kB / 443.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.08484, allocations: 162.9 kB / 443.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.08622, allocations: 484.7 kB / 443.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.08624, allocations: 0 / 443.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000513/0.08676, allocations: 313 kB / 444.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.08678, allocations: 4 kB / 444.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.0868, allocations: 4 kB / 444.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.08682, allocations: 4 kB / 444.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.08713, allocations: 79.84 kB / 444.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.08716, allocations: 8.359 kB / 444.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.08734, allocations: 39.69 kB / 444.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.08737, allocations: 12 kB / 444.3 MB, free: 4.848 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) "Connector of Real output signal" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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.0002065/0.08758, allocations: 154.4 kB / 444.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.08763, allocations: 23.69 kB / 444.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004727/0.08811, allocations: 231.9 kB / 444.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.08812, allocations: 0 / 444.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.08813, allocations: 0 / 444.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.08814, allocations: 4 kB / 444.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004612/0.08861, allocations: 309.3 kB / 445 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.08862, allocations: 7.938 kB / 445 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003327/0.08896, allocations: 55.91 kB / 445.1 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.08898, allocations: 0 / 445.1 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.089, allocations: 11.94 kB / 445.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.08901, allocations: 4 kB / 445.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.08902, allocations: 0 / 445.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005832/0.08961, allocations: 385.9 kB / 445.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.08967, allocations: 100.8 kB / 445.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.08971, allocations: 4 kB / 445.6 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.08988, allocations: 11.98 kB / 445.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.08995, allocations: 23.97 kB / 445.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.08997, allocations: 8 kB / 445.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001108/0.09008, allocations: 149 kB / 445.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09009, allocations: 0 / 445.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.09039, allocations: 43.91 kB / 445.8 MB, free: 3.246 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 9.556e-05/0.09049, allocations: 111.2 kB / 445.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004489/0.09095, allocations: 215.7 kB / 446.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.09096, allocations: 0 / 446.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.09114, allocations: 101.7 kB / 446.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.09147, allocations: 26.95 kB / 446.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008911/0.09237, allocations: 0.5652 MB / 446.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.09268, allocations: 0.7521 MB / 447.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.826e-05/0.09276, allocations: 23.44 kB / 447.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09277, allocations: 0 / 447.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of Templates: time 0.004246/0.09702, allocations: 2.676 MB / 450.2 MB, free: 14.71 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & ./AES_AES.Coursework.Typical_control_structures.Cascade_with_locks -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)