Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_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_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.353/1.353, allocations: 222.9 MB / 240.1 MB, free: 4.383 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.00161/0.001609, allocations: 192.5 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5513/0.5513, allocations: 91.9 MB / 432.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 80.38 kB / 0.5734 GB, free: 33.47 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1382, allocations: 71.29 MB / 0.643 GB, free: 3.574 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.007015/0.1452, allocations: 6.788 MB / 0.6496 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.1495, allocations: 2.025 MB / 0.6516 GB, free: 10.73 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007202/0.1503, allocations: 8 kB / 0.6516 GB, free: 10.72 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007138/0.151, allocations: 245.9 kB / 0.6519 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001904/0.1529, allocations: 0.7974 MB / 0.6526 GB, free: 9.68 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.1546, allocations: 0.6586 MB / 0.6533 GB, free: 9.027 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002235/0.1568, allocations: 1.616 MB / 0.6549 GB, free: 7.406 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004956/0.1574, allocations: 342.5 kB / 0.6552 GB, free: 7.062 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008152/0.1582, allocations: 0.6691 MB / 0.6558 GB, free: 6.391 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008567/0.159, allocations: 0.8322 MB / 0.6567 GB, free: 5.555 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.1592, allocations: 124 kB / 0.6568 GB, free: 5.434 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005317/0.1598, allocations: 263.9 kB / 0.657 GB, free: 5.176 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002866/0.1601, allocations: 334.6 kB / 0.6573 GB, free: 4.848 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005268/0.1606, allocations: 0.6797 MB / 0.658 GB, free: 4.164 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001691/0.1623, allocations: 1.685 MB / 0.6597 GB, free: 2.473 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1623, allocations: 7.938 kB / 0.6597 GB, free: 2.465 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1623, allocations: 0 / 0.6597 GB, free: 2.465 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.1624, allocations: 0 / 0.6597 GB, free: 2.465 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.008743/0.1711, allocations: 2.709 MB / 0.6623 GB, free: 15.69 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.1712, allocations: 12.03 kB / 0.6623 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004994/0.1762, allocations: 0.7709 MB / 0.6631 GB, free: 14.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.1778, allocations: 0.9118 MB / 0.664 GB, free: 13.94 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000297/0.1782, allocations: 264.1 kB / 0.6642 GB, free: 13.64 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.1783, allocations: 87.91 kB / 0.6643 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00281/0.1812, allocations: 1.4 MB / 0.6657 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1812, allocations: 0 / 0.6657 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.1813, allocations: 28 kB / 0.6657 GB, free: 12.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.1813, allocations: 23.98 kB / 0.6657 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002057/0.1834, allocations: 1.001 MB / 0.6667 GB, free: 11.07 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.006568/0.19, allocations: 3.704 MB / 0.6703 GB, free: 7.18 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00756/0.1976, allocations: 2.568 MB / 0.6728 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/0.1992, allocations: 0.7704 MB / 0.6736 GB, free: 3.703 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.1994, allocations: 24.7 kB / 0.6736 GB, free: 3.676 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001647/0.201, allocations: 0.747 MB / 0.6743 GB, free: 2.906 MB / 478.1 MB Notification: Performance of pre-optimization done (n=115): time 4.498e-06/0.201, allocations: 0 / 0.6743 GB, free: 2.906 MB / 478.1 MB Notification: Performance of matching and sorting (n=115): time 0.03024/0.2313, allocations: 7.299 MB / 0.6815 GB, free: 11.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/0.2315, allocations: 198.7 kB / 0.6816 GB, free: 11.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00209/0.2336, allocations: 1.083 MB / 0.6827 GB, free: 10.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002791/0.2339, allocations: 45.7 kB / 0.6827 GB, free: 10.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.2344, allocations: 481.2 kB / 0.6832 GB, free: 9.688 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005157/0.2349, allocations: 339.4 kB / 0.6835 GB, free: 9.352 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006978/0.2356, allocations: 315.4 kB / 0.6838 GB, free: 9.035 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.2358, allocations: 301.1 kB / 0.6841 GB, free: 8.738 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/0.2374, allocations: 0.7496 MB / 0.6848 GB, free: 7.988 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/0.2393, allocations: 1.096 MB / 0.6859 GB, free: 6.762 MB / 494.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02356/0.2629, allocations: 5.953 MB / 0.6917 GB, free: 0.582 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.949e-05/0.263, allocations: 4 kB / 0.6917 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01506/0.278, allocations: 4.524 MB / 0.6962 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.782e-05/0.2781, allocations: 63.41 kB / 0.6962 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.858e-05/0.2782, allocations: 8 kB / 0.6962 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006496/0.2847, allocations: 1.633 MB / 0.6978 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.2861, allocations: 303.5 kB / 0.6981 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/0.3108, allocations: 10.49 MB / 0.7084 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.3132, allocations: 206.7 kB / 0.7086 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003632/0.3136, allocations: 71.97 kB / 0.7086 GB, free: 14.95 MB / 0.5137 GB Warning: Assuming fixed start value for the following 3 variables: 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 Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.simpleLagLim.state = aVRTypeII.simpleLagLim.y_start order4.delta0 = Modelica.Math.atan3(order4.Vt0.im + (order4.ra * order4.I0.im + order4.xq0 * order4.I0.re) * order4.Z_MBtoSB, order4.Vt0.re + (order4.ra * order4.I0.re - order4.xq0 * order4.I0.im) * order4.Z_MBtoSB, 0.0). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.simpleLagLim.state,aVRTypeII.derivativeBlock.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 2 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.001206/0.3148, allocations: 351.1 kB / 0.709 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002232/0.3171, allocations: 0.6649 MB / 0.7096 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/0.3314, allocations: 4.156 MB / 0.7137 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/0.3314, allocations: 12 kB / 0.7137 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.168e-05/0.3315, allocations: 8 kB / 0.7137 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.29e-05/0.3315, allocations: 7.969 kB / 0.7137 GB, free: 9.707 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.01669/0.3482, allocations: 5.691 MB / 0.7192 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/0.3483, allocations: 0 / 0.7192 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006392/0.3489, allocations: 111.8 kB / 0.7194 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006314/0.3553, allocations: 1.728 MB / 0.721 GB, free: 2.055 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002188/0.3555, allocations: 23.98 kB / 0.7211 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02463/0.3802, allocations: 12.16 MB / 0.7329 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3802, allocations: 0 / 0.7329 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/0.3969, allocations: 5.124 MB / 0.7379 GB, free: 276 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005947/0.3976, allocations: 231.3 kB / 0.7382 GB, free: 24 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004221/0.398, allocations: 24.12 kB / 0.7382 GB, free: 0 / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.3996, allocations: 116 kB / 0.7383 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006262/0.4002, allocations: 184.7 kB / 0.7385 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/0.4004, allocations: 35.98 kB / 0.7385 GB, free: 15.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001334/0.4017, allocations: 0.7278 MB / 0.7392 GB, free: 14.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4018, allocations: 0 / 0.7392 GB, free: 14.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001999/0.4038, allocations: 499.6 kB / 0.7397 GB, free: 14.44 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003388/0.4041, allocations: 157.8 kB / 0.7398 GB, free: 14.28 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007085/0.4112, allocations: 2.758 MB / 0.7425 GB, free: 11.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.4112, allocations: 192 / 0.7425 GB, free: 11.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004129/0.4154, allocations: 1.379 MB / 0.7439 GB, free: 10.06 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.4175, allocations: 0.5952 MB / 0.7445 GB, free: 9.438 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004553/0.4221, allocations: 2.415 MB / 0.7468 GB, free: 6.984 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007543/0.4228, allocations: 1.156 MB / 0.748 GB, free: 5.801 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/0.4232, allocations: 87.42 kB / 0.748 GB, free: 5.715 MB / 0.545 GB Notification: Performance of SimCode: time 6.71e-07/0.4232, allocations: 0 / 0.748 GB, free: 5.715 MB / 0.545 GB Notification: Performance of Templates: time 0.356/0.7792, allocations: 31.17 MB / 0.7785 GB, free: 115.8 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)