Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.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.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom",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.00354/0.00354, allocations: 179.8 kB / 7.458 MB, free: 2.5 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.102/1.102, 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.0008221/0.0008221, allocations: 91.44 kB / 261.1 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05963/0.05963, allocations: 12.2 MB / 321.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2735/0.2735, allocations: 78.05 MB / 449.9 MB, free: 3.676 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2117/0.4852, allocations: 76.08 MB / 0.5137 GB, free: 30.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.5929, allocations: 69.23 MB / 0.5813 GB, free: 9.199 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3181/0.911, allocations: 104.5 MB / 0.6833 GB, free: 4.617 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001611/0.9112, allocations: 76.64 kB / 0.6834 GB, free: 4.578 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.1943/1.106, allocations: 74.15 MB / 0.7558 GB, free: 5.145 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/1.106, allocations: 11.94 kB / 0.7558 GB, free: 5.133 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007661/1.113, allocations: 1.248 MB / 0.757 GB, free: 3.879 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004118/1.117, allocations: 1.814 MB / 0.7588 GB, free: 2.004 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005066/1.118, allocations: 438.4 kB / 0.7592 GB, free: 1.508 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005575/1.118, allocations: 115.9 kB / 0.7593 GB, free: 1.395 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004168/1.123, allocations: 1.929 MB / 0.7612 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/1.126, allocations: 1.961 MB / 0.7631 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/1.126, allocations: 0 / 0.7631 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001894/1.127, allocations: 7.984 kB / 0.7631 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.852e-05/1.127, allocations: 44 kB / 0.7632 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0154/1.142, allocations: 9.156 MB / 0.7721 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002557/1.145, allocations: 1.47 MB / 0.7736 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/1.146, allocations: 1.255 MB / 0.7748 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001993/1.147, allocations: 50.19 kB / 0.7748 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002272/1.149, allocations: 1.466 MB / 0.7763 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 3.737e-06/1.149, allocations: 0 / 0.7763 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=245): time 0.02369/1.173, allocations: 7.701 MB / 0.7838 GB, free: 7.926 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/1.173, allocations: 239.6 kB / 0.784 GB, free: 7.641 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/1.176, allocations: 1.963 MB / 0.7859 GB, free: 5.668 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003433/1.176, allocations: 33.69 kB / 0.786 GB, free: 5.629 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/1.177, allocations: 0.6546 MB / 0.7866 GB, free: 4.961 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001179/1.178, allocations: 0.8159 MB / 0.7874 GB, free: 4.133 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/1.178, allocations: 0 / 0.7874 GB, free: 4.133 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001639/1.178, allocations: 403.1 kB / 0.7878 GB, free: 3.734 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/1.18, allocations: 1.06 MB / 0.7888 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/1.182, allocations: 1.315 MB / 0.7901 GB, free: 1.285 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/1.184, allocations: 1.176 MB / 0.7912 GB, free: 88 kB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/1.184, allocations: 7.906 kB / 0.7912 GB, free: 80 kB / 0.5105 GB Notification: Performance of matching and sorting (n=321) (initialization): time 0.02129/1.205, allocations: 7.249 MB / 0.7983 GB, free: 8.773 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.205, allocations: 11.84 kB / 0.7983 GB, free: 8.766 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/1.205, allocations: 8 kB / 0.7983 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/1.216, allocations: 2.878 MB / 0.8012 GB, free: 5.867 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/1.219, allocations: 467.4 kB / 0.8016 GB, free: 5.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02907/1.248, allocations: 14.61 MB / 0.8159 GB, free: 6.426 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003877/1.252, allocations: 389.9 kB / 0.8162 GB, free: 6.043 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/1.252, allocations: 95.89 kB / 0.8163 GB, free: 5.949 MB / 0.5417 GB Warning: Assuming fixed start value for the following 6 variables: gen3.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen3.AVR.firstOrder2.y:VARIABLE(start = gen3.AVR.firstOrder2.y_start ) "Connector of Real output signal" type: Real gen3.gen.e1d:VARIABLE(start = gen3.gen.e1d0 unit = "1" ) "d-axis transient voltage" type: Real gen3.gen.e1q:VARIABLE(start = gen3.gen.e1q0 unit = "1" ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 6 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {36 46,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005837/1.253, allocations: 239 kB / 0.8166 GB, free: 5.691 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/1.253, allocations: 308.2 kB / 0.8169 GB, free: 5.387 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02367/1.277, allocations: 7.913 MB / 0.8246 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.067e-05/1.277, allocations: 24 kB / 0.8246 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/1.277, allocations: 7.906 kB / 0.8246 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.792e-05/1.277, allocations: 11.95 kB / 0.8246 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02894/1.306, allocations: 11.54 MB / 0.8359 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/1.306, allocations: 0 / 0.8359 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/1.308, allocations: 239.6 kB / 0.8361 GB, free: 1.465 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01168/1.32, allocations: 3.439 MB / 0.8395 GB, free: 14.01 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/1.32, allocations: 27.92 kB / 0.8395 GB, free: 13.98 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1877/1.508, allocations: 16.57 MB / 0.8557 GB, free: 213 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.508, allocations: 0 / 0.8557 GB, free: 213 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02444/1.532, allocations: 9.648 MB / 0.8651 GB, free: 212.6 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02625/1.558, allocations: 11.75 MB / 0.8766 GB, free: 211.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009889/1.559, allocations: 453.2 kB / 0.877 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004734/1.56, allocations: 9.625 kB / 0.877 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002652/1.562, allocations: 276.3 kB / 0.8773 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005842/1.563, allocations: 238.9 kB / 0.8775 GB, free: 211.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/1.563, allocations: 70.09 kB / 0.8776 GB, free: 211.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001917/1.565, allocations: 1.456 MB / 0.879 GB, free: 211.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002978/1.568, allocations: 0.8841 MB / 0.8799 GB, free: 211.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 25 (sTATCOM3_1.simpleLagLim.state,gen1.gen.delta,gen1.gen.w,gen1.gen.e1q,gen1.gen.e1d,gen1.AVR.ExcitationSystem.x_scaled[1],gen1.AVR.derivativeBlock.x,gen1.AVR.firstOrder2.y,gen1.AVR.simpleLagLim.state,gen2.gen.delta,gen2.gen.w,gen2.gen.e1q,gen2.gen.e1d,gen2.AVR.ExcitationSystem.x_scaled[1],gen2.AVR.derivativeBlock.x,gen2.AVR.firstOrder2.y,gen2.AVR.simpleLagLim.state,gen3.gen.delta,gen3.gen.w,gen3.gen.e1q,gen3.gen.e1d,gen3.AVR.ExcitationSystem.x_scaled[1],gen3.AVR.derivativeBlock.x,gen3.AVR.firstOrder2.y,gen3.AVR.simpleLagLim.state) * Number of discrete variables: 8 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {43 49,1 6,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003464/1.569, allocations: 159.1 kB / 0.88 GB, free: 211.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008686/1.577, allocations: 4.349 MB / 0.8843 GB, free: 210.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.577, allocations: 0 / 0.8843 GB, free: 210.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007417/1.585, allocations: 3.253 MB / 0.8874 GB, free: 209.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/1.586, allocations: 210 kB / 0.8876 GB, free: 209.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009733/1.596, allocations: 4.668 MB / 0.8922 GB, free: 208.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001918/1.598, allocations: 2.078 MB / 0.8942 GB, free: 207.7 MB / 0.573 GB Notification: Performance of SimCode: time 6.71e-07/1.598, allocations: 1.875 kB / 0.8942 GB, free: 207.7 MB / 0.573 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)