Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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) 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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.177/1.177, allocations: 222.9 MB / 239.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009966/0.0009964, allocations: 107.5 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4021/0.4021, allocations: 78.51 MB / 418.5 MB, free: 8.512 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 63.91 kB / 497.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2666, allocations: 68.18 MB / 0.5524 GB, free: 19.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.004863/0.2715, allocations: 6.945 MB / 0.5592 GB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.2741, allocations: 2.025 MB / 0.5612 GB, free: 10.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003372/0.2745, allocations: 15.94 kB / 0.5612 GB, free: 10.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004638/0.275, allocations: 190.8 kB / 0.5614 GB, free: 10.65 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001229/0.2762, allocations: 0.7298 MB / 0.5621 GB, free: 9.926 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008523/0.2771, allocations: 0.5997 MB / 0.5627 GB, free: 9.332 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008726/0.2779, allocations: 1.569 MB / 0.5642 GB, free: 7.754 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.2782, allocations: 289.4 kB / 0.5645 GB, free: 7.461 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004339/0.2787, allocations: 0.6105 MB / 0.5651 GB, free: 6.848 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005672/0.2793, allocations: 0.8088 MB / 0.5659 GB, free: 6.035 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.2794, allocations: 76 kB / 0.5659 GB, free: 5.961 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.2797, allocations: 207.9 kB / 0.5661 GB, free: 5.758 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.2799, allocations: 290.6 kB / 0.5664 GB, free: 5.473 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003595/0.2803, allocations: 0.6405 MB / 0.567 GB, free: 4.828 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009142/0.2812, allocations: 1.625 MB / 0.5686 GB, free: 3.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2812, allocations: 4 kB / 0.5686 GB, free: 3.195 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2812, allocations: 3.938 kB / 0.5686 GB, free: 3.191 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2813, allocations: 0 / 0.5686 GB, free: 3.191 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.007716/0.289, allocations: 2.754 MB / 0.5713 GB, free: 380 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.289, allocations: 11.97 kB / 0.5713 GB, free: 368 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004498/0.2935, allocations: 0.7826 MB / 0.5721 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.295, allocations: 0.9023 MB / 0.573 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002658/0.2952, allocations: 260.2 kB / 0.5732 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.2954, allocations: 91.84 kB / 0.5733 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002056/0.2975, allocations: 1.102 MB / 0.5744 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.2975, allocations: 3.938 kB / 0.5744 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-05/0.2976, allocations: 32 kB / 0.5744 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.2976, allocations: 20 kB / 0.5744 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.2996, allocations: 0.9955 MB / 0.5754 GB, free: 12.07 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006261/0.3059, allocations: 3.89 MB / 0.5792 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007277/0.3132, allocations: 2.379 MB / 0.5815 GB, free: 5.531 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.3145, allocations: 0.6934 MB / 0.5822 GB, free: 4.832 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.998e-05/0.3146, allocations: 12.98 kB / 0.5822 GB, free: 4.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001528/0.3161, allocations: 0.8255 MB / 0.583 GB, free: 3.977 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 2.494e-06/0.3161, allocations: 4 kB / 0.583 GB, free: 3.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.0283/0.3444, allocations: 7.229 MB / 0.5901 GB, free: 12.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.3445, allocations: 115.8 kB / 0.5902 GB, free: 12.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001619/0.3462, allocations: 1.123 MB / 0.5913 GB, free: 11.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.3463, allocations: 45.7 kB / 0.5914 GB, free: 11.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00035/0.3467, allocations: 0.493 MB / 0.5918 GB, free: 10.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.347, allocations: 366.9 kB / 0.5922 GB, free: 10.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005033/0.3475, allocations: 291.4 kB / 0.5925 GB, free: 10.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.3476, allocations: 301.1 kB / 0.5927 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/0.3492, allocations: 0.7808 MB / 0.5935 GB, free: 9.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.3509, allocations: 0.9615 MB / 0.5944 GB, free: 8.117 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02395/0.3748, allocations: 5.793 MB / 0.6001 GB, free: 2.238 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.3749, allocations: 8 kB / 0.6001 GB, free: 2.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01346/0.3883, allocations: 4.438 MB / 0.6044 GB, free: 13.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.722e-05/0.3884, allocations: 71.27 kB / 0.6045 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.3884, allocations: 4 kB / 0.6045 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005865/0.3943, allocations: 1.635 MB / 0.6061 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3957, allocations: 291.6 kB / 0.6064 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01866/0.4144, allocations: 7.937 MB / 0.6141 GB, free: 3.672 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.4163, allocations: 202.6 kB / 0.6143 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.4165, allocations: 63.91 kB / 0.6144 GB, free: 3.41 MB / 426.7 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 2 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005706/0.417, allocations: 307.9 kB / 0.6147 GB, free: 3.098 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.4173, allocations: 130.4 kB / 0.6148 GB, free: 2.969 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/0.4298, allocations: 3.893 MB / 0.6186 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4299, allocations: 8 kB / 0.6186 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.4299, allocations: 11.94 kB / 0.6186 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.4299, allocations: 3.984 kB / 0.6186 GB, free: 15.02 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.4439, allocations: 5.52 MB / 0.624 GB, free: 9.395 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.4439, allocations: 0 / 0.624 GB, free: 9.395 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005971/0.4445, allocations: 99.89 kB / 0.6241 GB, free: 9.297 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/0.4498, allocations: 1.594 MB / 0.6257 GB, free: 7.695 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4499, allocations: 27.98 kB / 0.6257 GB, free: 7.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01845/0.4684, allocations: 8.801 MB / 0.6343 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4684, allocations: 0 / 0.6343 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08999/0.5584, allocations: 33.31 MB / 0.6668 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003062/0.5587, allocations: 231.2 kB / 0.6671 GB, free: 12.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.559, allocations: 20 kB / 0.6671 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.5602, allocations: 119.8 kB / 0.6672 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005762/0.5608, allocations: 184.7 kB / 0.6674 GB, free: 12.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.109e-05/0.5609, allocations: 28 kB / 0.6674 GB, free: 12.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001081/0.562, allocations: 0.7553 MB / 0.6681 GB, free: 11.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.562, allocations: 4 kB / 0.6681 GB, free: 11.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001796/0.5638, allocations: 0.6714 MB / 0.6688 GB, free: 10.72 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002405/0.5641, allocations: 136.2 kB / 0.6689 GB, free: 10.58 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00646/0.5705, allocations: 2.604 MB / 0.6715 GB, free: 7.938 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5705, allocations: 0.8594 kB / 0.6715 GB, free: 7.938 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004349/0.5749, allocations: 1.583 MB / 0.673 GB, free: 6.316 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.5762, allocations: 122.9 kB / 0.6731 GB, free: 6.195 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008494/0.5847, allocations: 4.262 MB / 0.6773 GB, free: 1.859 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007775/0.5855, allocations: 1.164 MB / 0.6784 GB, free: 0.668 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005758/0.5861, allocations: 128.1 kB / 0.6785 GB, free: 0.5391 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.5865, allocations: 79.41 kB / 0.6786 GB, free: 476 kB / 490.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5865, allocations: 0 / 0.6786 GB, free: 476 kB / 490.7 MB Notification: Performance of Templates: time 0.2296/0.8161, allocations: 32.57 MB / 0.7104 GB, free: 95.84 MB / 490.7 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)