Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07919/0.07919, allocations: 12.2 MB / 27.17 MB, free: 1.926 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.0007589/0.000759, allocations: 105.8 kB / 30.68 MB, free: 5 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.276/1.276, allocations: 205.4 MB / 239.5 MB, free: 11.54 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.001187/0.001187, allocations: 184.1 kB / 290.6 MB, free: 11.37 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4118/0.4118, allocations: 78.53 MB / 420.1 MB, free: 11.57 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.001438/0.001438, allocations: 28 kB / 0.4895 GB, free: 10.43 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3049, allocations: 69.24 MB / 0.5571 GB, free: 21.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004007/0.309, allocations: 5.722 MB / 0.5627 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.3118, allocations: 1.773 MB / 0.5644 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003973/0.3123, allocations: 12 kB / 0.5644 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.3126, allocations: 146.9 kB / 0.5645 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00121/0.3138, allocations: 0.6293 MB / 0.5652 GB, free: 12.87 MB / 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.0008632/0.3147, allocations: 0.5023 MB / 0.5657 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008195/0.3155, allocations: 1.238 MB / 0.5669 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.3158, allocations: 228 kB / 0.5671 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004243/0.3162, allocations: 0.4978 MB / 0.5676 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005006/0.3167, allocations: 0.6728 MB / 0.5682 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.041e-05/0.3168, allocations: 56 kB / 0.5683 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003128/0.3171, allocations: 179.8 kB / 0.5684 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.3173, allocations: 230.9 kB / 0.5687 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.3174, allocations: 217 kB / 0.5689 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006537/0.3181, allocations: 1.089 MB / 0.5699 GB, free: 7.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3181, allocations: 4 kB / 0.5699 GB, free: 7.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3181, allocations: 0 / 0.5699 GB, free: 7.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.3181, allocations: 0 / 0.5699 GB, free: 7.953 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.00613/0.3243, allocations: 2.314 MB / 0.5722 GB, free: 5.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3243, allocations: 11.98 kB / 0.5722 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004444/0.3288, allocations: 0.7711 MB / 0.573 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.3298, allocations: 0.7549 MB / 0.5737 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002102/0.33, allocations: 264.2 kB / 0.574 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3302, allocations: 87.91 kB / 0.574 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.3321, allocations: 1.237 MB / 0.5752 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3321, allocations: 0 / 0.5752 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.292e-05/0.3322, allocations: 28 kB / 0.5753 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.3322, allocations: 20 kB / 0.5753 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.3338, allocations: 1.02 MB / 0.5763 GB, free: 1.273 MB / 382.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.004949/0.3388, allocations: 3.616 MB / 0.5798 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006995/0.3458, allocations: 2.866 MB / 0.5826 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.3473, allocations: 0.722 MB / 0.5833 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.3474, allocations: 16.64 kB / 0.5833 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.886e-05/0.3475, allocations: 47.2 kB / 0.5834 GB, free: 9.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 5.37e-06/0.3475, allocations: 0 / 0.5834 GB, free: 9.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.02526/0.3728, allocations: 8.21 MB / 0.5914 GB, free: 1.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.999e-05/0.3729, allocations: 105.5 kB / 0.5915 GB, free: 1.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.3742, allocations: 0.9579 MB / 0.5924 GB, free: 368 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.3743, allocations: 41.7 kB / 0.5925 GB, free: 320 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.3746, allocations: 460.8 kB / 0.5929 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003027/0.375, allocations: 319.6 kB / 0.5932 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.3751, allocations: 24 kB / 0.5932 GB, free: 15.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3752, allocations: 365.8 kB / 0.5936 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.3766, allocations: 0.7574 MB / 0.5943 GB, free: 14.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.3781, allocations: 0.9694 MB / 0.5953 GB, free: 13.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.3796, allocations: 0.838 MB / 0.5961 GB, free: 12.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.3797, allocations: 0 / 0.5961 GB, free: 12.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01225/0.3919, allocations: 4.922 MB / 0.6009 GB, free: 7.578 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.392, allocations: 10.77 kB / 0.6009 GB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.392, allocations: 8 kB / 0.6009 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005471/0.3975, allocations: 1.863 MB / 0.6027 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.3987, allocations: 259.6 kB / 0.603 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01808/0.4168, allocations: 8.77 MB / 0.6116 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.4182, allocations: 202.8 kB / 0.6117 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.4184, allocations: 63.97 kB / 0.6118 GB, free: 12.27 MB / 430.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 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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004789/0.4189, allocations: 262.5 kB / 0.6121 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008956/0.4198, allocations: 356.8 kB / 0.6124 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/0.4311, allocations: 4.424 MB / 0.6167 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.4312, allocations: 8 kB / 0.6167 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.4312, allocations: 8 kB / 0.6167 GB, free: 7.188 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.4312, allocations: 3.984 kB / 0.6167 GB, free: 7.184 MB / 430.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.01369/0.4449, allocations: 5.972 MB / 0.6226 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.445, allocations: 0 / 0.6226 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.4456, allocations: 115.8 kB / 0.6227 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005181/0.4508, allocations: 1.86 MB / 0.6245 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/0.4509, allocations: 23.98 kB / 0.6245 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01755/0.4685, allocations: 10.8 MB / 0.6351 GB, free: 3.977 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.4685, allocations: 3.953 kB / 0.6351 GB, free: 3.973 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/0.482, allocations: 5.519 MB / 0.6405 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004077/0.4824, allocations: 219.4 kB / 0.6407 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.4826, allocations: 16 kB / 0.6407 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008682/0.4834, allocations: 123.9 kB / 0.6408 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004887/0.4839, allocations: 180.6 kB / 0.641 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.204e-05/0.484, allocations: 20 kB / 0.641 GB, free: 13.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007805/0.4848, allocations: 0.6356 MB / 0.6416 GB, free: 13.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4848, allocations: 0 / 0.6416 GB, free: 13.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001408/0.4862, allocations: 439.6 kB / 0.642 GB, free: 12.79 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002702/0.4865, allocations: 131.1 kB / 0.6422 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00571/0.4922, allocations: 2.576 MB / 0.6447 GB, free: 10.05 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.4923, allocations: 0 / 0.6447 GB, free: 10.05 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003726/0.496, allocations: 1.54 MB / 0.6462 GB, free: 8.504 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.4975, allocations: 367 kB / 0.6465 GB, free: 8.129 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.5013, allocations: 2.443 MB / 0.6489 GB, free: 5.672 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.5019, allocations: 1.073 MB / 0.65 GB, free: 4.566 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003541/0.5023, allocations: 107.3 kB / 0.6501 GB, free: 4.457 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.5025, allocations: 71.42 kB / 0.6501 GB, free: 4.387 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5025, allocations: 0 / 0.6501 GB, free: 4.387 MB / 462.1 MB Notification: Performance of Templates: time 0.02894/0.5314, allocations: 19.26 MB / 0.6689 GB, free: 1.137 MB / 478.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile Environment - environmentSimulation: (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: