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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_release_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_release_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.008343/0.008343, allocations: 170.7 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.376/1.376, allocations: 223.2 MB / 239 MB, free: 76 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.0008019/0.0008019, allocations: 92.27 kB / 290.2 MB, free: 4.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.509/0.509, allocations: 78.59 MB / 419.9 MB, free: 36.43 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003568, allocations: 12 kB / 499.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1193, allocations: 69.36 MB / 0.5559 GB, free: 1.727 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3331/0.4524, allocations: 100.3 MB / 0.6538 GB, free: 1.961 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.4527, allocations: 78.7 kB / 0.6539 GB, free: 1.918 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1146/0.5673, allocations: 42.51 MB / 0.6954 GB, free: 7.816 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5673, allocations: 0 / 0.6954 GB, free: 7.816 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.356e-05/0.5674, allocations: 31.94 kB / 0.6954 GB, free: 7.785 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.005513/0.5729, allocations: 2.02 MB / 0.6974 GB, free: 5.699 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.573, allocations: 12.02 kB / 0.6974 GB, free: 5.688 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003119/0.5733, allocations: 126.9 kB / 0.6975 GB, free: 5.555 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003587/0.5769, allocations: 0.5719 MB / 0.6981 GB, free: 4.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.5789, allocations: 0.8307 MB / 0.6989 GB, free: 4.098 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003076/0.5792, allocations: 268.2 kB / 0.6991 GB, free: 3.797 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000219/0.5794, allocations: 76 kB / 0.6992 GB, free: 3.723 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.5822, allocations: 1.446 MB / 0.7006 GB, free: 2.254 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.5823, allocations: 4 kB / 0.7006 GB, free: 2.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.612e-05/0.5824, allocations: 28 kB / 0.7007 GB, free: 2.223 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.5824, allocations: 27.98 kB / 0.7007 GB, free: 2.195 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.5844, allocations: 1.059 MB / 0.7017 GB, free: 1.133 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.006208/0.5907, allocations: 3.669 MB / 0.7053 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008098/0.5988, allocations: 3.09 MB / 0.7083 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001895/0.599, allocations: 28.7 kB / 0.7083 GB, free: 10.03 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001674/0.6007, allocations: 0.8033 MB / 0.7091 GB, free: 9.207 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=115): time 6.282e-06/0.6007, allocations: 0 / 0.7091 GB, free: 9.207 MB / 0.4948 GB Notification: Performance of matching and sorting (n=115): time 0.03067/0.6314, allocations: 8.6 MB / 0.7175 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.6316, allocations: 202.7 kB / 0.7177 GB, free: 316 kB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.6332, allocations: 0.9139 MB / 0.7186 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000163/0.6334, allocations: 49.7 kB / 0.7187 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.6338, allocations: 0.4939 MB / 0.7191 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004314/0.6342, allocations: 323.5 kB / 0.7194 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.585e-05/0.6343, allocations: 24 kB / 0.7195 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.6344, allocations: 349.9 kB / 0.7198 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.6358, allocations: 0.635 MB / 0.7204 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.6373, allocations: 0.9429 MB / 0.7213 GB, free: 12.43 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.002522/0.6398, allocations: 1.339 MB / 0.7227 GB, free: 11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.6398, allocations: 4 kB / 0.7227 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01382/0.6536, allocations: 4.789 MB / 0.7273 GB, free: 6.176 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/0.6537, allocations: 64.28 kB / 0.7274 GB, free: 6.102 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.6538, allocations: 8 kB / 0.7274 GB, free: 6.094 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006075/0.6598, allocations: 1.856 MB / 0.7292 GB, free: 4.234 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/0.6608, allocations: 199.7 kB / 0.7294 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02054/0.6813, allocations: 9.228 MB / 0.7384 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.683, allocations: 203.2 kB / 0.7386 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.6832, allocations: 47.98 kB / 0.7387 GB, free: 10.43 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.0008068/0.6841, allocations: 330.7 kB / 0.739 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002182/0.6863, allocations: 0.6847 MB / 0.7396 GB, free: 9.398 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01473/0.701, allocations: 5.007 MB / 0.7445 GB, free: 4.367 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/0.7011, allocations: 12 kB / 0.7445 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/0.7011, allocations: 8 kB / 0.7445 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.452e-05/0.7011, allocations: 11.97 kB / 0.7446 GB, free: 4.336 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.01533/0.7164, allocations: 6.051 MB / 0.7505 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.7165, allocations: 7.969 kB / 0.7505 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005637/0.717, allocations: 107.8 kB / 0.7506 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/0.7231, allocations: 1.998 MB / 0.7525 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.7233, allocations: 27.98 kB / 0.7526 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02466/0.7479, allocations: 12.52 MB / 0.7648 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.748, allocations: 0 / 0.7648 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01691/0.7649, allocations: 6.07 MB / 0.7707 GB, free: 8.973 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004913/0.7654, allocations: 239.1 kB / 0.7709 GB, free: 8.719 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/0.7657, allocations: 24 kB / 0.771 GB, free: 8.695 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.7671, allocations: 155.8 kB / 0.7711 GB, free: 8.543 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005201/0.7677, allocations: 176.7 kB / 0.7713 GB, free: 8.371 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.945e-05/0.7678, allocations: 35.98 kB / 0.7713 GB, free: 8.336 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001197/0.769, allocations: 0.7199 MB / 0.772 GB, free: 7.609 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.81e-07/0.769, allocations: 4 kB / 0.772 GB, free: 7.605 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001607/0.7706, allocations: 451.5 kB / 0.7725 GB, free: 7.164 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.01718/0.7878, allocations: 6.892 MB / 0.7792 GB, free: 212 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006295/0.7941, allocations: 2.548 MB / 0.7817 GB, free: 13.62 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.7942, allocations: 3.938 kB / 0.7817 GB, free: 13.61 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00444/0.7986, allocations: 1.579 MB / 0.7832 GB, free: 12.01 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.8006, allocations: 0.5867 MB / 0.7838 GB, free: 11.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008128/0.8088, allocations: 10.08 MB / 0.7936 GB, free: 1.07 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1911/0.9999, allocations: 1.174 MB / 0.7948 GB, free: 153.7 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0005244/1, allocations: 93.3 kB / 0.7949 GB, free: 153.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000598/1.001, allocations: 477.7 kB / 0.7953 GB, free: 153.7 MB / 0.573 GB Notification: Performance of SimCode: time 7.01e-07/1.001, allocations: 0 / 0.7953 GB, free: 153.7 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04693/1.048, allocations: 30.96 MB / 0.8256 GB, free: 152.7 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/1.048, allocations: 256.9 kB / 0.8258 GB, free: 152.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.933/3.981, allocations: 0 / 0.8258 GB, free: 152.4 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)