Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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/Modelica 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 104.5 kB / 16.29 MB, free: 6.023 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.672 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 188.5 kB / 290.2 MB, free: 2.383 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4716/0.4716, allocations: 78.51 MB / 418.9 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 72.22 kB / 498.2 MB, free: 6.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1456, allocations: 68.18 MB / 0.5531 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2542/0.3998, allocations: 6.548 MB / 0.5595 GB, free: 36.11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004927/0.4048, allocations: 1.961 MB / 0.5614 GB, free: 35.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007535/0.4056, allocations: 10.41 kB / 0.5614 GB, free: 35.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007459/0.4064, allocations: 237.1 kB / 0.5616 GB, free: 35.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.4081, allocations: 0.7992 MB / 0.5624 GB, free: 35.41 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.4092, allocations: 0.6296 MB / 0.563 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.4106, allocations: 1.571 MB / 0.5645 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004025/0.411, allocations: 324.2 kB / 0.5648 GB, free: 35.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006391/0.4116, allocations: 0.6582 MB / 0.5655 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006798/0.4123, allocations: 0.8258 MB / 0.5663 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.4125, allocations: 123.2 kB / 0.5664 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004294/0.4129, allocations: 262.1 kB / 0.5667 GB, free: 34.67 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.4132, allocations: 329.5 kB / 0.567 GB, free: 34.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004494/0.4136, allocations: 0.6703 MB / 0.5676 GB, free: 34.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.4148, allocations: 1.659 MB / 0.5693 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4148, allocations: 0 / 0.5693 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4148, allocations: 0 / 0.5693 GB, free: 33.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.4149, allocations: 0 / 0.5693 GB, free: 33.96 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008193/0.4231, allocations: 2.69 MB / 0.5719 GB, free: 32.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.4231, allocations: 11.77 kB / 0.5719 GB, free: 32.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00472/0.4279, allocations: 0.773 MB / 0.5726 GB, free: 32.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.4294, allocations: 0.8879 MB / 0.5735 GB, free: 32.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/0.4296, allocations: 252.5 kB / 0.5738 GB, free: 32.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.4298, allocations: 88.59 kB / 0.5738 GB, free: 32.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001769/0.4315, allocations: 1.093 MB / 0.5749 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.4316, allocations: 4.562 kB / 0.5749 GB, free: 32.19 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.963e-05/0.4317, allocations: 32.19 kB / 0.5749 GB, free: 32.19 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.4317, allocations: 20.19 kB / 0.575 GB, free: 32.19 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.4334, allocations: 0.9876 MB / 0.5759 GB, free: 32.18 MB / 430.1 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.005609/0.439, allocations: 3.791 MB / 0.5796 GB, free: 30.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006458/0.4455, allocations: 2.379 MB / 0.5819 GB, free: 29.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.447, allocations: 0.6732 MB / 0.5826 GB, free: 29.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.4471, allocations: 18.19 kB / 0.5826 GB, free: 29.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001529/0.4487, allocations: 0.8232 MB / 0.5834 GB, free: 29.06 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.995e-06/0.4487, allocations: 0 / 0.5834 GB, free: 29.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02779/0.4765, allocations: 7.078 MB / 0.5903 GB, free: 27.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.4766, allocations: 124.8 kB / 0.5905 GB, free: 27.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.4784, allocations: 1.083 MB / 0.5915 GB, free: 27.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002123/0.4786, allocations: 43.2 kB / 0.5916 GB, free: 27.05 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.4789, allocations: 493.4 kB / 0.592 GB, free: 26.67 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003339/0.4792, allocations: 362 kB / 0.5924 GB, free: 26.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004957/0.4797, allocations: 281.4 kB / 0.5926 GB, free: 26.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.512e-05/0.4798, allocations: 311.2 kB / 0.5929 GB, free: 25.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.4813, allocations: 0.7606 MB / 0.5937 GB, free: 25.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.483, allocations: 0.9382 MB / 0.5946 GB, free: 25.24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02352/0.5065, allocations: 5.586 MB / 0.6001 GB, free: 23.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/0.5065, allocations: 1.719 kB / 0.6001 GB, free: 23.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01328/0.5198, allocations: 4.335 MB / 0.6043 GB, free: 22.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.116e-05/0.52, allocations: 61.03 kB / 0.6043 GB, free: 22.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.52, allocations: 7.25 kB / 0.6044 GB, free: 22.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005328/0.5253, allocations: 1.508 MB / 0.6058 GB, free: 21.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.5269, allocations: 297.6 kB / 0.6061 GB, free: 21.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01688/0.5438, allocations: 8.259 MB / 0.6142 GB, free: 16.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/0.5457, allocations: 200.2 kB / 0.6144 GB, free: 16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.5458, allocations: 55.97 kB / 0.6144 GB, free: 15.95 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00059/0.5464, allocations: 305.9 kB / 0.6147 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.5466, allocations: 132.5 kB / 0.6148 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/0.5575, allocations: 3.87 MB / 0.6186 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.5576, allocations: 12 kB / 0.6186 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.5576, allocations: 4 kB / 0.6186 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/0.5576, allocations: 7.984 kB / 0.6186 GB, free: 11.58 MB / 430.1 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.01262/0.5702, allocations: 5.458 MB / 0.624 GB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.5703, allocations: 0 / 0.624 GB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005778/0.5709, allocations: 99.83 kB / 0.6241 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004792/0.5757, allocations: 1.609 MB / 0.6256 GB, free: 4.301 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/0.5758, allocations: 19.98 kB / 0.6257 GB, free: 4.281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01871/0.5945, allocations: 9.605 MB / 0.635 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.5946, allocations: 0 / 0.635 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/0.6086, allocations: 4.733 MB / 0.6397 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005159/0.6092, allocations: 232 kB / 0.6399 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003956/0.6096, allocations: 16 kB / 0.6399 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.611, allocations: 107.9 kB / 0.64 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006264/0.6116, allocations: 200.7 kB / 0.6402 GB, free: 5.043 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.6117, allocations: 24.8 kB / 0.6402 GB, free: 5.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001243/0.613, allocations: 0.7274 MB / 0.6409 GB, free: 4.285 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.613, allocations: 0 / 0.6409 GB, free: 4.285 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001778/0.6148, allocations: 479.5 kB / 0.6414 GB, free: 3.816 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003293/0.6151, allocations: 137.4 kB / 0.6415 GB, free: 3.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006154/0.6213, allocations: 2.5 MB / 0.644 GB, free: 1.152 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6213, allocations: 4 kB / 0.644 GB, free: 1.148 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004234/0.6256, allocations: 1.609 MB / 0.6455 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.6268, allocations: 120.2 kB / 0.6456 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.6311, allocations: 2.242 MB / 0.6478 GB, free: 13.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007619/0.6319, allocations: 1.12 MB / 0.6489 GB, free: 12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004545/0.6323, allocations: 121.4 kB / 0.649 GB, free: 11.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.6326, allocations: 83.42 kB / 0.6491 GB, free: 11.8 MB / 462.1 MB Notification: Performance of SimCode: time 7.42e-07/0.6326, allocations: 0 / 0.6491 GB, free: 11.8 MB / 462.1 MB Notification: Performance of Templates: time 0.03804/0.6707, allocations: 23.45 MB / 0.672 GB, free: 4.559 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)