Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom,fileNamePrefix="OpenIPSL_release_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.002235/0.002235, allocations: 183.6 kB / 7.459 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.038/1.038, allocations: 221.4 MB / 229.3 MB, free: 3.16 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.0008105/0.0008105, allocations: 85.23 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3446/0.3446, allocations: 78.1 MB / 409 MB, free: 15.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1054/0.45, allocations: 75.49 MB / 484.5 MB, free: 4.488 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.6701, allocations: 69.34 MB / 0.5408 GB, free: 21.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1016/0.7717, allocations: 102.9 MB / 0.6413 GB, free: 1.918 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.7719, allocations: 71.95 kB / 0.6414 GB, free: 1.848 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.3342/1.106, allocations: 76.02 MB / 0.7156 GB, free: 91.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/1.106, allocations: 8.188 kB / 0.7156 GB, free: 91.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007228/1.113, allocations: 1.237 MB / 0.7168 GB, free: 90.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003571/1.117, allocations: 1.82 MB / 0.7186 GB, free: 89.52 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003441/1.117, allocations: 438.4 kB / 0.719 GB, free: 89.02 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002934/1.118, allocations: 123.9 kB / 0.7192 GB, free: 88.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003022/1.121, allocations: 1.925 MB / 0.721 GB, free: 86.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/1.124, allocations: 1.965 MB / 0.7229 GB, free: 84.99 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/1.124, allocations: 0 / 0.7229 GB, free: 84.99 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001831/1.124, allocations: 4 kB / 0.723 GB, free: 84.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.588e-05/1.124, allocations: 44 kB / 0.723 GB, free: 84.94 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/1.137, allocations: 9.158 MB / 0.7319 GB, free: 75.59 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/1.139, allocations: 1.466 MB / 0.7334 GB, free: 74.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/1.141, allocations: 1.265 MB / 0.7346 GB, free: 72.83 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002178/1.141, allocations: 45.64 kB / 0.7346 GB, free: 72.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/1.143, allocations: 1.47 MB / 0.7361 GB, free: 71.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 4.158e-06/1.143, allocations: 0 / 0.7361 GB, free: 71.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=245): time 0.02145/1.165, allocations: 7.704 MB / 0.7436 GB, free: 63.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/1.165, allocations: 239.6 kB / 0.7438 GB, free: 63.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/1.167, allocations: 1.963 MB / 0.7458 GB, free: 61.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004125/1.168, allocations: 29.7 kB / 0.7458 GB, free: 61.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000274/1.168, allocations: 0.6625 MB / 0.7464 GB, free: 60.63 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009941/1.169, allocations: 0.8157 MB / 0.7472 GB, free: 59.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/1.169, allocations: 0 / 0.7472 GB, free: 59.81 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/1.169, allocations: 403.1 kB / 0.7476 GB, free: 59.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/1.171, allocations: 1.06 MB / 0.7486 GB, free: 58.35 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/1.172, allocations: 1.317 MB / 0.7499 GB, free: 56.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/1.174, allocations: 1.176 MB / 0.7511 GB, free: 55.76 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/1.174, allocations: 7.906 kB / 0.7511 GB, free: 55.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=321) (initialization): time 0.0187/1.193, allocations: 7.244 MB / 0.7582 GB, free: 48.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/1.193, allocations: 8 kB / 0.7582 GB, free: 48.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/1.193, allocations: 4 kB / 0.7582 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009621/1.203, allocations: 2.882 MB / 0.761 GB, free: 45.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002518/1.205, allocations: 471.3 kB / 0.7614 GB, free: 45.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02508/1.23, allocations: 14.6 MB / 0.7757 GB, free: 30.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/1.234, allocations: 389.8 kB / 0.7761 GB, free: 29.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003083/1.234, allocations: 95.91 kB / 0.7762 GB, free: 29.69 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.000499/1.235, allocations: 231 kB / 0.7764 GB, free: 29.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000486/1.235, allocations: 308.2 kB / 0.7767 GB, free: 29.13 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02086/1.256, allocations: 7.905 MB / 0.7844 GB, free: 21.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/1.256, allocations: 27.98 kB / 0.7844 GB, free: 21.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.256, allocations: 7.906 kB / 0.7844 GB, free: 21.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-05/1.256, allocations: 11.95 kB / 0.7844 GB, free: 21.18 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02454/1.281, allocations: 11.55 MB / 0.7957 GB, free: 9.566 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.281, allocations: 0 / 0.7957 GB, free: 9.566 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/1.282, allocations: 231.7 kB / 0.7959 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01037/1.293, allocations: 3.446 MB / 0.7993 GB, free: 5.883 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000359/1.293, allocations: 27.92 kB / 0.7993 GB, free: 5.855 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02971/1.323, allocations: 16.57 MB / 0.8155 GB, free: 4.824 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.323, allocations: 3.984 kB / 0.8155 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0255/1.348, allocations: 9.651 MB / 0.8249 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02804/1.376, allocations: 11.74 MB / 0.8364 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/1.377, allocations: 460.5 kB / 0.8368 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004751/1.378, allocations: 20 kB / 0.8369 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/1.381, allocations: 271.8 kB / 0.8371 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006004/1.381, allocations: 241.6 kB / 0.8374 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/1.381, allocations: 63.98 kB / 0.8374 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001993/1.383, allocations: 1.465 MB / 0.8388 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00317/1.387, allocations: 0.8853 MB / 0.8397 GB, free: 11.95 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.0004511/1.387, allocations: 167 kB / 0.8399 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009338/1.396, allocations: 4.352 MB / 0.8441 GB, free: 7.359 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.396, allocations: 0 / 0.8441 GB, free: 7.359 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007705/1.404, allocations: 3.243 MB / 0.8473 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/1.406, allocations: 217.8 kB / 0.8475 GB, free: 3.844 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/1.417, allocations: 4.683 MB / 0.8521 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/1.419, allocations: 2.065 MB / 0.8541 GB, free: 13 MB / 0.5417 GB Notification: Performance of SimCode: time 7.82e-07/1.419, allocations: 0 / 0.8541 GB, free: 13 MB / 0.5417 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_IEEE9_IEEE_9_Buses_Statcom.fmu > OpenIPSL_release_OpenIPSL.Examples.IEEE9.IEEE_9_Buses_Statcom.pipe 2>&1)