Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01266/0.01266, allocations: 100.6 kB / 15.73 MB, free: 6.066 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.47/1.47, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001552/0.001552, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5739/0.5739, allocations: 91.9 MB / 431.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 81.08 kB / 0.5728 GB, free: 33.52 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1712, allocations: 71.29 MB / 0.6424 GB, free: 3.512 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01426/0.1856, allocations: 13.62 MB / 0.6557 GB, free: 5.836 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009515/0.1951, allocations: 3.472 MB / 0.6591 GB, free: 2.348 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003902/0.1991, allocations: 28 kB / 0.6591 GB, free: 2.32 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002682/0.2018, allocations: 0.5537 MB / 0.6597 GB, free: 1.762 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007171/0.209, allocations: 1.419 MB / 0.661 GB, free: 348 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004613/0.2137, allocations: 1.509 MB / 0.6625 GB, free: 14.85 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.006779/0.2205, allocations: 3.714 MB / 0.6661 GB, free: 11.12 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.2225, allocations: 0.8973 MB / 0.667 GB, free: 10.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002957/0.2254, allocations: 1.528 MB / 0.6685 GB, free: 8.641 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00339/0.2289, allocations: 1.948 MB / 0.6704 GB, free: 6.684 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001231/0.2301, allocations: 284 kB / 0.6707 GB, free: 6.406 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001943/0.2321, allocations: 431.9 kB / 0.6711 GB, free: 5.984 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.2335, allocations: 0.7662 MB / 0.6718 GB, free: 5.215 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003233/0.2368, allocations: 1.627 MB / 0.6734 GB, free: 3.578 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00533/0.2421, allocations: 3.995 MB / 0.6773 GB, free: 15.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2422, allocations: 0 / 0.6773 GB, free: 15.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.2422, allocations: 4 kB / 0.6773 GB, free: 15.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001373/0.2423, allocations: 4 kB / 0.6773 GB, free: 15.56 MB / 494.1 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.02415/0.2665, allocations: 6.677 MB / 0.6839 GB, free: 8.781 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2665, allocations: 8.031 kB / 0.6839 GB, free: 8.773 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01515/0.2817, allocations: 2.3 MB / 0.6861 GB, free: 6.469 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004838/0.2866, allocations: 1.896 MB / 0.688 GB, free: 4.508 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007737/0.2874, allocations: 0.7174 MB / 0.6887 GB, free: 3.676 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006552/0.2881, allocations: 223.9 kB / 0.6889 GB, free: 3.457 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00656/0.2946, allocations: 3.027 MB / 0.6918 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.882e-05/0.2947, allocations: 0 / 0.6918 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002353/0.2949, allocations: 87.88 kB / 0.6919 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.054e-05/0.295, allocations: 52 kB / 0.692 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006245/0.3012, allocations: 2.784 MB / 0.6947 GB, free: 13.41 MB / 0.4981 GB 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.02053/0.3218, allocations: 9.807 MB / 0.7043 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/0.3325, allocations: 4.184 MB / 0.7083 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00465/0.3371, allocations: 1.968 MB / 0.7103 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003681/0.3376, allocations: 45.91 kB / 0.7103 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004827/0.3424, allocations: 2.22 MB / 0.7125 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=247): time 4.519e-06/0.3424, allocations: 0 / 0.7125 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=247): time 0.1221/0.4645, allocations: 29.48 MB / 0.7413 GB, free: 13 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.4647, allocations: 188.2 kB / 0.7415 GB, free: 12.78 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/0.4684, allocations: 2.277 MB / 0.7437 GB, free: 10.48 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.00084/0.4693, allocations: 69.7 kB / 0.7437 GB, free: 10.41 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009421/0.4702, allocations: 1.197 MB / 0.7449 GB, free: 9.203 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001305/0.4715, allocations: 0.9102 MB / 0.7458 GB, free: 8.285 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.4727, allocations: 0.5541 MB / 0.7463 GB, free: 7.723 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.4728, allocations: 305.1 kB / 0.7466 GB, free: 7.422 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004323/0.4771, allocations: 1.947 MB / 0.7485 GB, free: 5.473 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004693/0.4819, allocations: 2.314 MB / 0.7508 GB, free: 3.066 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05366/0.5355, allocations: 13.99 MB / 0.7645 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/0.5356, allocations: 4 kB / 0.7645 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.4233/0.9588, allocations: 12.3 MB / 0.7765 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.208e-05/0.959, allocations: 124.3 kB / 0.7766 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.991e-05/0.959, allocations: 5.875 kB / 0.7766 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02104/0.9801, allocations: 5.317 MB / 0.7818 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/0.984, allocations: 0.5574 MB / 0.7823 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05641/1.04, allocations: 23.51 MB / 0.8053 GB, free: 98.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004779/1.045, allocations: 491.7 kB / 0.8058 GB, free: 97.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004041/1.046, allocations: 119.9 kB / 0.8059 GB, free: 97.8 MB / 0.5606 GB 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.00121/1.047, allocations: 0.5363 MB / 0.8064 GB, free: 97.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005214/1.047, allocations: 314 kB / 0.8067 GB, free: 96.96 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03615/1.084, allocations: 11.9 MB / 0.8183 GB, free: 85.02 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/1.084, allocations: 28 kB / 0.8183 GB, free: 84.99 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.783e-05/1.084, allocations: 16 kB / 0.8184 GB, free: 84.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.94e-05/1.084, allocations: 15.95 kB / 0.8184 GB, free: 84.96 MB / 0.5606 GB 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.04023/1.124, allocations: 15.49 MB / 0.8335 GB, free: 69.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.317e-05/1.124, allocations: 2.078 kB / 0.8335 GB, free: 69.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.126, allocations: 244.5 kB / 0.8337 GB, free: 69.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01651/1.142, allocations: 5.286 MB / 0.8389 GB, free: 63.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007662/1.143, allocations: 51.98 kB / 0.839 GB, free: 63.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05356/1.197, allocations: 24.97 MB / 0.8633 GB, free: 38.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.197, allocations: 0 / 0.8633 GB, free: 38.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04094/1.238, allocations: 14.28 MB / 0.8773 GB, free: 24.05 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.239, allocations: 422 kB / 0.8777 GB, free: 23.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008119/1.24, allocations: 44.12 kB / 0.8777 GB, free: 23.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002928/1.243, allocations: 299.6 kB / 0.878 GB, free: 23.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002195/1.245, allocations: 0.5841 MB / 0.8786 GB, free: 22.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002196/1.245, allocations: 67.98 kB / 0.8787 GB, free: 22.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002078/1.247, allocations: 1.507 MB / 0.8801 GB, free: 21.15 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.71e-07/1.247, allocations: 1.406 kB / 0.8801 GB, free: 21.15 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003568/1.251, allocations: 1.178 MB / 0.8813 GB, free: 20.01 MB / 0.5606 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.000423/1.251, allocations: 182.6 kB / 0.8815 GB, free: 19.83 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01625/1.267, allocations: 6.707 MB / 0.888 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.267, allocations: 0 / 0.888 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01218/1.28, allocations: 4.422 MB / 0.8923 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/1.282, allocations: 267.3 kB / 0.8926 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008845/1.291, allocations: 5.37 MB / 0.8978 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/1.292, allocations: 1.81 MB / 0.8996 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001074/1.293, allocations: 262.5 kB / 0.8998 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005304/1.293, allocations: 175.3 kB / 0.9 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of SimCode: time 1.232e-06/1.293, allocations: 0 / 0.9 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of Templates: time 0.1041/1.398, allocations: 65.71 MB / 0.9642 GB, free: 14.97 MB / 0.6387 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)