Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json 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 4.0.0+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 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 105.2 kB / 16.41 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 240.1 MB, free: 4.527 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.001728/0.001728, allocations: 192.5 kB / 290.4 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.502/0.502, allocations: 91.91 MB / 432.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 79.25 kB / 0.5734 GB, free: 33.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1341, allocations: 71.27 MB / 0.643 GB, free: 3.586 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.007824/0.142, allocations: 6.584 MB / 0.6494 GB, free: 12.97 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004364/0.1464, allocations: 1.966 MB / 0.6514 GB, free: 11 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.1477, allocations: 12 kB / 0.6514 GB, free: 10.99 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.149, allocations: 234 kB / 0.6516 GB, free: 10.76 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003807/0.1528, allocations: 0.8119 MB / 0.6524 GB, free: 9.945 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.1549, allocations: 0.6265 MB / 0.653 GB, free: 9.324 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003345/0.1583, allocations: 1.596 MB / 0.6546 GB, free: 7.723 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000879/0.1592, allocations: 322.4 kB / 0.6549 GB, free: 7.398 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001777/0.1609, allocations: 0.6613 MB / 0.6555 GB, free: 6.734 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.1627, allocations: 0.8167 MB / 0.6563 GB, free: 5.914 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006409/0.1633, allocations: 124 kB / 0.6564 GB, free: 5.793 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.1645, allocations: 259.8 kB / 0.6567 GB, free: 5.539 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003828/0.1649, allocations: 326.6 kB / 0.657 GB, free: 5.219 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007941/0.1657, allocations: 0.668 MB / 0.6576 GB, free: 4.547 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001929/0.1677, allocations: 1.654 MB / 0.6593 GB, free: 2.887 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.912e-06/0.1677, allocations: 4 kB / 0.6593 GB, free: 2.883 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1677, allocations: 0 / 0.6593 GB, free: 2.883 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.1677, allocations: 0 / 0.6593 GB, free: 2.883 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.008957/0.1767, allocations: 2.692 MB / 0.6619 GB, free: 124 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1768, allocations: 8.031 kB / 0.6619 GB, free: 116 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00515/0.1819, allocations: 0.7787 MB / 0.6627 GB, free: 15.33 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.1838, allocations: 0.8786 MB / 0.6635 GB, free: 14.4 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.1841, allocations: 260.2 kB / 0.6638 GB, free: 14.11 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.1843, allocations: 87.91 kB / 0.6638 GB, free: 14.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.1865, allocations: 1.094 MB / 0.6649 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.1865, allocations: 0 / 0.6649 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.1866, allocations: 32 kB / 0.6649 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.1866, allocations: 16 kB / 0.665 GB, free: 12.87 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.1887, allocations: 0.9877 MB / 0.6659 GB, free: 11.88 MB / 478.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.0071/0.1958, allocations: 3.828 MB / 0.6697 GB, free: 7.867 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007467/0.2033, allocations: 2.365 MB / 0.672 GB, free: 5.406 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.2049, allocations: 0.68 MB / 0.6726 GB, free: 4.723 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.575e-05/0.205, allocations: 20.97 kB / 0.6727 GB, free: 4.703 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001649/0.2066, allocations: 0.8176 MB / 0.6735 GB, free: 3.867 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 3.046e-06/0.2066, allocations: 0 / 0.6735 GB, free: 3.867 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.0292/0.2358, allocations: 7.077 MB / 0.6804 GB, free: 12.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.236, allocations: 119.8 kB / 0.6805 GB, free: 12.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.2379, allocations: 1.079 MB / 0.6815 GB, free: 11.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002465/0.2382, allocations: 45.7 kB / 0.6816 GB, free: 11.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004529/0.2386, allocations: 496.8 kB / 0.6821 GB, free: 10.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005179/0.2392, allocations: 355.1 kB / 0.6824 GB, free: 10.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007034/0.2399, allocations: 287.4 kB / 0.6827 GB, free: 10.31 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.24, allocations: 305.1 kB / 0.683 GB, free: 10.01 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/0.2417, allocations: 0.7652 MB / 0.6837 GB, free: 9.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.2435, allocations: 0.9381 MB / 0.6846 GB, free: 8.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02379/0.2673, allocations: 5.579 MB / 0.6901 GB, free: 2.605 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/0.2674, allocations: 7.938 kB / 0.6901 GB, free: 2.598 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01431/0.2817, allocations: 4.324 MB / 0.6943 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.066e-05/0.2818, allocations: 60.5 kB / 0.6944 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.2819, allocations: 0 / 0.6944 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005631/0.2875, allocations: 1.516 MB / 0.6958 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.2891, allocations: 299.6 kB / 0.6961 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02049/0.3096, allocations: 8.268 MB / 0.7042 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.3118, allocations: 198.8 kB / 0.7044 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003354/0.3122, allocations: 59.97 kB / 0.7044 GB, free: 3.684 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.0009809/0.3132, allocations: 296.4 kB / 0.7047 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004623/0.3136, allocations: 130.3 kB / 0.7048 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/0.3272, allocations: 3.869 MB / 0.7086 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.301e-05/0.3273, allocations: 12 kB / 0.7086 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.418e-05/0.3273, allocations: 8 kB / 0.7086 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-05/0.3273, allocations: 3.984 kB / 0.7087 GB, free: 15.33 MB / 0.5137 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.01628/0.3436, allocations: 5.467 MB / 0.714 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/0.3437, allocations: 4.031 kB / 0.714 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/0.3444, allocations: 99.89 kB / 0.7141 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006009/0.3504, allocations: 1.594 MB / 0.7156 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002855/0.3508, allocations: 23.98 kB / 0.7157 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02189/0.3727, allocations: 9.622 MB / 0.7251 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3727, allocations: 0 / 0.7251 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/0.3881, allocations: 4.738 MB / 0.7297 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005434/0.3887, allocations: 215.3 kB / 0.7299 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/0.3892, allocations: 24 kB / 0.7299 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/0.3906, allocations: 107.9 kB / 0.73 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006851/0.3913, allocations: 196.8 kB / 0.7302 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.3915, allocations: 35.98 kB / 0.7302 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001353/0.3928, allocations: 0.7235 MB / 0.731 GB, free: 8.02 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.3929, allocations: 0 / 0.731 GB, free: 8.02 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001889/0.3947, allocations: 475.5 kB / 0.7314 GB, free: 7.555 MB / 0.5294 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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003587/0.3951, allocations: 139.2 kB / 0.7315 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006738/0.4019, allocations: 2.498 MB / 0.734 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.4019, allocations: 4.438 kB / 0.734 GB, free: 4.863 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004452/0.4064, allocations: 1.585 MB / 0.7355 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.4077, allocations: 121.6 kB / 0.7356 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004662/0.4124, allocations: 2.281 MB / 0.7379 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008281/0.4132, allocations: 1.12 MB / 0.739 GB, free: 15.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004016/0.4137, allocations: 91.41 kB / 0.7391 GB, free: 15.57 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/0.4137, allocations: 3.938 kB / 0.7391 GB, free: 15.57 MB / 0.545 GB Notification: Performance of Templates: time 0.03383/0.4475, allocations: 23.5 MB / 0.762 GB, free: 8.051 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)