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.001671/0.001671, allocations: 109.7 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.455/1.455, allocations: 222.9 MB / 240.1 MB, free: 4.559 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.001444/0.001444, allocations: 191.4 kB / 290.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5754/0.5754, allocations: 91.9 MB / 432.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 84.09 kB / 0.5734 GB, free: 33.65 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.154, allocations: 71.28 MB / 0.643 GB, free: 3.594 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.007688/0.1618, allocations: 6.79 MB / 0.6497 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004465/0.1663, allocations: 2.028 MB / 0.6516 GB, free: 10.74 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008709/0.1672, allocations: 12 kB / 0.6516 GB, free: 10.73 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007701/0.168, allocations: 237.9 kB / 0.6519 GB, free: 10.5 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002017/0.17, allocations: 0.8001 MB / 0.6527 GB, free: 9.695 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.1715, allocations: 0.6619 MB / 0.6533 GB, free: 9.039 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001731/0.1732, allocations: 1.612 MB / 0.6549 GB, free: 7.422 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004639/0.1737, allocations: 334.5 kB / 0.6552 GB, free: 7.086 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000811/0.1745, allocations: 0.6691 MB / 0.6558 GB, free: 6.414 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008512/0.1754, allocations: 0.8283 MB / 0.6567 GB, free: 5.582 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.1756, allocations: 127.9 kB / 0.6568 GB, free: 5.457 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005069/0.1761, allocations: 259.9 kB / 0.657 GB, free: 5.203 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002735/0.1764, allocations: 334.6 kB / 0.6573 GB, free: 4.875 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005363/0.1769, allocations: 0.6835 MB / 0.658 GB, free: 4.188 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.1785, allocations: 1.689 MB / 0.6597 GB, free: 2.492 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1785, allocations: 0 / 0.6597 GB, free: 2.492 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1785, allocations: 0 / 0.6597 GB, free: 2.492 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.1785, allocations: 0 / 0.6597 GB, free: 2.492 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.008609/0.1872, allocations: 2.711 MB / 0.6623 GB, free: 15.71 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.1872, allocations: 8.031 kB / 0.6623 GB, free: 15.7 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004976/0.1922, allocations: 0.7787 MB / 0.6631 GB, free: 14.92 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.1944, allocations: 0.9118 MB / 0.664 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002977/0.1947, allocations: 264.1 kB / 0.6642 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.1949, allocations: 87.91 kB / 0.6643 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002592/0.1975, allocations: 1.4 MB / 0.6657 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.1975, allocations: 0 / 0.6657 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.1976, allocations: 32 kB / 0.6657 GB, free: 12.11 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.1977, allocations: 20 kB / 0.6657 GB, free: 12.09 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.1996, allocations: 1.001 MB / 0.6667 GB, free: 11.09 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.006279/0.2059, allocations: 3.704 MB / 0.6703 GB, free: 7.195 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007192/0.2131, allocations: 2.566 MB / 0.6728 GB, free: 4.504 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.2146, allocations: 0.7679 MB / 0.6736 GB, free: 3.727 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/0.2147, allocations: 24.72 kB / 0.6736 GB, free: 3.699 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.2161, allocations: 0.743 MB / 0.6743 GB, free: 2.934 MB / 478.1 MB Notification: Performance of pre-optimization done (n=115): time 3.056e-06/0.2161, allocations: 4 kB / 0.6743 GB, free: 2.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=115): time 0.02795/0.2441, allocations: 7.307 MB / 0.6815 GB, free: 11.56 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/0.2443, allocations: 194.8 kB / 0.6816 GB, free: 11.33 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.2459, allocations: 1.083 MB / 0.6827 GB, free: 10.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002188/0.2462, allocations: 49.7 kB / 0.6827 GB, free: 10.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003745/0.2466, allocations: 485.2 kB / 0.6832 GB, free: 9.699 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.2469, allocations: 331.5 kB / 0.6835 GB, free: 9.371 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004918/0.2474, allocations: 311.4 kB / 0.6838 GB, free: 9.059 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.666e-05/0.2475, allocations: 305.1 kB / 0.6841 GB, free: 8.758 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.249, allocations: 0.7496 MB / 0.6848 GB, free: 8.008 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/0.2507, allocations: 1.1 MB / 0.6859 GB, free: 6.777 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.02277/0.2734, allocations: 5.953 MB / 0.6917 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/0.2735, allocations: 0 / 0.6917 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01369/0.2872, allocations: 4.532 MB / 0.6962 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.947e-05/0.2873, allocations: 63.41 kB / 0.6962 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-05/0.2873, allocations: 12 kB / 0.6962 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005989/0.2933, allocations: 1.633 MB / 0.6978 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.2947, allocations: 303.5 kB / 0.6981 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02127/0.316, allocations: 10.47 MB / 0.7083 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/0.3181, allocations: 206.7 kB / 0.7085 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.3182, allocations: 67.98 kB / 0.7086 GB, free: 14.98 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.000763/0.319, allocations: 363 kB / 0.7089 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001879/0.3209, allocations: 0.6688 MB / 0.7096 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01322/0.3341, allocations: 4.152 MB / 0.7137 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-05/0.3342, allocations: 12 kB / 0.7137 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.795e-05/0.3342, allocations: 11.94 kB / 0.7137 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.672e-05/0.3342, allocations: 7.969 kB / 0.7137 GB, free: 9.727 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.01515/0.3494, allocations: 5.691 MB / 0.7192 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.3495, allocations: 0 / 0.7192 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.3501, allocations: 107.8 kB / 0.7193 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005733/0.3558, allocations: 1.728 MB / 0.721 GB, free: 2.078 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.356, allocations: 24 kB / 0.7211 GB, free: 2.055 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02215/0.3782, allocations: 12.17 MB / 0.7329 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3782, allocations: 4 kB / 0.7329 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.3934, allocations: 5.12 MB / 0.7379 GB, free: 296 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005661/0.394, allocations: 227.2 kB / 0.7382 GB, free: 48 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.3942, allocations: 27.98 kB / 0.7382 GB, free: 20 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.3953, allocations: 115.8 kB / 0.7383 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005564/0.3959, allocations: 176.8 kB / 0.7385 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.99e-05/0.396, allocations: 35.98 kB / 0.7385 GB, free: 15.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001055/0.3971, allocations: 0.7278 MB / 0.7392 GB, free: 14.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3971, allocations: 3.938 kB / 0.7392 GB, free: 14.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001765/0.3988, allocations: 0.4918 MB / 0.7397 GB, free: 14.46 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.0002928/0.3991, allocations: 147 kB / 0.7398 GB, free: 14.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006493/0.4057, allocations: 2.765 MB / 0.7425 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.4057, allocations: 3.938 kB / 0.7425 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003919/0.4096, allocations: 1.383 MB / 0.7439 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.4117, allocations: 0.5898 MB / 0.7445 GB, free: 9.453 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004615/0.4163, allocations: 2.404 MB / 0.7468 GB, free: 7.008 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.4171, allocations: 1.156 MB / 0.7479 GB, free: 5.824 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.4174, allocations: 87.42 kB / 0.748 GB, free: 5.738 MB / 0.545 GB Notification: Performance of SimCode: time 1.694e-06/0.4174, allocations: 0 / 0.748 GB, free: 5.738 MB / 0.545 GB Notification: Performance of Templates: time 0.3941/0.8115, allocations: 31.17 MB / 0.7785 GB, free: 115.6 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)