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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_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_dev_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.002662/0.002662, allocations: 180 kB / 7.454 MB, free: 2.512 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.198/1.198, allocations: 221.4 MB / 229.3 MB, free: 3.047 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.0009151/0.0009153, allocations: 107.2 kB / 280.1 MB, free: 1.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4268/0.4268, allocations: 78.92 MB / 409.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1445/0.5713, allocations: 75.65 MB / 485.5 MB, free: 3.523 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.8912, allocations: 69.5 MB / 0.5419 GB, free: 20.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1131/1.004, allocations: 100.2 MB / 0.6398 GB, free: 3.73 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/1.005, allocations: 71.97 kB / 0.6398 GB, free: 3.66 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.3429/1.347, allocations: 44.32 MB / 0.6831 GB, free: 104.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/1.348, allocations: 6.812 kB / 0.6831 GB, free: 104.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003621/1.351, allocations: 0.5836 MB / 0.6837 GB, free: 104.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/1.353, allocations: 0.7973 MB / 0.6845 GB, free: 104.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/1.353, allocations: 235.8 kB / 0.6847 GB, free: 104 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/1.353, allocations: 58.47 kB / 0.6847 GB, free: 104 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001516/1.355, allocations: 0.81 MB / 0.6855 GB, free: 104 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/1.357, allocations: 1.127 MB / 0.6866 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/1.357, allocations: 0 / 0.6866 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.028e-05/1.357, allocations: 3.562 kB / 0.6866 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/1.357, allocations: 20.16 kB / 0.6867 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00654/1.363, allocations: 3.648 MB / 0.6902 GB, free: 102.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/1.364, allocations: 0.8506 MB / 0.691 GB, free: 102.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007881/1.365, allocations: 0.5885 MB / 0.6916 GB, free: 102.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/1.365, allocations: 25.95 kB / 0.6916 GB, free: 102.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008775/1.366, allocations: 0.5734 MB / 0.6922 GB, free: 102.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=115): time 3.436e-06/1.366, allocations: 0 / 0.6922 GB, free: 102.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=115): time 0.01264/1.379, allocations: 4.285 MB / 0.6964 GB, free: 101.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/1.379, allocations: 187.1 kB / 0.6966 GB, free: 101.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/1.381, allocations: 0.811 MB / 0.6974 GB, free: 101 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/1.381, allocations: 33.3 kB / 0.6974 GB, free: 101 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/1.381, allocations: 303.6 kB / 0.6977 GB, free: 100.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004656/1.382, allocations: 305.3 kB / 0.698 GB, free: 100.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/1.382, allocations: 7.938 kB / 0.698 GB, free: 100.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.075e-05/1.382, allocations: 353.4 kB / 0.6983 GB, free: 100.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009945/1.383, allocations: 427.4 kB / 0.6987 GB, free: 99.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/1.384, allocations: 0.7175 MB / 0.6994 GB, free: 99.41 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.00247/1.387, allocations: 1.064 MB / 0.7005 GB, free: 98.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.061e-05/1.387, allocations: 2.375 kB / 0.7005 GB, free: 98.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01412/1.401, allocations: 4.263 MB / 0.7046 GB, free: 97.76 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/1.401, allocations: 5.312 kB / 0.7046 GB, free: 97.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.922e-05/1.401, allocations: 9.438 kB / 0.7046 GB, free: 97.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005181/1.406, allocations: 1.508 MB / 0.7061 GB, free: 97.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009867/1.407, allocations: 204.1 kB / 0.7063 GB, free: 97.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/1.42, allocations: 5.858 MB / 0.712 GB, free: 94.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/1.422, allocations: 189.2 kB / 0.7122 GB, free: 94.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/1.422, allocations: 59.64 kB / 0.7123 GB, free: 94.05 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.0004673/1.422, allocations: 173.9 kB / 0.7124 GB, free: 93.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001926/1.424, allocations: 0.6544 MB / 0.7131 GB, free: 93.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/1.438, allocations: 4.553 MB / 0.7175 GB, free: 89.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/1.438, allocations: 12.61 kB / 0.7175 GB, free: 89.69 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.603e-05/1.438, allocations: 8 kB / 0.7175 GB, free: 89.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.167e-05/1.438, allocations: 6 kB / 0.7175 GB, free: 89.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01372/1.451, allocations: 5.432 MB / 0.7229 GB, free: 84.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.452, allocations: 0 / 0.7229 GB, free: 84.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006785/1.452, allocations: 107.8 kB / 0.723 GB, free: 84.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005048/1.457, allocations: 1.657 MB / 0.7246 GB, free: 82.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/1.458, allocations: 11.89 kB / 0.7246 GB, free: 82.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01531/1.473, allocations: 9.384 MB / 0.7337 GB, free: 73.24 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/1.473, allocations: 8 kB / 0.7338 GB, free: 73.23 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01402/1.487, allocations: 5.404 MB / 0.739 GB, free: 67.79 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01488/1.502, allocations: 6.568 MB / 0.7454 GB, free: 61.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004828/1.502, allocations: 231.1 kB / 0.7457 GB, free: 60.94 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002962/1.503, allocations: 4 kB / 0.7457 GB, free: 60.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/1.504, allocations: 143.9 kB / 0.7458 GB, free: 60.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002523/1.504, allocations: 100.6 kB / 0.7459 GB, free: 60.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.814e-05/1.504, allocations: 35.94 kB / 0.7459 GB, free: 60.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008158/1.505, allocations: 0.6179 MB / 0.7465 GB, free: 60.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001953/1.507, allocations: 399.5 kB / 0.7469 GB, free: 59.64 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.0002638/1.507, allocations: 148.9 kB / 0.7471 GB, free: 59.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004484/1.512, allocations: 1.987 MB / 0.749 GB, free: 57.48 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/1.512, allocations: 0 / 0.749 GB, free: 57.48 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003276/1.515, allocations: 1.303 MB / 0.7503 GB, free: 56.17 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/1.517, allocations: 0.5221 MB / 0.7508 GB, free: 55.63 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003992/1.521, allocations: 1.782 MB / 0.7525 GB, free: 53.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007038/1.521, allocations: 1.243 MB / 0.7537 GB, free: 52.55 MB / 490.7 MB Notification: Performance of SimCode: time 4.4e-07/1.521, allocations: 0 / 0.7537 GB, free: 52.55 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)