Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 100.1 kB / 15.88 MB, free: 12 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.001422/0.001422, allocations: 199.2 kB / 16.79 MB, free: 6.809 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.299/1.299, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.196/0.196, allocations: 22.35 MB / 313 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 63.91 kB / 381.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2462, allocations: 54.94 MB / 436.4 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002548/0.2488, allocations: 2.104 MB / 438.5 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008279/0.2496, allocations: 0.6729 MB / 439.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.2497, allocations: 2.562 kB / 439.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002833/0.25, allocations: 33.97 kB / 439.2 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.2502, allocations: 37.91 kB / 439.2 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.2505, allocations: 172 kB / 439.4 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.2508, allocations: 300.4 kB / 439.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.2509, allocations: 95.67 kB / 439.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.2511, allocations: 107.6 kB / 439.9 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.2512, allocations: 134.2 kB / 440 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.2513, allocations: 11.62 kB / 440 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.634e-05/0.2513, allocations: 14.75 kB / 440 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.649e-05/0.2514, allocations: 58.27 kB / 440.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.299e-05/0.2515, allocations: 122.2 kB / 440.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.2517, allocations: 215.5 kB / 440.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.2517, allocations: 0 / 440.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2517, allocations: 0 / 440.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2517, allocations: 0 / 440.4 MB, free: 37.31 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001047/0.2527, allocations: 0.6085 MB / 441 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2528, allocations: 19.19 kB / 441.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.469e-05/0.2529, allocations: 25.78 kB / 441.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.2533, allocations: 320.4 kB / 441.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2533, allocations: 17.09 kB / 441.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.2534, allocations: 18.47 kB / 441.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003739/0.2537, allocations: 259.3 kB / 441.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.2538, allocations: 0 / 441.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.2538, allocations: 7.25 kB / 441.7 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2538, allocations: 5.594 kB / 441.7 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.2542, allocations: 186.6 kB / 441.9 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.2552, allocations: 0.7164 MB / 442.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.2559, allocations: 250.4 kB / 442.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.2561, allocations: 99.5 kB / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.2561, allocations: 11.92 kB / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.2562, allocations: 30.56 kB / 443 MB, free: 35.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.222e-06/0.2562, allocations: 0 / 443 MB, free: 35.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002251/0.2584, allocations: 0.819 MB / 443.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.2585, allocations: 109.5 kB / 443.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.2588, allocations: 264.5 kB / 444.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.2588, allocations: 32.33 kB / 444.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.2589, allocations: 160 kB / 444.3 MB, free: 35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.259, allocations: 62.27 kB / 444.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.731e-05/0.259, allocations: 40.19 kB / 444.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.335e-05/0.2591, allocations: 335.2 kB / 444.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.2593, allocations: 99.47 kB / 444.9 MB, free: 34.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.2595, allocations: 136 kB / 445 MB, free: 34.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.2598, allocations: 204.4 kB / 445.2 MB, free: 34.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2598, allocations: 0 / 445.2 MB, free: 34.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004178/0.2602, allocations: 270.8 kB / 445.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2603, allocations: 9.531 kB / 445.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.2603, allocations: 0 / 445.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.2603, allocations: 5.125 kB / 445.5 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.2606, allocations: 63.53 kB / 445.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.2606, allocations: 0 / 445.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.2608, allocations: 36.86 kB / 445.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.2608, allocations: 10.88 kB / 445.6 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001515/0.261, allocations: 166 kB / 445.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001095/0.2611, allocations: 111.5 kB / 445.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001921/0.2613, allocations: 170 kB / 446 MB, free: 33.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.052e-06/0.2613, allocations: 3.938 kB / 446 MB, free: 33.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002681/0.2616, allocations: 214.7 kB / 446.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.071e-06/0.2616, allocations: 9.438 kB / 446.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-06/0.2616, allocations: 6.594 kB / 446.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-06/0.2616, allocations: 0 / 446.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.2619, allocations: 48.12 kB / 446.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.455e-06/0.2619, allocations: 2.844 kB / 446.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.2621, allocations: 32.75 kB / 446.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.2621, allocations: 2.812 kB / 446.3 MB, free: 33.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 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 prepare postOptimizeDAE: time 8.08e-05/0.2622, allocations: 193.9 kB / 446.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.2622, allocations: 35.56 kB / 446.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008883/0.2631, allocations: 406 kB / 447 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2632, allocations: 2.5 kB / 447 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2632, allocations: 0 / 447 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2632, allocations: 3.781 kB / 447 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.2635, allocations: 328 kB / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2635, allocations: 0 / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.2636, allocations: 17.33 kB / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004728/0.2641, allocations: 148.4 kB / 447.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.2641, allocations: 4 kB / 447.5 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/0.2666, allocations: 2.222 MB / 449.7 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2666, allocations: 0 / 449.7 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.2676, allocations: 0.5879 MB / 450.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.356e-05/0.2677, allocations: 98.61 kB / 450.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.2677, allocations: 6.016 kB / 450.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.268, allocations: 29.2 kB / 450.4 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.295e-05/0.268, allocations: 22.77 kB / 450.4 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.268, allocations: 3.094 kB / 450.4 MB, free: 31.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002739/0.2683, allocations: 201.6 kB / 450.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2683, allocations: 0 / 450.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.2688, allocations: 87.28 kB / 450.7 MB, free: 30.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000103/0.2689, allocations: 104.3 kB / 450.8 MB, free: 30.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005126/0.2694, allocations: 304 kB / 451.1 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2694, allocations: 0 / 451.1 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.2699, allocations: 275.4 kB / 451.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.2703, allocations: 47.3 kB / 451.4 MB, free: 30.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008646/0.2711, allocations: 0.6619 MB / 452.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000153/0.2713, allocations: 0.7558 MB / 452.8 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.102e-05/0.2714, allocations: 19.19 kB / 452.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2714, allocations: 11.88 kB / 452.9 MB, free: 29.44 MB / 350.1 MB Notification: Performance of Templates: time 0.004424/0.2758, allocations: 3.483 MB / 456.4 MB, free: 29.16 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)