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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.004236/0.004236, allocations: 170.8 kB / 15.11 MB, free: 5.973 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.169/1.169, allocations: 223.2 MB / 239 MB, free: 1.777 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.0009029/0.0009027, allocations: 116.8 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4031/0.4031, allocations: 79.43 MB / 420.8 MB, free: 43.62 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003279, allocations: 12 kB / 0.489 GB, free: 2.031 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2815, allocations: 69.49 MB / 0.5569 GB, free: 38.75 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3853, allocations: 101 MB / 0.6555 GB, free: 4.617 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.3856, allocations: 83.12 kB / 0.6556 GB, free: 4.539 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1092/0.4948, allocations: 43.47 MB / 0.698 GB, free: 8.809 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4948, allocations: 0 / 0.698 GB, free: 8.809 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.575e-05/0.4949, allocations: 27.94 kB / 0.6981 GB, free: 8.781 MB / 0.4948 GB 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.004734/0.4997, allocations: 2.006 MB / 0.7 GB, free: 6.703 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.4997, allocations: 12.03 kB / 0.7 GB, free: 6.691 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003151/0.5029, allocations: 0.568 MB / 0.7006 GB, free: 6.121 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.5043, allocations: 0.8269 MB / 0.7014 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/0.5046, allocations: 272.1 kB / 0.7017 GB, free: 4.938 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.5048, allocations: 80 kB / 0.7017 GB, free: 4.859 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002504/0.5073, allocations: 1.453 MB / 0.7031 GB, free: 3.375 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.5073, allocations: 4 kB / 0.7032 GB, free: 3.371 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.266e-05/0.5074, allocations: 35.98 kB / 0.7032 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.5074, allocations: 16 kB / 0.7032 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.5093, allocations: 1.055 MB / 0.7042 GB, free: 2.262 MB / 0.4948 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 preOpt removeSimpleEquations (simulation): time 0.005688/0.515, allocations: 3.701 MB / 0.7078 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007653/0.5227, allocations: 3.086 MB / 0.7109 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-05/0.5228, allocations: 21.22 kB / 0.7109 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001384/0.5242, allocations: 0.8055 MB / 0.7117 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=115): time 3.827e-06/0.5242, allocations: 3.984 kB / 0.7117 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=115): time 0.03078/0.555, allocations: 8.966 MB / 0.7204 GB, free: 1.285 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/0.5551, allocations: 198.7 kB / 0.7206 GB, free: 1.055 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.5566, allocations: 0.9139 MB / 0.7215 GB, free: 132 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.5567, allocations: 45.7 kB / 0.7216 GB, free: 80 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003494/0.557, allocations: 0.4978 MB / 0.722 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002935/0.5573, allocations: 323.4 kB / 0.7223 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.055e-05/0.5574, allocations: 28.88 kB / 0.7224 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.5575, allocations: 345.9 kB / 0.7227 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.5588, allocations: 0.635 MB / 0.7233 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.5602, allocations: 0.9445 MB / 0.7242 GB, free: 13.17 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2449:7-2449:76:writable] Error: Internal error function solveEquation failed 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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2449:7-2449:76:writable] Error: Internal error function solveEquation failed 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.002267/0.5625, allocations: 1.339 MB / 0.7256 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5625, allocations: 0 / 0.7256 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01293/0.5754, allocations: 4.791 MB / 0.7302 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/0.5755, allocations: 59.41 kB / 0.7303 GB, free: 6.852 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.5755, allocations: 15.94 kB / 0.7303 GB, free: 6.836 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/0.5812, allocations: 1.852 MB / 0.7321 GB, free: 4.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.582, allocations: 199.7 kB / 0.7323 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01898/0.601, allocations: 9.231 MB / 0.7413 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.6025, allocations: 207.1 kB / 0.7415 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.38e-05/0.6026, allocations: 51.98 kB / 0.7416 GB, free: 11.16 MB / 0.5417 GB 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(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.simpleLagLim.state = 0.0 aVRTypeII.ExcitationSystem.y = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (117): * Single equations (assignments): 114 * 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.0006067/0.6033, allocations: 310.3 kB / 0.7419 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00182/0.6051, allocations: 0.6883 MB / 0.7425 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01383/0.6189, allocations: 5.007 MB / 0.7474 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.619, allocations: 12 kB / 0.7474 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.619, allocations: 11.98 kB / 0.7474 GB, free: 5.082 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.619, allocations: 7.984 kB / 0.7475 GB, free: 5.074 MB / 0.5417 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.01385/0.6329, allocations: 6.059 MB / 0.7534 GB, free: 14.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.6329, allocations: 12.02 kB / 0.7534 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005262/0.6334, allocations: 111.8 kB / 0.7535 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005636/0.6391, allocations: 2.005 MB / 0.7554 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.6392, allocations: 20 kB / 0.7555 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2229/0.8621, allocations: 12.5 MB / 0.7677 GB, free: 143.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.8622, allocations: 5.234 kB / 0.7677 GB, free: 143.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/0.8779, allocations: 6.07 MB / 0.7736 GB, free: 143.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004388/0.8784, allocations: 241.3 kB / 0.7738 GB, free: 143.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.8786, allocations: 22.25 kB / 0.7739 GB, free: 143.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.8797, allocations: 151.1 kB / 0.774 GB, free: 143.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004687/0.8802, allocations: 172.2 kB / 0.7742 GB, free: 143.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.354e-05/0.8803, allocations: 36.02 kB / 0.7742 GB, free: 143.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001061/0.8814, allocations: 0.7184 MB / 0.7749 GB, free: 143.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8814, allocations: 3.844 kB / 0.7749 GB, free: 143.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001461/0.8828, allocations: 453.2 kB / 0.7753 GB, free: 143.1 MB / 0.5573 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 (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.0002881/0.8831, allocations: 159.7 kB / 0.7755 GB, free: 143 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005328/0.8885, allocations: 2.54 MB / 0.778 GB, free: 142.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.8885, allocations: 0 / 0.778 GB, free: 142.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003617/0.8921, allocations: 1.606 MB / 0.7795 GB, free: 142.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.8935, allocations: 0.5853 MB / 0.7801 GB, free: 142.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.897, allocations: 2.751 MB / 0.7828 GB, free: 141 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.8976, allocations: 1.19 MB / 0.784 GB, free: 140.3 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003637/0.8979, allocations: 100.3 kB / 0.7841 GB, free: 140.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.8981, allocations: 66.86 kB / 0.7841 GB, free: 140.3 MB / 0.5573 GB Notification: Performance of SimCode: time 5.91e-07/0.8981, allocations: 0 / 0.7841 GB, free: 140.3 MB / 0.5573 GB Notification: Performance of Templates: time 0.02989/0.928, allocations: 20.42 MB / 0.8041 GB, free: 139.2 MB / 0.5573 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)