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"}) [: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.002005/0.002005, allocations: 181.4 kB / 7.459 MB, free: 2.496 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.054/1.054, allocations: 221.4 MB / 229.3 MB, free: 3 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.0008267/0.0008267, allocations: 98.3 kB / 280.1 MB, free: 1.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3547/0.3547, allocations: 78.1 MB / 409 MB, free: 15.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1103/0.465, allocations: 75.49 MB / 484.5 MB, free: 4.449 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.6821, allocations: 69.34 MB / 0.5408 GB, free: 21.49 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09722/0.7793, allocations: 99.46 MB / 0.638 GB, free: 5.387 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/0.7796, allocations: 79.95 kB / 0.638 GB, free: 5.309 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.2762/1.056, allocations: 43.39 MB / 0.6804 GB, free: 78.53 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.784e-05/1.056, allocations: 7.875 kB / 0.6804 GB, free: 78.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003132/1.059, allocations: 0.584 MB / 0.681 GB, free: 78.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/1.06, allocations: 0.8005 MB / 0.6818 GB, free: 78.12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/1.06, allocations: 243.4 kB / 0.682 GB, free: 77.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.06, allocations: 51.03 kB / 0.6821 GB, free: 77.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001214/1.062, allocations: 0.8121 MB / 0.6829 GB, free: 77.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/1.063, allocations: 1.124 MB / 0.684 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/1.063, allocations: 0 / 0.684 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.308e-05/1.063, allocations: 3.406 kB / 0.684 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/1.063, allocations: 16.81 kB / 0.684 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/1.068, allocations: 3.6 MB / 0.6875 GB, free: 76.63 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/1.069, allocations: 0.8609 MB / 0.6883 GB, free: 76.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007113/1.07, allocations: 0.5891 MB / 0.6889 GB, free: 76.41 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/1.07, allocations: 27.64 kB / 0.6889 GB, free: 76.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007116/1.071, allocations: 0.5718 MB / 0.6895 GB, free: 76.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=115): time 2.916e-06/1.071, allocations: 0 / 0.6895 GB, free: 76.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=115): time 0.01176/1.083, allocations: 4.278 MB / 0.6937 GB, free: 75.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/1.083, allocations: 188.2 kB / 0.6938 GB, free: 75.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008303/1.083, allocations: 0.8107 MB / 0.6946 GB, free: 75.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.014e-05/1.084, allocations: 26.58 kB / 0.6947 GB, free: 75.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/1.084, allocations: 310.7 kB / 0.695 GB, free: 75.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/1.084, allocations: 310.5 kB / 0.6953 GB, free: 75.19 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.895e-05/1.084, allocations: 0 / 0.6953 GB, free: 75.19 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.586e-05/1.084, allocations: 352.8 kB / 0.6956 GB, free: 74.88 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006065/1.085, allocations: 427.6 kB / 0.696 GB, free: 74.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006833/1.085, allocations: 0.7226 MB / 0.6967 GB, free: 74.52 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.001552/1.087, allocations: 1.069 MB / 0.6977 GB, free: 74.04 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/1.087, allocations: 7.969 kB / 0.6978 GB, free: 74.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01271/1.1, allocations: 4.26 MB / 0.7019 GB, free: 73.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/1.1, allocations: 9.312 kB / 0.7019 GB, free: 73.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/1.1, allocations: 8.719 kB / 0.7019 GB, free: 73.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005209/1.105, allocations: 1.506 MB / 0.7034 GB, free: 73.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008376/1.106, allocations: 204.6 kB / 0.7036 GB, free: 73.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/1.117, allocations: 5.857 MB / 0.7093 GB, free: 70.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/1.119, allocations: 191 kB / 0.7095 GB, free: 70.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/1.119, allocations: 51.44 kB / 0.7096 GB, free: 70.29 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.0003048/1.119, allocations: 171.9 kB / 0.7097 GB, free: 70.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001678/1.121, allocations: 0.655 MB / 0.7104 GB, free: 69.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/1.133, allocations: 4.564 MB / 0.7148 GB, free: 66.69 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/1.133, allocations: 15.7 kB / 0.7148 GB, free: 66.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.133, allocations: 8 kB / 0.7148 GB, free: 66.67 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/1.133, allocations: 10.05 kB / 0.7148 GB, free: 66.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/1.145, allocations: 5.399 MB / 0.7201 GB, free: 63.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/1.145, allocations: 3.938 kB / 0.7201 GB, free: 63.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005752/1.146, allocations: 115.8 kB / 0.7202 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004912/1.151, allocations: 1.652 MB / 0.7218 GB, free: 62.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-05/1.151, allocations: 14.81 kB / 0.7219 GB, free: 62.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01453/1.166, allocations: 9.403 MB / 0.731 GB, free: 55.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.166, allocations: 0 / 0.731 GB, free: 55.2 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01336/1.179, allocations: 5.411 MB / 0.7363 GB, free: 51.47 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0141/1.193, allocations: 6.56 MB / 0.7427 GB, free: 46.28 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/1.193, allocations: 240.4 kB / 0.743 GB, free: 46.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/1.194, allocations: 8 kB / 0.743 GB, free: 46.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1.195, allocations: 139.9 kB / 0.7431 GB, free: 45.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/1.195, allocations: 99.61 kB / 0.7432 GB, free: 45.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.978e-05/1.195, allocations: 35.67 kB / 0.7432 GB, free: 45.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.000692/1.196, allocations: 0.6154 MB / 0.7438 GB, free: 45.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001741/1.198, allocations: 411.1 kB / 0.7442 GB, free: 44.96 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.0002259/1.198, allocations: 140.8 kB / 0.7444 GB, free: 44.82 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0041/1.202, allocations: 1.992 MB / 0.7463 GB, free: 43.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/1.202, allocations: 1 kB / 0.7463 GB, free: 43.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/1.205, allocations: 1.299 MB / 0.7476 GB, free: 42.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/1.206, allocations: 0.526 MB / 0.7481 GB, free: 41.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/1.21, allocations: 1.791 MB / 0.7498 GB, free: 40.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000633/1.211, allocations: 1.249 MB / 0.7511 GB, free: 38.91 MB / 490.7 MB Notification: Performance of SimCode: time 6.01e-07/1.211, allocations: 0 / 0.7511 GB, free: 38.91 MB / 490.7 MB (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)