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/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.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 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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007206/0.007206, allocations: 171.8 kB / 15.11 MB, free: 5.969 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.352/1.352, allocations: 223.2 MB / 239 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009904/0.0009906, allocations: 99.28 kB / 290.2 MB, free: 4.523 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4565/0.4565, allocations: 78.52 MB / 419.8 MB, free: 36.32 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004301, allocations: 12 kB / 499.8 MB, free: 6.984 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1345, allocations: 69.35 MB / 0.5558 GB, free: 1.641 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3927/0.5273, allocations: 100.3 MB / 0.6537 GB, free: 1.832 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.5276, allocations: 84.75 kB / 0.6538 GB, free: 1.789 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1184/0.646, allocations: 42.51 MB / 0.6953 GB, free: 7.645 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.646, allocations: 1.875 kB / 0.6953 GB, free: 7.645 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001219/0.6462, allocations: 32 kB / 0.6954 GB, free: 7.613 MB / 490.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.005934/0.6521, allocations: 2.016 MB / 0.6973 GB, free: 5.531 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.6521, allocations: 12.02 kB / 0.6973 GB, free: 5.52 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003575/0.6525, allocations: 126.9 kB / 0.6975 GB, free: 5.387 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003704/0.6562, allocations: 0.568 MB / 0.698 GB, free: 4.816 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002246/0.6585, allocations: 0.8347 MB / 0.6988 GB, free: 3.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003412/0.6588, allocations: 268.2 kB / 0.6991 GB, free: 3.629 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.6591, allocations: 80 kB / 0.6992 GB, free: 3.551 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003132/0.6623, allocations: 1.446 MB / 0.7006 GB, free: 2.074 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.6623, allocations: 4 kB / 0.7006 GB, free: 2.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.6624, allocations: 32 kB / 0.7006 GB, free: 2.039 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.6625, allocations: 16 kB / 0.7006 GB, free: 2.023 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002246/0.6647, allocations: 1.063 MB / 0.7017 GB, free: 0.957 MB / 490.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.006848/0.6716, allocations: 3.661 MB / 0.7052 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008401/0.68, allocations: 3.098 MB / 0.7083 GB, free: 9.887 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001757/0.6802, allocations: 20.7 kB / 0.7083 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00175/0.682, allocations: 0.8062 MB / 0.7091 GB, free: 9.039 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=115): time 7.254e-06/0.682, allocations: 7.984 kB / 0.7091 GB, free: 9.031 MB / 0.4948 GB Notification: Performance of matching and sorting (n=115): time 0.03087/0.7129, allocations: 8.603 MB / 0.7175 GB, free: 376 kB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002351/0.7132, allocations: 198.7 kB / 0.7177 GB, free: 140 kB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/0.7156, allocations: 0.9178 MB / 0.7186 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000268/0.7159, allocations: 49.7 kB / 0.7186 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/0.7165, allocations: 0.4978 MB / 0.7191 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005995/0.7171, allocations: 315.5 kB / 0.7194 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.7173, allocations: 20 kB / 0.7194 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002217/0.7175, allocations: 353.9 kB / 0.7198 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.7191, allocations: 0.6311 MB / 0.7204 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.7209, allocations: 0.9411 MB / 0.7213 GB, free: 12.26 MB / 0.5105 GB [/var/lib/jenkins1/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/jenkins1/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.002994/0.7239, allocations: 1.346 MB / 0.7226 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/0.7239, allocations: 0 / 0.7226 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01502/0.739, allocations: 4.793 MB / 0.7273 GB, free: 6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.161e-05/0.7391, allocations: 59.41 kB / 0.7273 GB, free: 5.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/0.7391, allocations: 12 kB / 0.7274 GB, free: 5.918 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006206/0.7453, allocations: 1.848 MB / 0.7292 GB, free: 4.066 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009587/0.7463, allocations: 203.7 kB / 0.7293 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02201/0.7683, allocations: 9.228 MB / 0.7384 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.7703, allocations: 203.2 kB / 0.7386 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/0.7706, allocations: 51.98 kB / 0.7386 GB, free: 10.25 MB / 0.5261 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.001064/0.7717, allocations: 325.7 kB / 0.7389 GB, free: 9.922 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002405/0.7741, allocations: 0.6847 MB / 0.7396 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/0.7895, allocations: 5.007 MB / 0.7445 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/0.7895, allocations: 12 kB / 0.7445 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.828e-05/0.7896, allocations: 8 kB / 0.7445 GB, free: 4.172 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.7896, allocations: 11.91 kB / 0.7445 GB, free: 4.16 MB / 0.5261 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.01594/0.8056, allocations: 6.051 MB / 0.7504 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-05/0.8056, allocations: 0 / 0.7504 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007155/0.8064, allocations: 107.9 kB / 0.7505 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006663/0.8131, allocations: 2.002 MB / 0.7525 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002734/0.8134, allocations: 23.98 kB / 0.7525 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02534/0.8387, allocations: 12.52 MB / 0.7647 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.8388, allocations: 1.219 kB / 0.7647 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/0.8565, allocations: 6.07 MB / 0.7707 GB, free: 8.793 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007794/0.8574, allocations: 243.1 kB / 0.7709 GB, free: 8.535 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/0.8579, allocations: 24 kB / 0.7709 GB, free: 8.512 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/0.8595, allocations: 147.9 kB / 0.771 GB, free: 8.367 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006291/0.8602, allocations: 176.6 kB / 0.7712 GB, free: 8.195 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/0.8603, allocations: 35.98 kB / 0.7713 GB, free: 8.16 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001603/0.8619, allocations: 0.7238 MB / 0.772 GB, free: 7.43 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/0.862, allocations: 3.938 kB / 0.772 GB, free: 7.426 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002232/0.8642, allocations: 451.5 kB / 0.7724 GB, free: 6.984 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,(19,24.4%) 13} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01816/0.8824, allocations: 6.886 MB / 0.7791 GB, free: 36 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006783/0.8892, allocations: 2.552 MB / 0.7816 GB, free: 13.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.8892, allocations: 0 / 0.7816 GB, free: 13.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004402/0.8937, allocations: 1.579 MB / 0.7832 GB, free: 11.85 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.8959, allocations: 0.5934 MB / 0.7837 GB, free: 11.23 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.9063, allocations: 10.06 MB / 0.7936 GB, free: 0.918 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2466/1.153, allocations: 1.181 MB / 0.7947 GB, free: 153.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.000667/1.154, allocations: 94.72 kB / 0.7948 GB, free: 153.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009412/1.155, allocations: 478.4 kB / 0.7953 GB, free: 153.9 MB / 0.573 GB Notification: Performance of SimCode: time 1.042e-06/1.155, allocations: 0.75 kB / 0.7953 GB, free: 153.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05822/1.213, allocations: 30.94 MB / 0.8255 GB, free: 152.9 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.213, allocations: 252.9 kB / 0.8257 GB, free: 152.6 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.212/4.425, allocations: 3.266 kB / 0.8257 GB, free: 152.6 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)