Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",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.2+maint.om/package.mo): time 0.001056/0.001056, allocations: 192.9 kB / 8.139 MB, free: 2.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.997/0.997, allocations: 194.2 MB / 202.8 MB, free: 8.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001673/0.001673, allocations: 113.6 kB / 247.7 MB, free: 6.414 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1526/0.1526, allocations: 37.91 MB / 330.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1719/0.3245, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06764/0.3921, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2382/0.6304, allocations: 115.5 MB / 0.5455 GB, free: 8.219 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.6307, allocations: 93.56 kB / 0.5456 GB, free: 8.172 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.09386/0.7245, allocations: 35.62 MB / 0.5804 GB, free: 10.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.7246, allocations: 8 kB / 0.5804 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006492/0.7252, allocations: 158.3 kB / 0.5806 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002921/0.7282, allocations: 1.195 MB / 0.5817 GB, free: 9.273 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/0.7283, allocations: 32 kB / 0.5818 GB, free: 9.242 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003243/0.7286, allocations: 87.38 kB / 0.5818 GB, free: 9.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001671/0.7303, allocations: 0.936 MB / 0.5828 GB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.7321, allocations: 1.149 MB / 0.5839 GB, free: 7.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-05/0.7322, allocations: 15.83 kB / 0.5839 GB, free: 7.648 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.095e-05/0.7323, allocations: 0 / 0.5839 GB, free: 7.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.7324, allocations: 67.97 kB / 0.584 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006626/0.739, allocations: 4.647 MB / 0.5885 GB, free: 3.508 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006372/0.7397, allocations: 429.8 kB / 0.5889 GB, free: 3.062 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000503/0.7402, allocations: 324.1 kB / 0.5892 GB, free: 2.734 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.428e-05/0.7403, allocations: 4.5 kB / 0.5892 GB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.7403, allocations: 39.06 kB / 0.5893 GB, free: 2.684 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 5.17e-06/0.7403, allocations: 0 / 0.5893 GB, free: 2.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=71): time 0.004333/0.7446, allocations: 2.476 MB / 0.5917 GB, free: 88 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.7447, allocations: 119.4 kB / 0.5918 GB, free: 15.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.7454, allocations: 0.5038 MB / 0.5923 GB, free: 15.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.7454, allocations: 25.7 kB / 0.5923 GB, free: 15.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.7457, allocations: 462.4 kB / 0.5928 GB, free: 14.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.7459, allocations: 236.5 kB / 0.593 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.7459, allocations: 4 kB / 0.593 GB, free: 14.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.7461, allocations: 398.6 kB / 0.5934 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004089/0.7465, allocations: 261.9 kB / 0.5936 GB, free: 14.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005567/0.7471, allocations: 0.4955 MB / 0.5941 GB, free: 13.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.7476, allocations: 355 kB / 0.5944 GB, free: 13.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.7476, allocations: 4 kB / 0.5944 GB, free: 13.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002413/0.75, allocations: 1.132 MB / 0.5955 GB, free: 11.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001014/0.7511, allocations: 3.049 MB / 0.5985 GB, free: 8.664 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.7511, allocations: 8 kB / 0.5985 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001358/0.7525, allocations: 384.5 kB / 0.5989 GB, free: 8.277 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006567/0.7531, allocations: 159.8 kB / 0.599 GB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.7547, allocations: 1.212 MB / 0.6002 GB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005328/0.7552, allocations: 19.91 kB / 0.6003 GB, free: 6.863 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.537e-05/0.7553, allocations: 39.98 kB / 0.6003 GB, free: 6.824 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.344e-06/0.7553, allocations: 4 kB / 0.6003 GB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002126/0.7575, allocations: 1.006 MB / 0.6013 GB, free: 5.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.7575, allocations: 11.94 kB / 0.6013 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.7588, allocations: 373.3 kB / 0.6016 GB, free: 5.434 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/0.7594, allocations: 163.7 kB / 0.6018 GB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006134/0.7656, allocations: 4.138 MB / 0.6058 GB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/0.7661, allocations: 19.84 kB / 0.6059 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.957e-05/0.7662, allocations: 35.98 kB / 0.6059 GB, free: 0.957 MB / 410.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: 0.0 = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * 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 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.000244/0.7664, allocations: 143.6 kB / 0.606 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.7666, allocations: 82.97 kB / 0.6061 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.7678, allocations: 0.7876 MB / 0.6069 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.7679, allocations: 8 kB / 0.6069 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7679, allocations: 0 / 0.6069 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.7679, allocations: 3.984 kB / 0.6069 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002468/0.7704, allocations: 1.618 MB / 0.6085 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.7704, allocations: 0 / 0.6085 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008992/0.7713, allocations: 167.8 kB / 0.6086 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.7713, allocations: 4 kB / 0.6086 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.72e-05/0.7714, allocations: 8 kB / 0.6086 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.7714, allocations: 0 / 0.6086 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.7714, allocations: 8.031 kB / 0.6086 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001454/0.7728, allocations: 1.208 MB / 0.6098 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002058/0.7749, allocations: 1.955 MB / 0.6117 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002743/0.7752, allocations: 212 kB / 0.6119 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.7753, allocations: 7.984 kB / 0.6119 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004216/0.7757, allocations: 7.938 kB / 0.612 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.002e-05/0.7758, allocations: 40.5 kB / 0.612 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.7759, allocations: 16 kB / 0.612 GB, free: 10.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004272/0.7763, allocations: 395.1 kB / 0.6124 GB, free: 10.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002355/0.7787, allocations: 372 kB / 0.6127 GB, free: 9.754 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002629/0.7789, allocations: 186.1 kB / 0.6129 GB, free: 9.562 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002831/0.7818, allocations: 1.452 MB / 0.6143 GB, free: 8.102 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7818, allocations: 3.938 kB / 0.6143 GB, free: 8.098 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004688/0.7823, allocations: 326.3 kB / 0.6147 GB, free: 7.781 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008527/0.7831, allocations: 156.7 kB / 0.6148 GB, free: 7.633 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.7867, allocations: 1.94 MB / 0.6167 GB, free: 5.641 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.7877, allocations: 1.269 MB / 0.6179 GB, free: 4.34 MB / 426.7 MB Notification: Performance of SimCode: time 3.21e-07/0.7877, allocations: 0 / 0.6179 GB, free: 4.34 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)