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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00383/0.003829, allocations: 180.2 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.0009519/0.0009518, allocations: 89.89 kB / 280.1 MB, free: 1.297 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4042/0.4042, allocations: 78.06 MB / 409 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1432/0.5475, allocations: 75.49 MB / 484.4 MB, free: 2.926 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.8444, allocations: 69.35 MB / 0.5408 GB, free: 21.21 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.9653, allocations: 99.46 MB / 0.6379 GB, free: 5.086 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.9657, allocations: 79.95 kB / 0.638 GB, free: 5.008 MB / 458.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.3522/1.318, allocations: 43.39 MB / 0.6804 GB, free: 106.5 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/1.318, allocations: 10.12 kB / 0.6804 GB, free: 106.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003434/1.321, allocations: 0.5786 MB / 0.681 GB, free: 106.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/1.323, allocations: 0.8052 MB / 0.6817 GB, free: 106.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/1.323, allocations: 238.5 kB / 0.682 GB, free: 105.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/1.323, allocations: 52.03 kB / 0.682 GB, free: 105.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001357/1.325, allocations: 0.811 MB / 0.6828 GB, free: 105.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/1.326, allocations: 1.13 MB / 0.6839 GB, free: 105.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/1.326, allocations: 0 / 0.6839 GB, free: 105.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.784e-05/1.326, allocations: 4.453 kB / 0.6839 GB, free: 105.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/1.326, allocations: 20.5 kB / 0.6839 GB, free: 105.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005372/1.332, allocations: 3.603 MB / 0.6875 GB, free: 104.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/1.333, allocations: 0.8523 MB / 0.6883 GB, free: 104.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007873/1.334, allocations: 0.5921 MB / 0.6889 GB, free: 104.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00011/1.334, allocations: 18.39 kB / 0.6889 GB, free: 104.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000801/1.335, allocations: 0.5803 MB / 0.6895 GB, free: 104.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=115): time 3.687e-06/1.335, allocations: 0 / 0.6895 GB, free: 104.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=115): time 0.0127/1.348, allocations: 4.282 MB / 0.6936 GB, free: 103.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001592/1.348, allocations: 188.7 kB / 0.6938 GB, free: 103.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/1.349, allocations: 0.8136 MB / 0.6946 GB, free: 102.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002096/1.349, allocations: 29.7 kB / 0.6946 GB, free: 102.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/1.35, allocations: 305.3 kB / 0.6949 GB, free: 102.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003373/1.35, allocations: 312.8 kB / 0.6952 GB, free: 102.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.911e-05/1.35, allocations: 0 / 0.6952 GB, free: 102.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.655e-05/1.35, allocations: 352.3 kB / 0.6956 GB, free: 102.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006481/1.351, allocations: 419.8 kB / 0.696 GB, free: 101.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000739/1.351, allocations: 0.7239 MB / 0.6967 GB, free: 101.3 MB / 490.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.aVRTypeII.firstOrder2.y = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.aVRTypeII.derivativeBlock.x = 0.0 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2186:7-2186:76:writable] Error: Internal error function solveEquation failed Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2186:7-2186:76:writable] Error: Internal error function solveEquation failed Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/1.353, allocations: 1.064 MB / 0.6977 GB, free: 100.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/1.353, allocations: 6.562 kB / 0.6977 GB, free: 100.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01385/1.367, allocations: 4.264 MB / 0.7019 GB, free: 99.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/1.367, allocations: 5.094 kB / 0.7019 GB, free: 99.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/1.367, allocations: 13.44 kB / 0.7019 GB, free: 99.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005281/1.373, allocations: 1.505 MB / 0.7034 GB, free: 99.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009162/1.374, allocations: 197.6 kB / 0.7036 GB, free: 99.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/1.386, allocations: 5.862 MB / 0.7093 GB, free: 96.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/1.387, allocations: 190.3 kB / 0.7095 GB, free: 96.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/1.388, allocations: 54.34 kB / 0.7095 GB, free: 96.25 MB / 490.7 MB Warning: Assuming fixed start value for the following 3 variables: order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "Rotor angle" type: Real Warning: Assuming redundant initial conditions for the following 4 initial equations: $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 () * 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.0003858/1.388, allocations: 176.8 kB / 0.7097 GB, free: 96.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/1.39, allocations: 0.6488 MB / 0.7103 GB, free: 95.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01257/1.402, allocations: 4.56 MB / 0.7148 GB, free: 92.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/1.402, allocations: 12 kB / 0.7148 GB, free: 92.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/1.402, allocations: 12 kB / 0.7148 GB, free: 92.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/1.403, allocations: 10.23 kB / 0.7148 GB, free: 92.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/1.416, allocations: 5.413 MB / 0.7201 GB, free: 87.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/1.416, allocations: 0 / 0.7201 GB, free: 87.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/1.416, allocations: 107.9 kB / 0.7202 GB, free: 87.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004915/1.421, allocations: 1.653 MB / 0.7218 GB, free: 86.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/1.421, allocations: 11.89 kB / 0.7218 GB, free: 86.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/1.436, allocations: 9.404 MB / 0.731 GB, free: 76.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.436, allocations: 4 kB / 0.731 GB, free: 76.32 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01332/1.449, allocations: 5.405 MB / 0.7363 GB, free: 70.87 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01447/1.464, allocations: 6.566 MB / 0.7427 GB, free: 64.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/1.464, allocations: 239.1 kB / 0.7429 GB, free: 64.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/1.465, allocations: 7.938 kB / 0.7429 GB, free: 64.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/1.466, allocations: 139.9 kB / 0.7431 GB, free: 63.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/1.466, allocations: 100.6 kB / 0.7432 GB, free: 63.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/1.466, allocations: 31.98 kB / 0.7432 GB, free: 63.74 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008537/1.467, allocations: 0.6218 MB / 0.7438 GB, free: 63.11 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002069/1.469, allocations: 399.5 kB / 0.7442 GB, free: 62.72 MB / 490.7 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 () * 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.0002778/1.47, allocations: 140.7 kB / 0.7443 GB, free: 62.58 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004515/1.474, allocations: 1.994 MB / 0.7463 GB, free: 60.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.474, allocations: 448 / 0.7463 GB, free: 60.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003292/1.477, allocations: 1.309 MB / 0.7475 GB, free: 59.24 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/1.479, allocations: 0.5133 MB / 0.748 GB, free: 58.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/1.483, allocations: 1.797 MB / 0.7498 GB, free: 56.89 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007453/1.484, allocations: 1.247 MB / 0.751 GB, free: 55.61 MB / 490.7 MB Notification: Performance of SimCode: time 2.6e-07/1.484, allocations: 0 / 0.751 GB, free: 55.61 MB / 490.7 MB (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)