Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.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.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_dev_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 4.0.0+maint.om/package.mo): time 0.002354/0.002354, allocations: 182.9 kB / 7.461 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.168/1.168, allocations: 221.4 MB / 229.3 MB, free: 3.02 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.000902/0.000902, allocations: 99.62 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4238/0.4238, allocations: 78.92 MB / 409.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1352/0.559, allocations: 75.64 MB / 485.5 MB, free: 3.562 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.837, allocations: 69.5 MB / 0.5419 GB, free: 20.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1242/0.9612, allocations: 103.7 MB / 0.6432 GB, free: 164 kB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.9614, allocations: 75.95 kB / 0.6433 GB, free: 88 kB / 458.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.411/1.372, allocations: 77.69 MB / 0.7191 GB, free: 88.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/1.373, allocations: 8 kB / 0.7191 GB, free: 88.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007416/1.38, allocations: 1.24 MB / 0.7204 GB, free: 87.47 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004312/1.384, allocations: 1.82 MB / 0.7221 GB, free: 85.65 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004023/1.385, allocations: 434.4 kB / 0.7225 GB, free: 85.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000499/1.385, allocations: 127.9 kB / 0.7227 GB, free: 85.03 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003179/1.388, allocations: 1.917 MB / 0.7245 GB, free: 83.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/1.391, allocations: 1.961 MB / 0.7265 GB, free: 81.13 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.724e-05/1.391, allocations: 4 kB / 0.7265 GB, free: 81.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/1.392, allocations: 3.984 kB / 0.7265 GB, free: 81.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.972e-05/1.392, allocations: 48 kB / 0.7265 GB, free: 81.07 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01478/1.406, allocations: 9.228 MB / 0.7355 GB, free: 71.65 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/1.409, allocations: 1.458 MB / 0.7369 GB, free: 70.16 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/1.41, allocations: 1.268 MB / 0.7382 GB, free: 68.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002011/1.41, allocations: 41.41 kB / 0.7382 GB, free: 68.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00202/1.413, allocations: 1.463 MB / 0.7396 GB, free: 67.38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 3.767e-06/1.413, allocations: 3.938 kB / 0.7397 GB, free: 67.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=245): time 0.02204/1.435, allocations: 7.702 MB / 0.7472 GB, free: 59.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/1.435, allocations: 239.7 kB / 0.7474 GB, free: 59.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002887/1.438, allocations: 1.967 MB / 0.7493 GB, free: 57.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004001/1.438, allocations: 25.7 kB / 0.7493 GB, free: 57.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/1.438, allocations: 0.6597 MB / 0.75 GB, free: 56.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001021/1.439, allocations: 0.8129 MB / 0.7508 GB, free: 55.89 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/1.439, allocations: 4 kB / 0.7508 GB, free: 55.88 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.699e-05/1.44, allocations: 399.1 kB / 0.7512 GB, free: 55.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/1.441, allocations: 1.063 MB / 0.7522 GB, free: 54.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/1.443, allocations: 1.317 MB / 0.7535 GB, free: 53.03 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/1.445, allocations: 1.172 MB / 0.7546 GB, free: 51.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/1.445, allocations: 3.906 kB / 0.7546 GB, free: 51.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=321) (initialization): time 0.01922/1.464, allocations: 7.255 MB / 0.7617 GB, free: 44.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/1.464, allocations: 8 kB / 0.7617 GB, free: 44.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/1.464, allocations: 4 kB / 0.7617 GB, free: 44.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/1.474, allocations: 2.874 MB / 0.7645 GB, free: 41.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/1.477, allocations: 467.4 kB / 0.765 GB, free: 41.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02708/1.504, allocations: 14.6 MB / 0.7793 GB, free: 26.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/1.508, allocations: 405.8 kB / 0.7796 GB, free: 25.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005849/1.509, allocations: 91.97 kB / 0.7797 GB, free: 25.76 MB / 490.7 MB 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.0009054/1.509, allocations: 238.3 kB / 0.78 GB, free: 25.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.511, allocations: 308.2 kB / 0.7802 GB, free: 25.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02291/1.534, allocations: 7.906 MB / 0.788 GB, free: 17.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.169e-05/1.534, allocations: 27.94 kB / 0.788 GB, free: 17.27 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.534, allocations: 3.906 kB / 0.788 GB, free: 17.26 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.603e-05/1.534, allocations: 23.94 kB / 0.788 GB, free: 17.24 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/1.562, allocations: 11.57 MB / 0.7993 GB, free: 5.598 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/1.562, allocations: 0 / 0.7993 GB, free: 5.598 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/1.563, allocations: 239.8 kB / 0.7995 GB, free: 5.363 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01098/1.574, allocations: 3.439 MB / 0.8029 GB, free: 1.906 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005198/1.575, allocations: 23.98 kB / 0.8029 GB, free: 1.883 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03393/1.609, allocations: 16.59 MB / 0.8191 GB, free: 0.8008 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.609, allocations: 0 / 0.8191 GB, free: 0.8008 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0278/1.637, allocations: 9.651 MB / 0.8285 GB, free: 7.07 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03106/1.668, allocations: 11.73 MB / 0.84 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/1.669, allocations: 460.5 kB / 0.8404 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.67, allocations: 12 kB / 0.8405 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003542/1.674, allocations: 287.7 kB / 0.8407 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007877/1.675, allocations: 237.6 kB / 0.841 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002912/1.675, allocations: 63.98 kB / 0.841 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.00261/1.678, allocations: 1.465 MB / 0.8424 GB, free: 8.742 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003916/1.682, allocations: 0.8815 MB / 0.8433 GB, free: 7.859 MB / 0.5261 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.0004401/1.682, allocations: 165.5 kB / 0.8435 GB, free: 7.688 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01019/1.692, allocations: 4.348 MB / 0.8477 GB, free: 3.273 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.692, allocations: 0 / 0.8477 GB, free: 3.273 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008757/1.701, allocations: 3.251 MB / 0.8509 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/1.703, allocations: 217 kB / 0.8511 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/1.716, allocations: 4.649 MB / 0.8556 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002305/1.718, allocations: 2.065 MB / 0.8576 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of SimCode: time 7.22e-07/1.718, allocations: 8 kB / 0.8577 GB, free: 8.926 MB / 0.5417 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom.fmu > OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)