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/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/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/package.mo): time 0.07472/0.07472, allocations: 12.21 MB / 27.16 MB, free: 112 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 106.4 kB / 30.66 MB, free: 6.43 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.351/1.351, allocations: 205.4 MB / 239.5 MB, free: 10.66 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.001095/0.001095, allocations: 189.1 kB / 290.6 MB, free: 8.105 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4404/0.4404, allocations: 78.5 MB / 420.1 MB, free: 6.582 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.0008305/0.0008305, allocations: 36.2 kB / 0.4894 GB, free: 37.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1331, allocations: 69.25 MB / 0.557 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005685/0.1389, allocations: 5.771 MB / 0.5626 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003531/0.1424, allocations: 1.914 MB / 0.5645 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003738/0.1428, allocations: 16 kB / 0.5645 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005201/0.1433, allocations: 174.7 kB / 0.5647 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.1448, allocations: 0.7112 MB / 0.5654 GB, free: 236 kB / 382.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.001054/0.1459, allocations: 0.5221 MB / 0.5659 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.147, allocations: 0.9905 MB / 0.5669 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.1474, allocations: 269.8 kB / 0.5671 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005861/0.148, allocations: 0.5602 MB / 0.5677 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006978/0.1487, allocations: 0.708 MB / 0.5684 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1488, allocations: 60 kB / 0.5684 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000369/0.1492, allocations: 175.8 kB / 0.5686 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002082/0.1494, allocations: 247 kB / 0.5688 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.1496, allocations: 229 kB / 0.569 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1507, allocations: 1.185 MB / 0.5702 GB, free: 11.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.1507, allocations: 3.938 kB / 0.5702 GB, free: 11.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1507, allocations: 4 kB / 0.5702 GB, free: 11.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.1507, allocations: 4 kB / 0.5702 GB, free: 11.27 MB / 398.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.007713/0.1584, allocations: 2.505 MB / 0.5727 GB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1585, allocations: 11.98 kB / 0.5727 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00481/0.1633, allocations: 0.7826 MB / 0.5734 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.1648, allocations: 0.8367 MB / 0.5743 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.1651, allocations: 272.1 kB / 0.5745 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.1653, allocations: 80 kB / 0.5746 GB, free: 6.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.1673, allocations: 1.145 MB / 0.5757 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1673, allocations: 0 / 0.5757 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.082e-05/0.1674, allocations: 28 kB / 0.5757 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.1675, allocations: 20 kB / 0.5758 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.1693, allocations: 1.042 MB / 0.5768 GB, free: 4.383 MB / 398.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.006438/0.1758, allocations: 4.118 MB / 0.5808 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007409/0.1832, allocations: 2.907 MB / 0.5836 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.1834, allocations: 20.97 kB / 0.5837 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001607/0.185, allocations: 0.8714 MB / 0.5845 GB, free: 12.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.364e-06/0.185, allocations: 0 / 0.5845 GB, free: 12.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.02829/0.2133, allocations: 8.634 MB / 0.5929 GB, free: 3.438 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.2134, allocations: 123.8 kB / 0.5931 GB, free: 3.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001552/0.215, allocations: 1.071 MB / 0.5941 GB, free: 2.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001786/0.2152, allocations: 45.7 kB / 0.5941 GB, free: 2.156 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.2155, allocations: 0.489 MB / 0.5946 GB, free: 1.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.2158, allocations: 355.1 kB / 0.595 GB, free: 1.309 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.2159, allocations: 28 kB / 0.595 GB, free: 1.281 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.216, allocations: 361.9 kB / 0.5953 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.2175, allocations: 0.8199 MB / 0.5961 GB, free: 104 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.2192, allocations: 0.9929 MB / 0.5971 GB, free: 15.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.2208, allocations: 0.9562 MB / 0.598 GB, free: 14.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.2208, allocations: 0 / 0.598 GB, free: 14.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01355/0.2344, allocations: 5.157 MB / 0.6031 GB, free: 8.922 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.808e-05/0.2345, allocations: 63.41 kB / 0.6031 GB, free: 8.848 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.2345, allocations: 4 kB / 0.6031 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006052/0.2406, allocations: 1.904 MB / 0.605 GB, free: 6.938 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.2421, allocations: 295.6 kB / 0.6053 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01998/0.2621, allocations: 9.455 MB / 0.6145 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/0.2644, allocations: 238.6 kB / 0.6147 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.2647, allocations: 55.97 kB / 0.6148 GB, free: 12.76 MB / 446.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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0008443/0.2655, allocations: 296.4 kB / 0.6151 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003914/0.2659, allocations: 126.4 kB / 0.6152 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01366/0.2796, allocations: 4.725 MB / 0.6198 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/0.2797, allocations: 12 kB / 0.6198 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/0.2797, allocations: 8 kB / 0.6198 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.14e-05/0.2797, allocations: 3.984 kB / 0.6198 GB, free: 7.555 MB / 446.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.01532/0.2951, allocations: 6.34 MB / 0.626 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.2951, allocations: 4.031 kB / 0.626 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005911/0.2957, allocations: 99.84 kB / 0.6261 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005731/0.3015, allocations: 1.892 MB / 0.628 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/0.3016, allocations: 19.98 kB / 0.628 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01954/0.3212, allocations: 10.1 MB / 0.6378 GB, free: 4.688 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3212, allocations: 0 / 0.6378 GB, free: 4.688 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/0.3357, allocations: 5.646 MB / 0.6434 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004869/0.3363, allocations: 223.3 kB / 0.6436 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/0.3366, allocations: 20 kB / 0.6436 GB, free: 14.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/0.3379, allocations: 143.9 kB / 0.6437 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005885/0.3385, allocations: 196.9 kB / 0.6439 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.3386, allocations: 39.94 kB / 0.644 GB, free: 14.37 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.3398, allocations: 0.7156 MB / 0.6447 GB, free: 13.65 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3398, allocations: 0 / 0.6447 GB, free: 13.65 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001604/0.3414, allocations: 479.5 kB / 0.6451 GB, free: 13.18 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003155/0.3417, allocations: 135.2 kB / 0.6452 GB, free: 13.04 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006329/0.3481, allocations: 2.77 MB / 0.6479 GB, free: 10.23 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3481, allocations: 0 / 0.6479 GB, free: 10.23 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004331/0.3524, allocations: 1.83 MB / 0.6497 GB, free: 8.359 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008139/0.3533, allocations: 96.59 kB / 0.6498 GB, free: 8.262 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004099/0.3574, allocations: 2.663 MB / 0.6524 GB, free: 5.582 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007401/0.3581, allocations: 1.151 MB / 0.6535 GB, free: 4.398 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004948/0.3586, allocations: 120 kB / 0.6537 GB, free: 4.277 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.3589, allocations: 83.34 kB / 0.6537 GB, free: 4.195 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3589, allocations: 0 / 0.6537 GB, free: 4.195 MB / 478.1 MB Notification: Performance of Templates: time 0.2622/0.6211, allocations: 21.27 MB / 0.6745 GB, free: 91.65 MB / 478.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: