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.005055/0.005055, allocations: 168.9 kB / 15.13 MB, free: 6.023 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.41/1.41, allocations: 223.3 MB / 239.1 MB, free: 1.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007666/0.0007666, allocations: 97.28 kB / 290.3 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.485/0.485, allocations: 78.61 MB / 420 MB, free: 44.13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.000394, allocations: 15.94 kB / 499.9 MB, free: 2.926 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3309, allocations: 69.35 MB / 0.5559 GB, free: 38.84 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005967/0.3369, allocations: 6.187 MB / 0.5619 GB, free: 37.46 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003987/0.3409, allocations: 1.969 MB / 0.5639 GB, free: 36.06 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009117/0.3419, allocations: 11.12 kB / 0.5639 GB, free: 36.06 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006236/0.3425, allocations: 175.3 kB / 0.564 GB, free: 35.98 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.3444, allocations: 0.6683 MB / 0.5647 GB, free: 35.55 MB / 426.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.001369/0.3458, allocations: 0.5389 MB / 0.5652 GB, free: 35.29 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002121/0.3479, allocations: 1.434 MB / 0.5666 GB, free: 34.57 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000515/0.3484, allocations: 280.2 kB / 0.5669 GB, free: 34.44 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000958/0.3494, allocations: 0.5689 MB / 0.5674 GB, free: 34.2 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008508/0.3502, allocations: 0.7389 MB / 0.5682 GB, free: 33.88 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.3504, allocations: 63.53 kB / 0.5682 GB, free: 33.88 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005912/0.351, allocations: 184.5 kB / 0.5684 GB, free: 33.84 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.3512, allocations: 256.6 kB / 0.5687 GB, free: 33.7 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002314/0.3515, allocations: 231 kB / 0.5689 GB, free: 33.55 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009025/0.3524, allocations: 1.242 MB / 0.5701 GB, free: 33.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3524, allocations: 0 / 0.5701 GB, free: 33.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3524, allocations: 0 / 0.5701 GB, free: 33.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.3524, allocations: 0 / 0.5701 GB, free: 33.18 MB / 426.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.007702/0.3601, allocations: 2.524 MB / 0.5725 GB, free: 32.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.3602, allocations: 11.56 kB / 0.5726 GB, free: 32.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005049/0.3653, allocations: 0.7932 MB / 0.5733 GB, free: 31.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.3676, allocations: 0.8583 MB / 0.5742 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000303/0.3679, allocations: 268.6 kB / 0.5744 GB, free: 31.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.3682, allocations: 98.08 kB / 0.5745 GB, free: 31.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002986/0.3712, allocations: 1.459 MB / 0.5759 GB, free: 30.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.3712, allocations: 7.938 kB / 0.576 GB, free: 30.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.3713, allocations: 33.33 kB / 0.576 GB, free: 30.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.3714, allocations: 19.34 kB / 0.576 GB, free: 30.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002328/0.3737, allocations: 1.053 MB / 0.577 GB, free: 30.11 MB / 426.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.006091/0.3798, allocations: 3.762 MB / 0.5807 GB, free: 27.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007716/0.3875, allocations: 3.099 MB / 0.5837 GB, free: 26.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.389, allocations: 0.8279 MB / 0.5845 GB, free: 26.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-05/0.3891, allocations: 13.81 kB / 0.5846 GB, free: 26.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/0.3905, allocations: 0.8115 MB / 0.5853 GB, free: 26.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=115): time 3.206e-06/0.3905, allocations: 0 / 0.5853 GB, free: 26.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.0302/0.4207, allocations: 8.643 MB / 0.5938 GB, free: 24.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.4209, allocations: 199.5 kB / 0.594 GB, free: 24.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/0.4226, allocations: 1.084 MB / 0.595 GB, free: 23.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000241/0.4229, allocations: 48.48 kB / 0.5951 GB, free: 23.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000292/0.4232, allocations: 483.3 kB / 0.5955 GB, free: 23.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003298/0.4235, allocations: 334.4 kB / 0.5959 GB, free: 23.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.4236, allocations: 31.12 kB / 0.5959 GB, free: 23.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.087e-05/0.4237, allocations: 369.2 kB / 0.5962 GB, free: 22.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.4253, allocations: 0.8074 MB / 0.597 GB, free: 22.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/0.427, allocations: 1.154 MB / 0.5982 GB, free: 21.92 MB / 426.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.0245/0.4515, allocations: 6.057 MB / 0.6041 GB, free: 20 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.909e-05/0.4516, allocations: 2.969 kB / 0.6041 GB, free: 20 MB / 426.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01643/0.468, allocations: 5.223 MB / 0.6092 GB, free: 18.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.346e-05/0.4682, allocations: 65.72 kB / 0.6092 GB, free: 18.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.4682, allocations: 8.5 kB / 0.6092 GB, free: 18.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005854/0.4741, allocations: 1.855 MB / 0.6111 GB, free: 17.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.4755, allocations: 311.5 kB / 0.6114 GB, free: 16.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01748/0.493, allocations: 8.825 MB / 0.62 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.4949, allocations: 238.7 kB / 0.6202 GB, free: 7.711 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.495, allocations: 75.91 kB / 0.6203 GB, free: 7.637 MB / 426.7 MB Warning: Assuming fixed start value for the following 3 variables: order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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.ExcitationSystem.y = 0.0 aVRTypeII.simpleLagLim.state = 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.derivativeBlock.x,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005742/0.4956, allocations: 344 kB / 0.6206 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/0.4973, allocations: 0.6846 MB / 0.6213 GB, free: 6.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01364/0.511, allocations: 4.994 MB / 0.6262 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/0.511, allocations: 12 kB / 0.6262 GB, free: 1.555 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/0.5111, allocations: 8 kB / 0.6262 GB, free: 1.547 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.727e-05/0.5111, allocations: 11.97 kB / 0.6262 GB, free: 1.535 MB / 426.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.0165/0.5276, allocations: 6.538 MB / 0.6326 GB, free: 10.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/0.5277, allocations: 4 kB / 0.6326 GB, free: 10.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006541/0.5284, allocations: 111.8 kB / 0.6327 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006659/0.535, allocations: 2.005 MB / 0.6346 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000237/0.5353, allocations: 27.98 kB / 0.6347 GB, free: 8.727 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02428/0.5596, allocations: 12.03 MB / 0.6464 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5596, allocations: 0 / 0.6464 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01716/0.5768, allocations: 6.021 MB / 0.6523 GB, free: 6.227 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.5775, allocations: 243.2 kB / 0.6525 GB, free: 5.969 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/0.5777, allocations: 31.89 kB / 0.6526 GB, free: 5.938 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.579, allocations: 151.9 kB / 0.6527 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005283/0.5796, allocations: 176.7 kB / 0.6529 GB, free: 5.613 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.501e-05/0.5797, allocations: 32 kB / 0.6529 GB, free: 5.582 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001122/0.5808, allocations: 0.7238 MB / 0.6536 GB, free: 4.852 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5808, allocations: 0 / 0.6536 GB, free: 4.852 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001876/0.5827, allocations: 491.6 kB / 0.6541 GB, free: 4.371 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003057/0.583, allocations: 143.8 kB / 0.6542 GB, free: 4.223 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006752/0.5898, allocations: 2.847 MB / 0.657 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5898, allocations: 1.875 kB / 0.657 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004362/0.5942, allocations: 1.595 MB / 0.6586 GB, free: 15.72 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.5963, allocations: 0.5892 MB / 0.6591 GB, free: 15.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.6009, allocations: 2.753 MB / 0.6618 GB, free: 12.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006634/0.6016, allocations: 1.164 MB / 0.663 GB, free: 11.13 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004604/0.6021, allocations: 116.9 kB / 0.6631 GB, free: 11.01 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.6023, allocations: 83.41 kB / 0.6631 GB, free: 10.93 MB / 474.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6023, allocations: 0 / 0.6631 GB, free: 10.93 MB / 474.7 MB Notification: Performance of Templates: time 0.03249/0.6348, allocations: 21.31 MB / 0.684 GB, free: 5.668 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)