Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 99.7 kB / 15.05 MB, free: 1.105 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: 223.2 MB / 238.9 MB, free: 5.48 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.001118/0.001118, allocations: 181.1 kB / 290.2 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4243/0.4243, allocations: 78.53 MB / 419.8 MB, free: 4.352 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003405, allocations: 12 kB / 499.7 MB, free: 6.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 69.36 MB / 0.5557 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.1871/0.2944, allocations: 5.419 MB / 0.561 GB, free: 37.36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003145/0.2976, allocations: 1.831 MB / 0.5628 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000864/0.2985, allocations: 14.62 kB / 0.5628 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005892/0.2991, allocations: 152 kB / 0.5629 GB, free: 37.05 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.3012, allocations: 0.6754 MB / 0.5636 GB, free: 36.97 MB / 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.001192/0.3024, allocations: 0.4951 MB / 0.5641 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.3039, allocations: 0.8932 MB / 0.5649 GB, free: 36.9 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004309/0.3044, allocations: 229.9 kB / 0.5652 GB, free: 36.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007331/0.3051, allocations: 0.4966 MB / 0.5656 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008389/0.306, allocations: 0.665 MB / 0.5663 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002737/0.3063, allocations: 55.97 kB / 0.5663 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005765/0.3068, allocations: 165.9 kB / 0.5665 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.3071, allocations: 226.6 kB / 0.5667 GB, free: 36.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002884/0.3074, allocations: 212.8 kB / 0.5669 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.3085, allocations: 1.054 MB / 0.5679 GB, free: 36.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.3086, allocations: 0.7188 kB / 0.5679 GB, free: 36.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3086, allocations: 3.031 kB / 0.568 GB, free: 36.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.008e-05/0.3086, allocations: 1.656 kB / 0.568 GB, free: 36.39 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007401/0.316, allocations: 2.321 MB / 0.5702 GB, free: 35.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.3161, allocations: 8.719 kB / 0.5702 GB, free: 35.55 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004813/0.3209, allocations: 0.7668 MB / 0.571 GB, free: 35.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.3222, allocations: 0.7538 MB / 0.5717 GB, free: 35.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.3224, allocations: 272 kB / 0.572 GB, free: 34.92 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002183/0.3227, allocations: 73.62 kB / 0.572 GB, free: 34.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/0.325, allocations: 1.236 MB / 0.5732 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.325, allocations: 3.953 kB / 0.5733 GB, free: 34.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.3251, allocations: 29.83 kB / 0.5733 GB, free: 34.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.3251, allocations: 25.59 kB / 0.5733 GB, free: 34.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/0.3271, allocations: 1.016 MB / 0.5743 GB, free: 34.61 MB / 430.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.005676/0.3328, allocations: 3.812 MB / 0.578 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007044/0.3399, allocations: 2.861 MB / 0.5808 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001258/0.34, allocations: 16.22 kB / 0.5808 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3401, allocations: 45.34 kB / 0.5809 GB, free: 31.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.006e-06/0.3401, allocations: 0 / 0.5809 GB, free: 31.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02707/0.3671, allocations: 8.215 MB / 0.5889 GB, free: 29.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.3672, allocations: 102.4 kB / 0.589 GB, free: 29.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.3685, allocations: 0.9597 MB / 0.5899 GB, free: 29.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001658/0.3687, allocations: 41.52 kB / 0.59 GB, free: 29.26 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.369, allocations: 456.9 kB / 0.5904 GB, free: 28.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/0.3693, allocations: 323.3 kB / 0.5907 GB, free: 28.65 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3694, allocations: 25.81 kB / 0.5907 GB, free: 28.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.544e-05/0.3695, allocations: 358.4 kB / 0.5911 GB, free: 28.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.371, allocations: 0.7548 MB / 0.5918 GB, free: 28.04 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.3726, allocations: 0.965 MB / 0.5928 GB, free: 27.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.3743, allocations: 0.8385 MB / 0.5936 GB, free: 27.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.3743, allocations: 1.375 kB / 0.5936 GB, free: 27.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01376/0.3881, allocations: 4.925 MB / 0.5984 GB, free: 26.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.3881, allocations: 10.98 kB / 0.5984 GB, free: 26.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.3881, allocations: 5.188 kB / 0.5984 GB, free: 26.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006288/0.3944, allocations: 1.871 MB / 0.6002 GB, free: 25.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.3957, allocations: 260 kB / 0.6005 GB, free: 25.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/0.4164, allocations: 9.172 MB / 0.6094 GB, free: 21.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.418, allocations: 208.5 kB / 0.6096 GB, free: 21.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001864/0.4182, allocations: 56.77 kB / 0.6097 GB, free: 21.78 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005602/0.4188, allocations: 263.8 kB / 0.6099 GB, free: 21.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/0.4198, allocations: 364.7 kB / 0.6103 GB, free: 21.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/0.4314, allocations: 4.422 MB / 0.6146 GB, free: 17.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.4315, allocations: 17.14 kB / 0.6146 GB, free: 17.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.4315, allocations: 4 kB / 0.6146 GB, free: 17.38 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.4315, allocations: 3.984 kB / 0.6146 GB, free: 17.38 MB / 430.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.01352/0.4451, allocations: 6.027 MB / 0.6205 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.4451, allocations: 0 / 0.6205 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/0.4456, allocations: 111.8 kB / 0.6206 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005119/0.4508, allocations: 1.872 MB / 0.6225 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.4509, allocations: 16.88 kB / 0.6225 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01745/0.4684, allocations: 11.2 MB / 0.6334 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4684, allocations: 0 / 0.6334 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/0.4836, allocations: 5.529 MB / 0.6388 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004372/0.484, allocations: 221 kB / 0.639 GB, free: 7.898 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/0.4843, allocations: 16 kB / 0.639 GB, free: 7.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.4854, allocations: 119.9 kB / 0.6391 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004853/0.4859, allocations: 176.7 kB / 0.6393 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.186e-05/0.486, allocations: 24.73 kB / 0.6393 GB, free: 7.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008787/0.4869, allocations: 0.6317 MB / 0.64 GB, free: 6.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4869, allocations: 0 / 0.64 GB, free: 6.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001567/0.4885, allocations: 445 kB / 0.6404 GB, free: 6.496 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002942/0.4888, allocations: 135.1 kB / 0.6405 GB, free: 6.355 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006457/0.4953, allocations: 2.574 MB / 0.643 GB, free: 3.766 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4953, allocations: 0 / 0.643 GB, free: 3.766 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004264/0.4996, allocations: 1.535 MB / 0.6445 GB, free: 2.223 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.501, allocations: 358.9 kB / 0.6449 GB, free: 1.855 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00425/0.5053, allocations: 2.449 MB / 0.6473 GB, free: 15.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/0.506, allocations: 1.1 MB / 0.6483 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004291/0.5064, allocations: 107.1 kB / 0.6484 GB, free: 14.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/0.5067, allocations: 71.42 kB / 0.6485 GB, free: 14.12 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5067, allocations: 0 / 0.6485 GB, free: 14.12 MB / 462.1 MB Notification: Performance of Templates: time 0.03043/0.5372, allocations: 19.24 MB / 0.6673 GB, free: 11.07 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: