Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_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_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.00104/0.00104, allocations: 107.6 kB / 16.41 MB, free: 6.496 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.249/1.249, allocations: 222.9 MB / 240.1 MB, free: 4.57 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.001328/0.001328, allocations: 192.5 kB / 290.4 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4117/0.4117, allocations: 78.53 MB / 419.1 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 80.09 kB / 0.5543 GB, free: 1.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4383/0.44, allocations: 68.17 MB / 0.6209 GB, free: 9.816 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.00902/0.4491, allocations: 6.77 MB / 0.6275 GB, free: 3.484 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007411/0.4566, allocations: 2.013 MB / 0.6295 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002419/0.4591, allocations: 12 kB / 0.6295 GB, free: 1.453 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.4607, allocations: 245.9 kB / 0.6297 GB, free: 1.211 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004223/0.4649, allocations: 0.8042 MB / 0.6305 GB, free: 420 kB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.002594/0.4676, allocations: 0.6644 MB / 0.6311 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003971/0.4715, allocations: 1.604 MB / 0.6327 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008919/0.4725, allocations: 342.5 kB / 0.633 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.4741, allocations: 0.6652 MB / 0.6337 GB, free: 13.12 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.4759, allocations: 0.8322 MB / 0.6345 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003404/0.4762, allocations: 124 kB / 0.6346 GB, free: 12.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009216/0.4771, allocations: 263.8 kB / 0.6349 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004839/0.4776, allocations: 334.6 kB / 0.6352 GB, free: 11.58 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.4787, allocations: 0.6835 MB / 0.6359 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00333/0.4821, allocations: 1.699 MB / 0.6375 GB, free: 9.195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/0.4821, allocations: 0 / 0.6375 GB, free: 9.195 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.4821, allocations: 0 / 0.6375 GB, free: 9.195 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.965e-05/0.4822, allocations: 0 / 0.6375 GB, free: 9.195 MB / 446.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.01494/0.4971, allocations: 2.703 MB / 0.6402 GB, free: 6.422 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.471e-05/0.4972, allocations: 12.03 kB / 0.6402 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008328/0.5055, allocations: 0.7748 MB / 0.6409 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/0.5079, allocations: 0.9119 MB / 0.6418 GB, free: 4.664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003625/0.5082, allocations: 264.1 kB / 0.6421 GB, free: 4.371 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.5084, allocations: 91.89 kB / 0.6421 GB, free: 4.281 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00306/0.5115, allocations: 1.407 MB / 0.6435 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.5116, allocations: 0 / 0.6435 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.905e-05/0.5117, allocations: 32 kB / 0.6436 GB, free: 2.812 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.5117, allocations: 16 kB / 0.6436 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002312/0.514, allocations: 0.9967 MB / 0.6445 GB, free: 1.797 MB / 446.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.008868/0.5229, allocations: 3.673 MB / 0.6481 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/0.5348, allocations: 2.579 MB / 0.6506 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002856/0.5378, allocations: 0.7722 MB / 0.6514 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001836/0.538, allocations: 20.66 kB / 0.6514 GB, free: 10.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002555/0.5406, allocations: 0.747 MB / 0.6522 GB, free: 9.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=115): time 6.202e-06/0.5406, allocations: 3.938 kB / 0.6522 GB, free: 9.656 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.04041/0.581, allocations: 7.173 MB / 0.6592 GB, free: 2.422 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002097/0.5813, allocations: 194.8 kB / 0.6593 GB, free: 2.191 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/0.5843, allocations: 1.087 MB / 0.6604 GB, free: 1.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003749/0.5847, allocations: 53.69 kB / 0.6605 GB, free: 1.031 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006468/0.5854, allocations: 481.2 kB / 0.6609 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007531/0.5862, allocations: 335.5 kB / 0.6612 GB, free: 228 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000904/0.5871, allocations: 307.5 kB / 0.6615 GB, free: 15.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002866/0.5874, allocations: 305.1 kB / 0.6618 GB, free: 15.61 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00259/0.59, allocations: 0.7534 MB / 0.6626 GB, free: 14.86 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002826/0.5928, allocations: 1.096 MB / 0.6636 GB, free: 13.63 MB / 478.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.03562/0.6285, allocations: 5.957 MB / 0.6694 GB, free: 7.461 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.224e-05/0.6286, allocations: 4 kB / 0.6694 GB, free: 7.457 MB / 478.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.02131/0.6499, allocations: 4.528 MB / 0.6739 GB, free: 2.898 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.6501, allocations: 59.41 kB / 0.6739 GB, free: 2.828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.202e-05/0.6502, allocations: 16 kB / 0.6739 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008969/0.6592, allocations: 1.638 MB / 0.6755 GB, free: 1.168 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/0.6613, allocations: 303.5 kB / 0.6758 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03086/0.6922, allocations: 10.47 MB / 0.6861 GB, free: 6.109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00285/0.6952, allocations: 206.7 kB / 0.6863 GB, free: 5.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004595/0.6957, allocations: 67.97 kB / 0.6863 GB, free: 5.84 MB / 494.1 MB 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.001233/0.6969, allocations: 361.1 kB / 0.6867 GB, free: 5.469 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002979/0.6999, allocations: 0.6725 MB / 0.6873 GB, free: 4.781 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01987/0.7198, allocations: 4.148 MB / 0.6914 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-05/0.7199, allocations: 15.98 kB / 0.6914 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.985e-05/0.72, allocations: 11.94 kB / 0.6914 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.782e-05/0.72, allocations: 11.98 kB / 0.6914 GB, free: 0.5625 MB / 494.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.02191/0.7419, allocations: 5.679 MB / 0.697 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.309e-05/0.742, allocations: 4 kB / 0.697 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.7431, allocations: 111.9 kB / 0.6971 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01007/0.7532, allocations: 1.72 MB / 0.6987 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004237/0.7537, allocations: 24 kB / 0.6988 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0412/0.795, allocations: 12.19 MB / 0.7107 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/0.7951, allocations: 7.938 kB / 0.7107 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02569/0.8208, allocations: 5.108 MB / 0.7157 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009994/0.8218, allocations: 235.2 kB / 0.7159 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004233/0.8223, allocations: 23.98 kB / 0.7159 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/0.8242, allocations: 119.8 kB / 0.716 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008612/0.825, allocations: 176.7 kB / 0.7162 GB, free: 6.574 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.8252, allocations: 35.98 kB / 0.7162 GB, free: 6.539 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001746/0.827, allocations: 0.7278 MB / 0.7169 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.827, allocations: 0 / 0.7169 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003035/0.83, allocations: 0.4956 MB / 0.7174 GB, free: 5.309 MB / 0.5137 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.0004154/0.8305, allocations: 151.2 kB / 0.7176 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008962/0.8394, allocations: 2.762 MB / 0.7203 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/0.8395, allocations: 0 / 0.7203 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006971/0.8465, allocations: 1.379 MB / 0.7216 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003517/0.8501, allocations: 0.5916 MB / 0.7222 GB, free: 308 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008381/0.8585, allocations: 2.414 MB / 0.7245 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.8597, allocations: 1.156 MB / 0.7257 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005652/0.8603, allocations: 91.42 kB / 0.7258 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of SimCode: time 7.52e-07/0.8603, allocations: 0 / 0.7258 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of Templates: time 0.061/0.9213, allocations: 31.38 MB / 0.7564 GB, free: 13.13 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)