Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json 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/ModelicaServices 4.0.0+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/Complex 4.0.0+maint.om/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 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08642/0.08642, allocations: 12.61 MB / 28.88 MB, free: 0.6328 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 103.5 kB / 32.47 MB, free: 3.582 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.1 MB / 241.1 MB, free: 12.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 200.4 kB / 291.3 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4443/0.4443, allocations: 78.5 MB / 419.9 MB, free: 11.26 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002683/0.002683, allocations: 139 kB / 0.5565 GB, free: 28.55 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1364, allocations: 68.13 MB / 0.623 GB, free: 15.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.007859/0.1443, allocations: 6.617 MB / 0.6295 GB, free: 8.785 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004977/0.1494, allocations: 1.924 MB / 0.6313 GB, free: 6.855 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.1505, allocations: 12 kB / 0.6314 GB, free: 6.844 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.1516, allocations: 241.9 kB / 0.6316 GB, free: 6.605 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002926/0.1545, allocations: 0.8067 MB / 0.6324 GB, free: 5.801 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001565/0.1561, allocations: 0.6351 MB / 0.633 GB, free: 5.168 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002159/0.1583, allocations: 1.585 MB / 0.6345 GB, free: 3.578 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004929/0.1588, allocations: 330.4 kB / 0.6349 GB, free: 3.242 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007435/0.1595, allocations: 0.6535 MB / 0.6355 GB, free: 2.586 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008086/0.1604, allocations: 0.8206 MB / 0.6363 GB, free: 1.762 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1605, allocations: 124 kB / 0.6364 GB, free: 1.641 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000469/0.161, allocations: 251.9 kB / 0.6367 GB, free: 1.395 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002728/0.1613, allocations: 330.6 kB / 0.637 GB, free: 1.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005398/0.1618, allocations: 0.668 MB / 0.6376 GB, free: 408 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.1633, allocations: 1.666 MB / 0.6392 GB, free: 14.73 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1633, allocations: 0 / 0.6392 GB, free: 14.73 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1634, allocations: 0 / 0.6392 GB, free: 14.73 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.1634, allocations: 0 / 0.6392 GB, free: 14.73 MB / 462.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.00828/0.1717, allocations: 2.688 MB / 0.6419 GB, free: 11.97 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.1717, allocations: 11.98 kB / 0.6419 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004856/0.1766, allocations: 0.7748 MB / 0.6426 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.1781, allocations: 0.8863 MB / 0.6435 GB, free: 10.24 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002814/0.1784, allocations: 260.2 kB / 0.6438 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.1785, allocations: 80 kB / 0.6438 GB, free: 9.871 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002026/0.1806, allocations: 1.09 MB / 0.6449 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.1806, allocations: 0 / 0.6449 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.1807, allocations: 32 kB / 0.6449 GB, free: 8.738 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.1807, allocations: 16 kB / 0.6449 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.1827, allocations: 0.9877 MB / 0.6459 GB, free: 7.734 MB / 462.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.006378/0.1891, allocations: 3.8 MB / 0.6496 GB, free: 3.754 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007458/0.1965, allocations: 2.376 MB / 0.6519 GB, free: 1.285 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/0.1981, allocations: 0.6801 MB / 0.6526 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.53e-05/0.1982, allocations: 20.98 kB / 0.6526 GB, free: 0.582 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001583/0.1998, allocations: 0.8138 MB / 0.6534 GB, free: 15.75 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 3.367e-06/0.1998, allocations: 0 / 0.6534 GB, free: 15.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.0287/0.2285, allocations: 7.077 MB / 0.6603 GB, free: 8.609 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/0.2287, allocations: 123.7 kB / 0.6604 GB, free: 8.465 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.2306, allocations: 1.087 MB / 0.6615 GB, free: 7.363 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002782/0.2309, allocations: 45.7 kB / 0.6615 GB, free: 7.312 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.2313, allocations: 488.8 kB / 0.662 GB, free: 6.828 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005365/0.2319, allocations: 362.9 kB / 0.6624 GB, free: 6.469 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007039/0.2326, allocations: 287.4 kB / 0.6626 GB, free: 6.184 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.2327, allocations: 305.1 kB / 0.6629 GB, free: 5.883 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.2344, allocations: 0.7613 MB / 0.6637 GB, free: 5.121 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.2362, allocations: 0.9382 MB / 0.6646 GB, free: 4.141 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02375/0.26, allocations: 5.583 MB / 0.67 GB, free: 14.47 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.26, allocations: 0 / 0.67 GB, free: 14.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01442/0.2745, allocations: 4.339 MB / 0.6743 GB, free: 10.11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.2746, allocations: 67.33 kB / 0.6743 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.2746, allocations: 8 kB / 0.6743 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005609/0.2802, allocations: 1.504 MB / 0.6758 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/0.2819, allocations: 295.6 kB / 0.6761 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02044/0.3023, allocations: 8.261 MB / 0.6842 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/0.3046, allocations: 202.8 kB / 0.6844 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003482/0.305, allocations: 55.97 kB / 0.6844 GB, free: 15.55 MB / 0.4981 GB 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.001051/0.306, allocations: 300.2 kB / 0.6847 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000455/0.3065, allocations: 134.3 kB / 0.6848 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/0.3196, allocations: 3.869 MB / 0.6886 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.448e-05/0.3196, allocations: 16 kB / 0.6886 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.497e-05/0.3197, allocations: 4 kB / 0.6886 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.871e-05/0.3197, allocations: 7.969 kB / 0.6886 GB, free: 11.18 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 postOpt removeSimpleEquations (simulation): time 0.01609/0.3358, allocations: 5.452 MB / 0.694 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.987e-05/0.3359, allocations: 7.938 kB / 0.694 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006955/0.3366, allocations: 95.89 kB / 0.6941 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005842/0.3424, allocations: 1.606 MB / 0.6956 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000234/0.3427, allocations: 23.98 kB / 0.6956 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02168/0.3644, allocations: 9.603 MB / 0.705 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.3645, allocations: 0 / 0.705 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0152/0.3797, allocations: 4.735 MB / 0.7096 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005583/0.3803, allocations: 235.1 kB / 0.7099 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004331/0.3807, allocations: 16 kB / 0.7099 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.3822, allocations: 107.9 kB / 0.71 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006986/0.3829, allocations: 196.7 kB / 0.7102 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/0.383, allocations: 24 kB / 0.7102 GB, free: 4.633 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001318/0.3844, allocations: 0.7313 MB / 0.7109 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3844, allocations: 0 / 0.7109 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001857/0.3862, allocations: 475.5 kB / 0.7114 GB, free: 3.43 MB / 0.5137 GB 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.0003665/0.3866, allocations: 135.2 kB / 0.7115 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006578/0.3932, allocations: 2.521 MB / 0.714 GB, free: 0.7227 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3932, allocations: 3.938 kB / 0.714 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.3095/0.7028, allocations: 1.597 MB / 0.7155 GB, free: 86 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.7041, allocations: 116 kB / 0.7156 GB, free: 86 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.7087, allocations: 2.275 MB / 0.7179 GB, free: 85.14 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009344/0.7096, allocations: 1.118 MB / 0.7189 GB, free: 84.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.7101, allocations: 86.17 kB / 0.719 GB, free: 84.42 MB / 0.5137 GB Notification: Performance of SimCode: time 1.303e-06/0.7101, allocations: 3.969 kB / 0.719 GB, free: 84.42 MB / 0.5137 GB Notification: Performance of Templates: time 0.03987/0.75, allocations: 23.43 MB / 0.7419 GB, free: 76.09 MB / 0.5137 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)