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-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.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-master/package.mo): time 0.08922/0.08922, allocations: 12.6 MB / 28.91 MB, free: 0.5859 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.001165/0.001165, allocations: 103.5 kB / 32.5 MB, free: 3.531 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.651/1.651, allocations: 205.1 MB / 241.1 MB, free: 12.36 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.00177/0.00177, allocations: 192.5 kB / 291.4 MB, free: 13.38 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4589/0.4589, allocations: 78.52 MB / 420 MB, free: 11.22 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.002632/0.002632, allocations: 143.2 kB / 0.5565 GB, free: 28.45 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1622, allocations: 68.13 MB / 0.6231 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007994/0.1703, allocations: 6.257 MB / 0.6292 GB, free: 9.098 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003975/0.1743, allocations: 1.815 MB / 0.631 GB, free: 7.273 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000764/0.1752, allocations: 12 kB / 0.631 GB, free: 7.262 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005826/0.1758, allocations: 210.1 kB / 0.6312 GB, free: 7.055 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002/0.1778, allocations: 0.771 MB / 0.6319 GB, free: 6.289 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.00134/0.1791, allocations: 0.5726 MB / 0.6325 GB, free: 5.719 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.1808, allocations: 1.378 MB / 0.6338 GB, free: 4.336 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004402/0.1812, allocations: 287.8 kB / 0.6341 GB, free: 4.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007857/0.182, allocations: 0.5834 MB / 0.6347 GB, free: 3.453 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008281/0.1828, allocations: 0.7506 MB / 0.6354 GB, free: 2.699 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.183, allocations: 104 kB / 0.6355 GB, free: 2.598 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005169/0.1835, allocations: 251.8 kB / 0.6357 GB, free: 2.352 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.1838, allocations: 286.8 kB / 0.636 GB, free: 2.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004826/0.1843, allocations: 0.6097 MB / 0.6366 GB, free: 1.457 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.1858, allocations: 1.491 MB / 0.6381 GB, free: 15.96 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1858, allocations: 0 / 0.6381 GB, free: 15.96 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1858, allocations: 0 / 0.6381 GB, free: 15.96 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.1858, allocations: 4 kB / 0.6381 GB, free: 15.96 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008301/0.1941, allocations: 2.481 MB / 0.6405 GB, free: 13.42 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.1942, allocations: 11.98 kB / 0.6405 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005007/0.1992, allocations: 0.7671 MB / 0.6413 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.2006, allocations: 0.7929 MB / 0.642 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/0.2009, allocations: 256.2 kB / 0.6423 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.2011, allocations: 80 kB / 0.6423 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.2035, allocations: 1.172 MB / 0.6435 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.2035, allocations: 11.92 kB / 0.6435 GB, free: 10.22 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.712e-05/0.2036, allocations: 28 kB / 0.6435 GB, free: 10.19 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.2036, allocations: 16 kB / 0.6435 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001896/0.2055, allocations: 0.9498 MB / 0.6445 GB, free: 9.227 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.006313/0.2119, allocations: 3.542 MB / 0.6479 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007491/0.2194, allocations: 2.307 MB / 0.6502 GB, free: 3.094 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.2208, allocations: 0.6517 MB / 0.6508 GB, free: 2.438 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.2209, allocations: 20.64 kB / 0.6508 GB, free: 2.418 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.2209, allocations: 39.22 kB / 0.6509 GB, free: 2.371 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 3.076e-06/0.2209, allocations: 0 / 0.6509 GB, free: 2.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02732/0.2483, allocations: 6.749 MB / 0.6575 GB, free: 11.56 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.2484, allocations: 93.77 kB / 0.6576 GB, free: 11.45 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.2501, allocations: 0.9733 MB / 0.6585 GB, free: 10.46 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001873/0.2503, allocations: 41.7 kB / 0.6586 GB, free: 10.41 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004073/0.2507, allocations: 456.8 kB / 0.659 GB, free: 9.961 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004191/0.2511, allocations: 315.6 kB / 0.6593 GB, free: 9.648 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005851/0.2517, allocations: 259.4 kB / 0.6595 GB, free: 9.387 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.2518, allocations: 309.1 kB / 0.6598 GB, free: 9.082 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.2533, allocations: 0.6949 MB / 0.6605 GB, free: 8.387 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.2549, allocations: 0.9222 MB / 0.6614 GB, free: 7.395 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02196/0.2769, allocations: 5.061 MB / 0.6664 GB, free: 2.258 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.277, allocations: 0 / 0.6664 GB, free: 2.258 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01344/0.2904, allocations: 4.141 MB / 0.6704 GB, free: 14.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.2905, allocations: 8 kB / 0.6704 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.2905, allocations: 4 kB / 0.6704 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005527/0.296, allocations: 1.519 MB / 0.6719 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.2973, allocations: 263.6 kB / 0.6721 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01991/0.3172, allocations: 8.265 MB / 0.6802 GB, free: 3.895 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.319, allocations: 174.9 kB / 0.6804 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002468/0.3193, allocations: 55.98 kB / 0.6804 GB, free: 3.668 MB / 494.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 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: 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 (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0008027/0.3201, allocations: 269.8 kB / 0.6807 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/0.3212, allocations: 329 kB / 0.681 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/0.3333, allocations: 3.6 MB / 0.6845 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.3334, allocations: 12 kB / 0.6845 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.43e-05/0.3334, allocations: 4 kB / 0.6845 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.002e-05/0.3334, allocations: 7.984 kB / 0.6845 GB, free: 15.42 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.01512/0.3485, allocations: 5.119 MB / 0.6895 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.3486, allocations: 3.938 kB / 0.6895 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006443/0.3492, allocations: 111.8 kB / 0.6897 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005604/0.3549, allocations: 1.575 MB / 0.6912 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/0.3551, allocations: 19.98 kB / 0.6912 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02093/0.376, allocations: 10.76 MB / 0.7017 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3761, allocations: 7.938 kB / 0.7017 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.3912, allocations: 4.605 MB / 0.7062 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005272/0.3918, allocations: 215.4 kB / 0.7064 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004201/0.3923, allocations: 16 kB / 0.7064 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.3935, allocations: 87.89 kB / 0.7065 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006631/0.3942, allocations: 172.8 kB / 0.7067 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.3944, allocations: 28 kB / 0.7067 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001047/0.3954, allocations: 0.6395 MB / 0.7073 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3954, allocations: 0 / 0.7073 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001857/0.3973, allocations: 439.6 kB / 0.7078 GB, free: 7.121 MB / 0.5137 GB 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 (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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003915/0.3977, allocations: 143.2 kB / 0.7079 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006514/0.4042, allocations: 2.308 MB / 0.7101 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.4043, allocations: 3.938 kB / 0.7102 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004199/0.4085, allocations: 1.305 MB / 0.7114 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.4104, allocations: 346.9 kB / 0.7118 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00474/0.4152, allocations: 2.082 MB / 0.7138 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3157/0.7309, allocations: 1.073 MB / 0.7148 GB, free: 85.36 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005333/0.7315, allocations: 80.16 kB / 0.7149 GB, free: 85.35 MB / 0.5137 GB Notification: Performance of SimCode: time 1.804e-06/0.7315, allocations: 0 / 0.7149 GB, free: 85.35 MB / 0.5137 GB Notification: Performance of Templates: time 0.04123/0.7727, allocations: 21.42 MB / 0.7358 GB, free: 78.66 MB / 0.5137 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (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)