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.007614/0.007614, allocations: 99.72 kB / 15.73 MB, free: 6.48 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.43/1.43, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001301/0.001301, allocations: 192.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5734/0.5734, allocations: 91.9 MB / 431.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 78.5 kB / 0.5727 GB, free: 33.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1552, allocations: 71.28 MB / 0.6424 GB, free: 3.586 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.007274/0.1625, allocations: 6.574 MB / 0.6488 GB, free: 12.98 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004219/0.1668, allocations: 1.966 MB / 0.6507 GB, free: 11.01 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006871/0.1675, allocations: 12 kB / 0.6507 GB, free: 11 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007346/0.1682, allocations: 237.9 kB / 0.6509 GB, free: 10.76 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002087/0.1704, allocations: 0.8075 MB / 0.6517 GB, free: 9.953 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.1718, allocations: 0.6286 MB / 0.6523 GB, free: 9.328 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.1736, allocations: 1.585 MB / 0.6539 GB, free: 7.738 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005104/0.1742, allocations: 326.4 kB / 0.6542 GB, free: 7.41 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009961/0.1752, allocations: 0.6613 MB / 0.6548 GB, free: 6.746 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009967/0.1762, allocations: 0.8246 MB / 0.6556 GB, free: 5.918 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001957/0.1764, allocations: 120 kB / 0.6558 GB, free: 5.801 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005597/0.177, allocations: 259.9 kB / 0.656 GB, free: 5.547 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003277/0.1773, allocations: 326.6 kB / 0.6563 GB, free: 5.227 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006243/0.1779, allocations: 0.6641 MB / 0.657 GB, free: 4.559 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.1799, allocations: 1.673 MB / 0.6586 GB, free: 2.879 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1799, allocations: 0 / 0.6586 GB, free: 2.879 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1799, allocations: 0 / 0.6586 GB, free: 2.879 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.18, allocations: 4 kB / 0.6586 GB, free: 2.875 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.00894/0.1889, allocations: 2.73 MB / 0.6613 GB, free: 76 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.189, allocations: 8.031 kB / 0.6613 GB, free: 68 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005227/0.1942, allocations: 0.7875 MB / 0.662 GB, free: 15.27 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.1958, allocations: 0.8951 MB / 0.6629 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002925/0.1961, allocations: 256.2 kB / 0.6632 GB, free: 14.04 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.1963, allocations: 80 kB / 0.6632 GB, free: 13.96 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.1985, allocations: 1.094 MB / 0.6643 GB, free: 12.85 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.1985, allocations: 0 / 0.6643 GB, free: 12.85 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.473e-05/0.1986, allocations: 32 kB / 0.6643 GB, free: 12.82 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/0.1987, allocations: 20 kB / 0.6644 GB, free: 12.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002237/0.2009, allocations: 0.9838 MB / 0.6653 GB, free: 11.82 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.007784/0.2087, allocations: 3.836 MB / 0.6691 GB, free: 7.797 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007384/0.2161, allocations: 2.367 MB / 0.6714 GB, free: 5.34 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.2175, allocations: 0.6762 MB / 0.672 GB, free: 4.66 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.2176, allocations: 16.97 kB / 0.6721 GB, free: 4.645 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001646/0.2193, allocations: 0.8255 MB / 0.6729 GB, free: 3.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.705e-06/0.2193, allocations: 0 / 0.6729 GB, free: 3.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02866/0.2479, allocations: 7.078 MB / 0.6798 GB, free: 12.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.2481, allocations: 119.7 kB / 0.6799 GB, free: 12.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.25, allocations: 1.087 MB / 0.6809 GB, free: 11.42 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.2503, allocations: 45.7 kB / 0.681 GB, free: 11.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004107/0.2507, allocations: 0.4976 MB / 0.6815 GB, free: 10.86 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004491/0.2512, allocations: 368.9 kB / 0.6818 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005298/0.2517, allocations: 287.5 kB / 0.6821 GB, free: 10.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2518, allocations: 301.1 kB / 0.6824 GB, free: 9.918 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.2535, allocations: 0.7691 MB / 0.6831 GB, free: 9.148 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.2553, allocations: 0.9343 MB / 0.6841 GB, free: 8.176 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02391/0.2792, allocations: 5.571 MB / 0.6895 GB, free: 2.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/0.2793, allocations: 0 / 0.6895 GB, free: 2.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01557/0.2948, allocations: 4.34 MB / 0.6937 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.892e-05/0.295, allocations: 60.66 kB / 0.6938 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.295, allocations: 4 kB / 0.6938 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005793/0.3008, allocations: 1.52 MB / 0.6953 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.3025, allocations: 295.6 kB / 0.6956 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02118/0.3237, allocations: 8.269 MB / 0.7036 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002332/0.3261, allocations: 207 kB / 0.7038 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003829/0.3265, allocations: 55.97 kB / 0.7039 GB, free: 3.582 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.001071/0.3276, allocations: 314.5 kB / 0.7042 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005164/0.3281, allocations: 135.1 kB / 0.7043 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01348/0.3416, allocations: 3.865 MB / 0.7081 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.502e-05/0.3417, allocations: 8 kB / 0.7081 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.033e-05/0.3418, allocations: 8 kB / 0.7081 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.48e-05/0.3418, allocations: 7.969 kB / 0.7081 GB, free: 15.21 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.01693/0.3587, allocations: 5.475 MB / 0.7135 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.078e-05/0.3588, allocations: 7.938 kB / 0.7135 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/0.3597, allocations: 95.89 kB / 0.7136 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006077/0.3658, allocations: 1.582 MB / 0.7151 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003242/0.3661, allocations: 27.98 kB / 0.7151 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02239/0.3885, allocations: 9.633 MB / 0.7245 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.3886, allocations: 4 kB / 0.7245 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/0.4045, allocations: 4.743 MB / 0.7292 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005852/0.4052, allocations: 232 kB / 0.7294 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004052/0.4056, allocations: 16 kB / 0.7294 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.407, allocations: 111.9 kB / 0.7295 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007233/0.4078, allocations: 192.7 kB / 0.7297 GB, free: 8.645 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/0.4079, allocations: 31.98 kB / 0.7297 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001504/0.4094, allocations: 0.7274 MB / 0.7304 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.8e-07/0.4094, allocations: 0 / 0.7304 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002222/0.4117, allocations: 475.6 kB / 0.7309 GB, free: 7.414 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.0004347/0.4121, allocations: 144.1 kB / 0.731 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006978/0.4191, allocations: 2.506 MB / 0.7335 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.4191, allocations: 0 / 0.7335 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004531/0.4237, allocations: 1.585 MB / 0.735 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.4251, allocations: 120.5 kB / 0.7351 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/0.43, allocations: 2.284 MB / 0.7374 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009898/0.431, allocations: 1.128 MB / 0.7385 GB, free: 15.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004878/0.4315, allocations: 116.1 kB / 0.7386 GB, free: 15.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.4318, allocations: 75.42 kB / 0.7387 GB, free: 15.31 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/0.4318, allocations: 0 / 0.7387 GB, free: 15.31 MB / 0.545 GB Notification: Performance of Templates: time 0.04546/0.4773, allocations: 23.7 MB / 0.7618 GB, free: 7.613 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)