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.0008691/0.0008691, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.375/1.375, allocations: 223.3 MB / 239 MB, free: 5.477 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.001003/0.001003, allocations: 180.5 kB / 290.3 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4675/0.4675, allocations: 78.56 MB / 419.9 MB, free: 4.367 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.000397, allocations: 8 kB / 499.8 MB, free: 6.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1424, allocations: 69.37 MB / 0.5558 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.2821/0.4245, allocations: 6.191 MB / 0.5619 GB, free: 37.38 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003704/0.4283, allocations: 1.959 MB / 0.5638 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000473/0.4288, allocations: 13.19 kB / 0.5638 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005617/0.4293, allocations: 172.5 kB / 0.5639 GB, free: 37.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001523/0.4309, allocations: 0.6573 MB / 0.5646 GB, free: 36.85 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.001117/0.432, allocations: 0.5515 MB / 0.5651 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.4333, allocations: 1.429 MB / 0.5665 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.4337, allocations: 272.8 kB / 0.5668 GB, free: 36.39 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005505/0.4342, allocations: 0.5654 MB / 0.5673 GB, free: 36.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007426/0.435, allocations: 0.7342 MB / 0.5681 GB, free: 36.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.4351, allocations: 60 kB / 0.5681 GB, free: 36.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004083/0.4355, allocations: 182.4 kB / 0.5683 GB, free: 36.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.4358, allocations: 257.9 kB / 0.5685 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002641/0.4361, allocations: 235.5 kB / 0.5688 GB, free: 35.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009694/0.4371, allocations: 1.241 MB / 0.57 GB, free: 35.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.4371, allocations: 2.406 kB / 0.57 GB, free: 35.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4371, allocations: 2.562 kB / 0.57 GB, free: 35.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.4371, allocations: 0 / 0.57 GB, free: 35.66 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.006869/0.444, allocations: 2.529 MB / 0.5724 GB, free: 34.71 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.444, allocations: 11.69 kB / 0.5725 GB, free: 34.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00446/0.4485, allocations: 0.7895 MB / 0.5732 GB, free: 34.61 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.4498, allocations: 0.8626 MB / 0.5741 GB, free: 34.24 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.45, allocations: 268.6 kB / 0.5743 GB, free: 34.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.4502, allocations: 88.25 kB / 0.5744 GB, free: 34.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.4526, allocations: 1.456 MB / 0.5758 GB, free: 33.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.4526, allocations: 3.938 kB / 0.5758 GB, free: 33.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.919e-05/0.4527, allocations: 37.03 kB / 0.5759 GB, free: 33.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.4528, allocations: 27.11 kB / 0.5759 GB, free: 33.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.4545, allocations: 1.051 MB / 0.5769 GB, free: 33.31 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.004762/0.4593, allocations: 3.764 MB / 0.5806 GB, free: 31.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006792/0.4661, allocations: 3.1 MB / 0.5836 GB, free: 30.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.4676, allocations: 0.8241 MB / 0.5844 GB, free: 29.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.4677, allocations: 20.09 kB / 0.5844 GB, free: 29.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001404/0.4691, allocations: 0.8153 MB / 0.5852 GB, free: 29.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 3.076e-06/0.4691, allocations: 3.938 kB / 0.5852 GB, free: 29.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02891/0.4981, allocations: 8.645 MB / 0.5937 GB, free: 27.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.4982, allocations: 195.7 kB / 0.5939 GB, free: 27.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.5002, allocations: 1.076 MB / 0.5949 GB, free: 27.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.5005, allocations: 52.05 kB / 0.595 GB, free: 27.08 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003771/0.5009, allocations: 483.4 kB / 0.5954 GB, free: 26.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003832/0.5013, allocations: 334.3 kB / 0.5958 GB, free: 26.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.5014, allocations: 36.75 kB / 0.5958 GB, free: 26.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5015, allocations: 374 kB / 0.5961 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.5033, allocations: 0.8071 MB / 0.5969 GB, free: 25.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.5053, allocations: 1.155 MB / 0.5981 GB, free: 25.12 MB / 430.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.02296/0.5282, allocations: 6.049 MB / 0.604 GB, free: 23.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/0.5283, allocations: 3.469 kB / 0.604 GB, free: 23.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01426/0.5426, allocations: 5.228 MB / 0.6091 GB, free: 21.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.964e-05/0.5427, allocations: 66.55 kB / 0.6091 GB, free: 21.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-05/0.5427, allocations: 10.61 kB / 0.6092 GB, free: 21.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00572/0.5484, allocations: 1.846 MB / 0.611 GB, free: 21.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.5498, allocations: 312.3 kB / 0.6113 GB, free: 20.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01603/0.5659, allocations: 8.819 MB / 0.6199 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.5678, allocations: 239.6 kB / 0.6201 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.5679, allocations: 75.97 kB / 0.6202 GB, free: 11.67 MB / 430.1 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.0006263/0.5685, allocations: 331.8 kB / 0.6205 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001556/0.5701, allocations: 0.6963 MB / 0.6212 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/0.582, allocations: 4.995 MB / 0.626 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.5821, allocations: 16.69 kB / 0.6261 GB, free: 5.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.5821, allocations: 8 kB / 0.6261 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.5821, allocations: 7.969 kB / 0.6261 GB, free: 5.574 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.01343/0.5956, allocations: 6.541 MB / 0.6325 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/0.5956, allocations: 0 / 0.6325 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005479/0.5962, allocations: 113.1 kB / 0.6326 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00567/0.6018, allocations: 2.004 MB / 0.6345 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.602, allocations: 27.98 kB / 0.6346 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02144/0.6234, allocations: 12.03 MB / 0.6463 GB, free: 352 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6235, allocations: 0 / 0.6463 GB, free: 352 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/0.6388, allocations: 6.03 MB / 0.6522 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006683/0.6396, allocations: 235.2 kB / 0.6524 GB, free: 10.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/0.6398, allocations: 29.14 kB / 0.6524 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.6409, allocations: 147.9 kB / 0.6526 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005464/0.6414, allocations: 180.7 kB / 0.6528 GB, free: 9.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.388e-05/0.6415, allocations: 29.41 kB / 0.6528 GB, free: 9.633 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.6428, allocations: 0.7277 MB / 0.6535 GB, free: 8.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6428, allocations: 0 / 0.6535 GB, free: 8.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001916/0.6447, allocations: 487.6 kB / 0.654 GB, free: 8.422 MB / 462.1 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.000276/0.645, allocations: 141.6 kB / 0.6541 GB, free: 8.281 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006612/0.6516, allocations: 2.854 MB / 0.6569 GB, free: 5.391 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.6517, allocations: 256 / 0.6569 GB, free: 5.391 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004051/0.6557, allocations: 1.595 MB / 0.6584 GB, free: 3.777 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.6578, allocations: 0.5991 MB / 0.659 GB, free: 3.152 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004703/0.6626, allocations: 2.748 MB / 0.6617 GB, free: 424 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000754/0.6633, allocations: 1.152 MB / 0.6628 GB, free: 15.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000493/0.6638, allocations: 115.3 kB / 0.6629 GB, free: 15.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002608/0.6641, allocations: 83.41 kB / 0.663 GB, free: 15.04 MB / 478.1 MB Notification: Performance of SimCode: time 2.315e-06/0.6641, allocations: 4 kB / 0.663 GB, free: 15.03 MB / 478.1 MB Notification: Performance of Templates: time 0.03434/0.6985, allocations: 21.33 MB / 0.6839 GB, free: 9.902 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: