Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009143/0.0009144, allocations: 174.1 kB / 16.07 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 222.9 MB / 239.7 MB, free: 10.21 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007312/0.0007314, allocations: 97.88 kB / 290.5 MB, free: 11.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4239/0.4239, allocations: 78.43 MB / 419.6 MB, free: 9.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003652, allocations: 8.375 kB / 499.1 MB, free: 10.64 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2483, allocations: 68.75 MB / 0.5545 GB, free: 20.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005611/0.254, allocations: 7.066 MB / 0.5614 GB, free: 13.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003209/0.2572, allocations: 2.056 MB / 0.5634 GB, free: 11.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006212/0.2579, allocations: 23.94 kB / 0.5634 GB, free: 11.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005329/0.2584, allocations: 182.8 kB / 0.5636 GB, free: 10.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00147/0.2599, allocations: 0.7199 MB / 0.5643 GB, free: 10.14 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001099/0.261, allocations: 0.6192 MB / 0.5649 GB, free: 9.527 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.2621, allocations: 1.518 MB / 0.5664 GB, free: 8.004 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000327/0.2624, allocations: 297.2 kB / 0.5667 GB, free: 7.703 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004692/0.2629, allocations: 0.5753 MB / 0.5673 GB, free: 7.125 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005352/0.2635, allocations: 0.758 MB / 0.568 GB, free: 6.363 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.2636, allocations: 60 kB / 0.568 GB, free: 6.305 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003675/0.264, allocations: 191.8 kB / 0.5682 GB, free: 6.117 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.2641, allocations: 262.6 kB / 0.5685 GB, free: 5.859 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003373/0.2645, allocations: 0.6093 MB / 0.5691 GB, free: 5.246 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007323/0.2652, allocations: 1.241 MB / 0.5703 GB, free: 4.004 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2652, allocations: 0 / 0.5703 GB, free: 4.004 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2652, allocations: 4 kB / 0.5703 GB, free: 4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.2653, allocations: 0 / 0.5703 GB, free: 4 MB / 378.7 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.00695/0.2722, allocations: 2.451 MB / 0.5727 GB, free: 1.484 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2723, allocations: 8.031 kB / 0.5727 GB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004687/0.2769, allocations: 0.7826 MB / 0.5735 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.2782, allocations: 0.9042 MB / 0.5743 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.2785, allocations: 260.2 kB / 0.5746 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.2787, allocations: 88 kB / 0.5747 GB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.2812, allocations: 1.409 MB / 0.576 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.2812, allocations: 3.938 kB / 0.5761 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.008e-05/0.2813, allocations: 36 kB / 0.5761 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.2813, allocations: 16 kB / 0.5761 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.2833, allocations: 1.008 MB / 0.5771 GB, free: 12.85 MB / 394.7 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.005777/0.289, allocations: 3.681 MB / 0.5807 GB, free: 8.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007249/0.2963, allocations: 2.569 MB / 0.5832 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.2978, allocations: 0.7599 MB / 0.5839 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.298, allocations: 32.7 kB / 0.584 GB, free: 5.488 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001365/0.2993, allocations: 0.747 MB / 0.5847 GB, free: 4.715 MB / 394.7 MB Notification: Performance of pre-optimization done (n=115): time 3.036e-06/0.2994, allocations: 0 / 0.5847 GB, free: 4.715 MB / 394.7 MB Notification: Performance of matching and sorting (n=115): time 0.0275/0.3269, allocations: 7.172 MB / 0.5917 GB, free: 13.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.327, allocations: 202.8 kB / 0.5919 GB, free: 13.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/0.3286, allocations: 1.087 MB / 0.593 GB, free: 12.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/0.3288, allocations: 49.7 kB / 0.593 GB, free: 12.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.3292, allocations: 481.2 kB / 0.5935 GB, free: 11.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/0.3295, allocations: 331.6 kB / 0.5938 GB, free: 11.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.3297, allocations: 157.6 kB / 0.5939 GB, free: 11.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.597e-05/0.3298, allocations: 305.1 kB / 0.5942 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/0.3313, allocations: 0.7535 MB / 0.595 GB, free: 10.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.333, allocations: 1.1 MB / 0.596 GB, free: 8.84 MB / 410.7 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.02192/0.3549, allocations: 5.956 MB / 0.6018 GB, free: 2.668 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.3549, allocations: 4 kB / 0.6018 GB, free: 2.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01345/0.3684, allocations: 4.532 MB / 0.6063 GB, free: 14.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.664e-05/0.3685, allocations: 59.41 kB / 0.6063 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.3685, allocations: 12 kB / 0.6063 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005886/0.3744, allocations: 1.63 MB / 0.6079 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.3757, allocations: 299.5 kB / 0.6082 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01979/0.3955, allocations: 9.638 MB / 0.6176 GB, free: 2.164 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.3974, allocations: 206.7 kB / 0.6178 GB, free: 1.961 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.3975, allocations: 71.91 kB / 0.6179 GB, free: 1.891 MB / 426.7 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 sytem: $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.0006589/0.3982, allocations: 360.5 kB / 0.6182 GB, free: 1.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/0.4, allocations: 0.6727 MB / 0.6189 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/0.413, allocations: 4.152 MB / 0.623 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.413, allocations: 15.94 kB / 0.623 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.413, allocations: 8 kB / 0.623 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-05/0.4131, allocations: 11.91 kB / 0.623 GB, free: 12.62 MB / 442.7 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.01466/0.4277, allocations: 5.681 MB / 0.6285 GB, free: 6.832 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/0.4278, allocations: 3.984 kB / 0.6285 GB, free: 6.828 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006177/0.4284, allocations: 115.8 kB / 0.6286 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007415/0.4358, allocations: 1.718 MB / 0.6303 GB, free: 4.988 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.436, allocations: 27.98 kB / 0.6304 GB, free: 4.961 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02107/0.4571, allocations: 11.14 MB / 0.6412 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4571, allocations: 0 / 0.6412 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/0.4724, allocations: 5.119 MB / 0.6462 GB, free: 4.238 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004321/0.4729, allocations: 231.2 kB / 0.6465 GB, free: 3.992 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.4731, allocations: 27.98 kB / 0.6465 GB, free: 3.965 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.4742, allocations: 111.9 kB / 0.6466 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004963/0.4747, allocations: 172.6 kB / 0.6468 GB, free: 3.688 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.028e-05/0.4748, allocations: 31.98 kB / 0.6468 GB, free: 3.656 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009976/0.4758, allocations: 0.7394 MB / 0.6475 GB, free: 2.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.194e-06/0.4758, allocations: 4 kB / 0.6475 GB, free: 2.906 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001505/0.4773, allocations: 495.6 kB / 0.648 GB, free: 2.422 MB / 458.7 MB 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.0002552/0.4776, allocations: 135.2 kB / 0.6481 GB, free: 2.277 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006083/0.4837, allocations: 2.75 MB / 0.6508 GB, free: 15.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4837, allocations: 4 kB / 0.6508 GB, free: 15.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003741/0.4874, allocations: 1.38 MB / 0.6521 GB, free: 14.05 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/0.4892, allocations: 0.595 MB / 0.6527 GB, free: 13.44 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/0.4936, allocations: 2.874 MB / 0.6555 GB, free: 10.53 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.4942, allocations: 1.156 MB / 0.6567 GB, free: 9.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.4945, allocations: 79.42 kB / 0.6567 GB, free: 9.262 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4945, allocations: 4 kB / 0.6567 GB, free: 9.258 MB / 474.7 MB Notification: Performance of Templates: time 0.2295/0.724, allocations: 30.91 MB / 0.6869 GB, free: 116.9 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)