Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_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 3.2.3+maint.om/package.mo): time 0.005086/0.005085, allocations: 175.9 kB / 7.451 MB, free: 2.316 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.255/1.255, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000841/0.0008412, allocations: 87.22 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06222/0.06222, allocations: 12.19 MB / 321.2 MB, free: 1.273 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3005/0.3005, allocations: 78.05 MB / 449.9 MB, free: 3.637 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2236/0.5241, allocations: 76.09 MB / 0.5137 GB, free: 30.3 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.6409, allocations: 69.23 MB / 0.5813 GB, free: 9.168 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.9863, allocations: 99.64 MB / 0.6786 GB, free: 9.293 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.9866, allocations: 81.23 kB / 0.6787 GB, free: 9.281 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.0998/1.086, allocations: 36.53 MB / 0.7143 GB, free: 11.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/1.086, allocations: 11.94 kB / 0.7143 GB, free: 11.24 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003789/1.09, allocations: 0.5735 MB / 0.7149 GB, free: 10.71 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/1.092, allocations: 0.7967 MB / 0.7157 GB, free: 10.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/1.093, allocations: 236.2 kB / 0.7159 GB, free: 9.766 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002793/1.093, allocations: 51.16 kB / 0.716 GB, free: 9.719 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0017/1.095, allocations: 0.7974 MB / 0.7167 GB, free: 9.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/1.096, allocations: 0.8344 MB / 0.7176 GB, free: 8.648 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/1.096, allocations: 0 / 0.7176 GB, free: 8.648 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.858e-05/1.096, allocations: 0 / 0.7176 GB, free: 8.648 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/1.096, allocations: 20 kB / 0.7176 GB, free: 8.629 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008198/1.105, allocations: 3.745 MB / 0.7212 GB, free: 5.625 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/1.106, allocations: 0.6116 MB / 0.7218 GB, free: 5.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007435/1.107, allocations: 0.5104 MB / 0.7223 GB, free: 4.969 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/1.107, allocations: 20.56 kB / 0.7223 GB, free: 4.953 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/1.108, allocations: 0.6318 MB / 0.723 GB, free: 4.523 MB / 458.7 MB Notification: Performance of pre-optimization done (n=96): time 3.968e-06/1.108, allocations: 0 / 0.723 GB, free: 4.523 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01381/1.122, allocations: 4.17 MB / 0.727 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/1.122, allocations: 119.5 kB / 0.7271 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/1.123, allocations: 0.8001 MB / 0.7279 GB, free: 136 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002196/1.124, allocations: 33.69 kB / 0.728 GB, free: 96 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/1.124, allocations: 325.9 kB / 0.7283 GB, free: 15.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005412/1.124, allocations: 331.1 kB / 0.7286 GB, free: 15.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/1.125, allocations: 0 / 0.7286 GB, free: 15.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/1.125, allocations: 342.4 kB / 0.7289 GB, free: 15.21 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008063/1.126, allocations: 445.2 kB / 0.7293 GB, free: 14.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008461/1.126, allocations: 0.5595 MB / 0.7299 GB, free: 14.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008713/1.127, allocations: 0.4899 MB / 0.7304 GB, free: 14.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/1.127, allocations: 4 kB / 0.7304 GB, free: 14.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01363/1.141, allocations: 4.195 MB / 0.7345 GB, free: 10.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/1.141, allocations: 4 kB / 0.7345 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/1.141, allocations: 4 kB / 0.7345 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006877/1.148, allocations: 1.563 MB / 0.736 GB, free: 9.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/1.149, allocations: 186.3 kB / 0.7362 GB, free: 9.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/1.164, allocations: 6.029 MB / 0.7421 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/1.166, allocations: 187.2 kB / 0.7422 GB, free: 2.832 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002389/1.166, allocations: 43.98 kB / 0.7423 GB, free: 2.789 MB / 474.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * 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 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005146/1.167, allocations: 155.3 kB / 0.7424 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004738/1.167, allocations: 122.5 kB / 0.7425 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/1.181, allocations: 4.264 MB / 0.7467 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/1.181, allocations: 12 kB / 0.7467 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/1.181, allocations: 7.906 kB / 0.7467 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.091e-05/1.181, allocations: 11.98 kB / 0.7467 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.197, allocations: 5.651 MB / 0.7523 GB, free: 8.449 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/1.197, allocations: 0 / 0.7523 GB, free: 8.449 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008761/1.198, allocations: 103.8 kB / 0.7524 GB, free: 8.348 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005461/1.203, allocations: 1.532 MB / 0.7539 GB, free: 6.809 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002165/1.203, allocations: 8 kB / 0.7539 GB, free: 6.801 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01468/1.218, allocations: 7.143 MB / 0.7608 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/1.218, allocations: 3.906 kB / 0.7608 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01506/1.233, allocations: 5.027 MB / 0.7658 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01799/1.251, allocations: 6.12 MB / 0.7717 GB, free: 4.195 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005789/1.252, allocations: 219.3 kB / 0.7719 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004795/1.252, allocations: 11.92 kB / 0.7719 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/1.254, allocations: 139.8 kB / 0.7721 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003881/1.254, allocations: 116.8 kB / 0.7722 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/1.255, allocations: 27.98 kB / 0.7722 GB, free: 3.672 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001107/1.256, allocations: 0.6136 MB / 0.7728 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002193/1.258, allocations: 391.5 kB / 0.7732 GB, free: 2.668 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003395/1.258, allocations: 131.3 kB / 0.7733 GB, free: 2.527 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005152/1.263, allocations: 1.943 MB / 0.7752 GB, free: 0.5625 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/1.263, allocations: 4.25 kB / 0.7752 GB, free: 0.5586 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004088/1.268, allocations: 1.485 MB / 0.7767 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009881/1.269, allocations: 92.53 kB / 0.7768 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004656/1.273, allocations: 1.73 MB / 0.7784 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/1.274, allocations: 1.222 MB / 0.7796 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of SimCode: time 6.92e-07/1.274, allocations: 0 / 0.7796 GB, free: 11.93 MB / 0.5105 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)