Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.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.KundurSMIB.SMIB,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB") translateModel(OpenIPSL.Examples.KundurSMIB.SMIB,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001563, 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 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.1 MB / 221.8 MB, free: 8.48 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.001127/0.001127, allocations: 104 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.07665/0.07665, allocations: 12.59 MB / 329.1 MB, free: 12.4 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3826/0.3826, allocations: 78.51 MB / 457.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 110.4 kB / 0.5254 GB, free: 19.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1543, allocations: 68.14 MB / 0.592 GB, free: 15.63 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.KundurSMIB.SMIB): time 0.005859/0.1602, allocations: 5.217 MB / 0.5971 GB, free: 10.38 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.163, allocations: 1.6 MB / 0.5986 GB, free: 8.773 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002624/0.1633, allocations: 8 kB / 0.5986 GB, free: 8.766 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.1636, allocations: 127.2 kB / 0.5988 GB, free: 8.641 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation transformer.m <> 1.0, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeBindings: time 0.001277/0.1649, allocations: 0.5909 MB / 0.5993 GB, free: 8.047 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.1657, allocations: 382.9 kB / 0.5997 GB, free: 7.676 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000905/0.1666, allocations: 1.028 MB / 0.6007 GB, free: 6.645 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1669, allocations: 182.7 kB / 0.6009 GB, free: 6.453 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.1673, allocations: 398.2 kB / 0.6013 GB, free: 6.062 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005476/0.1678, allocations: 0.5211 MB / 0.6018 GB, free: 5.539 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.539e-05/0.1679, allocations: 52 kB / 0.6018 GB, free: 5.488 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003613/0.1683, allocations: 187.8 kB / 0.602 GB, free: 5.305 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.1685, allocations: 179.1 kB / 0.6022 GB, free: 5.129 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.1688, allocations: 437.4 kB / 0.6026 GB, free: 4.699 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1699, allocations: 1.199 MB / 0.6038 GB, free: 3.496 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1699, allocations: 4 kB / 0.6038 GB, free: 3.492 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1699, allocations: 0 / 0.6038 GB, free: 3.492 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1699, allocations: 0 / 0.6038 GB, free: 3.492 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.005102/0.175, allocations: 1.76 MB / 0.6055 GB, free: 1.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.1751, allocations: 11.98 kB / 0.6055 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00307/0.1782, allocations: 0.5148 MB / 0.606 GB, free: 1.152 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008882/0.1791, allocations: 0.6509 MB / 0.6066 GB, free: 472 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.1792, allocations: 138.1 kB / 0.6068 GB, free: 316 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.1794, allocations: 52 kB / 0.6068 GB, free: 264 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1806, allocations: 0.6584 MB / 0.6075 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.1807, allocations: 3.984 kB / 0.6075 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.99e-05/0.1807, allocations: 16 kB / 0.6075 GB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.1808, allocations: 12 kB / 0.6075 GB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.182, allocations: 0.6363 MB / 0.6081 GB, free: 14.93 MB / 410.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.004264/0.1863, allocations: 2.643 MB / 0.6107 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.1985, allocations: 2.812 MB / 0.6134 GB, free: 9.305 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.1996, allocations: 449.2 kB / 0.6139 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.158e-05/0.1997, allocations: 8.562 kB / 0.6139 GB, free: 8.855 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.244e-05/0.1997, allocations: 43.12 kB / 0.6139 GB, free: 8.805 MB / 410.7 MB Notification: Performance of pre-optimization done (n=57): time 4.359e-06/0.1998, allocations: 0 / 0.6139 GB, free: 8.805 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.01249/0.2122, allocations: 3.523 MB / 0.6174 GB, free: 5.207 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.2123, allocations: 59.97 kB / 0.6174 GB, free: 5.137 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.2134, allocations: 0.7623 MB / 0.6182 GB, free: 4.367 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/0.2135, allocations: 37.7 kB / 0.6182 GB, free: 4.324 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.2137, allocations: 352.6 kB / 0.6185 GB, free: 3.973 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.214, allocations: 220.9 kB / 0.6187 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.2143, allocations: 166.5 kB / 0.6189 GB, free: 3.586 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2144, allocations: 394.7 kB / 0.6193 GB, free: 3.191 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009453/0.2154, allocations: 0.5017 MB / 0.6198 GB, free: 2.688 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.2164, allocations: 0.5952 MB / 0.6203 GB, free: 2.066 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01528/0.2317, allocations: 3.556 MB / 0.6238 GB, free: 14.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.2318, allocations: 0 / 0.6238 GB, free: 14.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.007395/0.2392, allocations: 2.392 MB / 0.6262 GB, free: 12.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.2392, allocations: 8 kB / 0.6262 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.2393, allocations: 0 / 0.6262 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004323/0.2436, allocations: 1.059 MB / 0.6272 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008711/0.2445, allocations: 147.8 kB / 0.6273 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.2549, allocations: 4.694 MB / 0.6319 GB, free: 6.023 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.2563, allocations: 107.2 kB / 0.632 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.2565, allocations: 31.98 kB / 0.6321 GB, free: 5.887 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: G1.machine.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real G1.machine.delta:VARIABLE(flow=false start = G1.machine.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (93): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,13,59.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005914/0.2571, allocations: 217.6 kB / 0.6323 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.2573, allocations: 82.97 kB / 0.6323 GB, free: 5.582 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006223/0.2636, allocations: 1.945 MB / 0.6342 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.2636, allocations: 8 kB / 0.6342 GB, free: 3.605 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/0.2636, allocations: 8 kB / 0.6343 GB, free: 3.598 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.2636, allocations: 3.984 kB / 0.6343 GB, free: 3.594 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 postOpt removeSimpleEquations (simulation): time 0.007668/0.2713, allocations: 3.032 MB / 0.6372 GB, free: 480 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2713, allocations: 3.938 kB / 0.6372 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.2718, allocations: 67.89 kB / 0.6373 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2669/0.5387, allocations: 0.9289 MB / 0.6382 GB, free: 52.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001652/0.5389, allocations: 12.73 kB / 0.6382 GB, free: 52.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007733/0.5466, allocations: 3.775 MB / 0.6419 GB, free: 50.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5467, allocations: 4.453 kB / 0.6419 GB, free: 50.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03969/0.5864, allocations: 14.77 MB / 0.6563 GB, free: 44.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.5866, allocations: 179.9 kB / 0.6565 GB, free: 43.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.608e-05/0.5867, allocations: 11.53 kB / 0.6565 GB, free: 43.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007338/0.5875, allocations: 51.67 kB / 0.6566 GB, free: 43.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004116/0.5879, allocations: 117.6 kB / 0.6567 GB, free: 43.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/0.5879, allocations: 14.91 kB / 0.6567 GB, free: 43.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006436/0.5886, allocations: 0.5256 MB / 0.6572 GB, free: 43.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5886, allocations: 0 / 0.6572 GB, free: 43.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001262/0.5899, allocations: 408.1 kB / 0.6576 GB, free: 43.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d) * 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 (40): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(9,9,48.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002206/0.5901, allocations: 112.2 kB / 0.6577 GB, free: 43.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004292/0.5944, allocations: 1.726 MB / 0.6594 GB, free: 42.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5944, allocations: 4.125 kB / 0.6594 GB, free: 42.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002603/0.597, allocations: 1.074 MB / 0.6604 GB, free: 42.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/0.5976, allocations: 55.5 kB / 0.6605 GB, free: 42.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004087/0.6017, allocations: 2.578 MB / 0.663 GB, free: 40.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.6021, allocations: 0.9674 MB / 0.6639 GB, free: 39.65 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002857/0.6024, allocations: 68.02 kB / 0.664 GB, free: 39.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.6026, allocations: 48.2 kB / 0.6641 GB, free: 39.61 MB / 426.7 MB Notification: Performance of SimCode: time 2e-07/0.6026, allocations: 0 / 0.6641 GB, free: 39.61 MB / 426.7 MB Notification: Performance of Templates: time 0.02289/0.6255, allocations: 18.05 MB / 0.6817 GB, free: 24.39 MB / 426.7 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.KundurSMIB.SMIB.pipe 2>&1)