Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 181.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 221.8 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001192/0.001192, allocations: 102.3 kB / 269.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0832/0.0832, allocations: 12.6 MB / 329.1 MB, free: 12.39 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3018/0.3018, allocations: 78.51 MB / 457.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 113.8 kB / 0.5254 GB, free: 19.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1766, allocations: 68.13 MB / 0.592 GB, free: 15.66 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01578/0.1924, allocations: 14.42 MB / 0.6061 GB, free: 1.168 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.2048, allocations: 3.574 MB / 0.6095 GB, free: 13.58 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004237/0.2091, allocations: 36 kB / 0.6096 GB, free: 13.55 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.2119, allocations: 437.1 kB / 0.61 GB, free: 13.12 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006718/0.2187, allocations: 1.218 MB / 0.6112 GB, free: 11.9 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004607/0.2234, allocations: 1.413 MB / 0.6126 GB, free: 10.51 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00706/0.2304, allocations: 3.558 MB / 0.616 GB, free: 6.938 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002222/0.2327, allocations: 0.8059 MB / 0.6168 GB, free: 6.078 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.2359, allocations: 1.399 MB / 0.6182 GB, free: 4.672 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003607/0.2396, allocations: 1.858 MB / 0.62 GB, free: 2.805 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001658/0.2412, allocations: 176 kB / 0.6202 GB, free: 2.633 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002073/0.2433, allocations: 303.9 kB / 0.6205 GB, free: 2.336 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.2448, allocations: 0.6608 MB / 0.6211 GB, free: 1.672 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003744/0.2486, allocations: 1.522 MB / 0.6226 GB, free: 144 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006301/0.2549, allocations: 3.806 MB / 0.6263 GB, free: 12.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.2549, allocations: 0 / 0.6263 GB, free: 12.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.2549, allocations: 4 kB / 0.6263 GB, free: 12.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002202/0.2552, allocations: 3.938 kB / 0.6263 GB, free: 12.31 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02817/0.2833, allocations: 6.583 MB / 0.6328 GB, free: 5.633 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/0.2834, allocations: 11.98 kB / 0.6328 GB, free: 5.621 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01542/0.2989, allocations: 2.282 MB / 0.635 GB, free: 3.332 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006286/0.3052, allocations: 1.867 MB / 0.6368 GB, free: 1.398 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009279/0.3062, allocations: 0.7252 MB / 0.6375 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/0.3075, allocations: 215.9 kB / 0.6377 GB, free: 356 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.349/0.6566, allocations: 3.028 MB / 0.6407 GB, free: 47.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-05/0.6567, allocations: 2.844 kB / 0.6407 GB, free: 47.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/0.657, allocations: 85.42 kB / 0.6408 GB, free: 47.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.048e-05/0.6571, allocations: 52.28 kB / 0.6408 GB, free: 47.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009209/0.6664, allocations: 2.783 MB / 0.6435 GB, free: 46.87 MB / 426.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.02882/0.6952, allocations: 9.857 MB / 0.6532 GB, free: 41.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01485/0.7101, allocations: 4.187 MB / 0.6573 GB, free: 40.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006649/0.7168, allocations: 1.958 MB / 0.6592 GB, free: 39.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004303/0.7173, allocations: 47.73 kB / 0.6592 GB, free: 39.35 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006561/0.7239, allocations: 2.222 MB / 0.6614 GB, free: 38.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=247): time 8.386e-06/0.7239, allocations: 0 / 0.6614 GB, free: 38.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=247): time 0.162/0.8859, allocations: 29.47 MB / 0.6902 GB, free: 14.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/0.8861, allocations: 180.2 kB / 0.6903 GB, free: 14.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004733/0.8908, allocations: 2.281 MB / 0.6926 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001135/0.892, allocations: 65.7 kB / 0.6926 GB, free: 12.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.8933, allocations: 1.179 MB / 0.6938 GB, free: 10.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002051/0.8953, allocations: 0.8712 MB / 0.6946 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001554/0.8969, allocations: 0.5578 MB / 0.6952 GB, free: 9.488 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.897, allocations: 305.1 kB / 0.6955 GB, free: 9.188 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005482/0.9025, allocations: 1.947 MB / 0.6974 GB, free: 7.238 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005816/0.9083, allocations: 2.31 MB / 0.6996 GB, free: 4.836 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.07261/0.9809, allocations: 14.01 MB / 0.7133 GB, free: 6.609 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-05/0.981, allocations: 0 / 0.7133 GB, free: 6.609 MB / 442.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.05908/1.04, allocations: 12.28 MB / 0.7253 GB, free: 10.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/1.04, allocations: 118.8 kB / 0.7254 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/1.04, allocations: 8 kB / 0.7254 GB, free: 10.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02594/1.066, allocations: 5.312 MB / 0.7306 GB, free: 4.797 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.071, allocations: 0.5617 MB / 0.7312 GB, free: 4.238 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08436/1.155, allocations: 21.6 MB / 0.7522 GB, free: 14.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006216/1.161, allocations: 489 kB / 0.7527 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008041/1.162, allocations: 119.9 kB / 0.7528 GB, free: 13.91 MB / 490.7 MB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001876/1.164, allocations: 0.5343 MB / 0.7534 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.165, allocations: 296.3 kB / 0.7536 GB, free: 13.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05768/1.223, allocations: 11.9 MB / 0.7653 GB, free: 1.121 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-05/1.223, allocations: 27.94 kB / 0.7653 GB, free: 1.094 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.968e-05/1.223, allocations: 20 kB / 0.7653 GB, free: 1.074 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-05/1.223, allocations: 11.95 kB / 0.7653 GB, free: 1.062 MB / 490.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.06405/1.287, allocations: 15.5 MB / 0.7804 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-05/1.287, allocations: 4 kB / 0.7805 GB, free: 1.426 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/1.289, allocations: 247.6 kB / 0.7807 GB, free: 1.184 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02531/1.315, allocations: 5.284 MB / 0.7858 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00111/1.316, allocations: 55.98 kB / 0.7859 GB, free: 11.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08141/1.397, allocations: 22.68 MB / 0.808 GB, free: 4.715 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.046e-06/1.397, allocations: 7.938 kB / 0.8081 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6575/2.055, allocations: 93.23 MB / 0.8991 GB, free: 163.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/2.057, allocations: 405.7 kB / 0.8995 GB, free: 163.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001708/2.058, allocations: 47.38 kB / 0.8995 GB, free: 163.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004564/2.063, allocations: 303.9 kB / 0.8998 GB, free: 163.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002864/2.066, allocations: 0.5666 MB / 0.9004 GB, free: 163.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006409/2.067, allocations: 67.27 kB / 0.9004 GB, free: 163.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003134/2.07, allocations: 1.506 MB / 0.9019 GB, free: 162.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.21e-07/2.07, allocations: 3.656 kB / 0.9019 GB, free: 162.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008849/2.079, allocations: 1.638 MB / 0.9035 GB, free: 162.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001122/2.08, allocations: 176.9 kB / 0.9037 GB, free: 162.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0204/2.1, allocations: 6.598 MB / 0.9101 GB, free: 160.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/2.1, allocations: 0 / 0.9101 GB, free: 160.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01472/2.115, allocations: 4.392 MB / 0.9144 GB, free: 158.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004725/2.12, allocations: 267.2 kB / 0.9147 GB, free: 158.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02946/2.149, allocations: 10.04 MB / 0.9245 GB, free: 151.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003568/2.153, allocations: 1.923 MB / 0.9264 GB, free: 149.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002056/2.155, allocations: 277.9 kB / 0.9266 GB, free: 149.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/2.156, allocations: 164.8 kB / 0.9268 GB, free: 149.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.463e-06/2.156, allocations: 0 / 0.9268 GB, free: 149.6 MB / 0.573 GB Notification: Performance of Templates: time 0.1356/2.292, allocations: 87.69 MB / 1.012 GB, free: 65.65 MB / 0.573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)