Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00126/0.00126, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.266/1.266, allocations: 194.5 MB / 211.6 MB, free: 2.961 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.001668/0.001668, allocations: 124.1 kB / 256.9 MB, free: 4.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1633/0.1633, allocations: 38 MB / 340.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003313, allocations: 12 kB / 403.9 MB, free: 68.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08152/0.08188, allocations: 53.23 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.357/0.4389, allocations: 111.8 MB / 0.5556 GB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.4393, allocations: 99.02 kB / 0.5557 GB, free: 15.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1016/0.5409, allocations: 38.11 MB / 0.5929 GB, free: 15.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5409, allocations: 0 / 0.5929 GB, free: 15.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.971e-05/0.541, allocations: 28 kB / 0.5929 GB, free: 15.02 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002767/0.5438, allocations: 1.438 MB / 0.5943 GB, free: 13.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.5438, allocations: 20 kB / 0.5943 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002146/0.5441, allocations: 177.6 kB / 0.5945 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.5455, allocations: 254.1 kB / 0.5947 GB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00434/0.5499, allocations: 1.571 MB / 0.5963 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.547e-05/0.55, allocations: 85.17 kB / 0.5964 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002558/0.5502, allocations: 118.3 kB / 0.5965 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.5525, allocations: 1.457 MB / 0.5979 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.994e-05/0.5526, allocations: 7.984 kB / 0.5979 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.791e-05/0.5527, allocations: 46.73 kB / 0.598 GB, free: 10.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001216/0.5528, allocations: 84.62 kB / 0.598 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.5547, allocations: 1.233 MB / 0.5992 GB, free: 9.684 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008187/0.5629, allocations: 5.665 MB / 0.6048 GB, free: 4.078 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009647/0.5639, allocations: 0.5829 MB / 0.6053 GB, free: 3.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.437e-05/0.564, allocations: 8.625 kB / 0.6053 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.5641, allocations: 39.12 kB / 0.6054 GB, free: 3.426 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 2.655e-06/0.5641, allocations: 0 / 0.6054 GB, free: 3.426 MB / 410.7 MB Notification: Performance of matching and sorting (n=75): time 0.007466/0.5715, allocations: 3.621 MB / 0.6089 GB, free: 15.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.54e-05/0.5716, allocations: 85.77 kB / 0.609 GB, free: 15.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008548/0.5725, allocations: 0.6407 MB / 0.6096 GB, free: 14.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.5726, allocations: 37.7 kB / 0.6097 GB, free: 14.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004256/0.573, allocations: 0.5919 MB / 0.6102 GB, free: 14.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.5732, allocations: 276.1 kB / 0.6105 GB, free: 13.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.5733, allocations: 20 kB / 0.6105 GB, free: 13.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.5735, allocations: 406.7 kB / 0.6109 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005742/0.5741, allocations: 385.8 kB / 0.6113 GB, free: 13.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007654/0.5749, allocations: 0.6535 MB / 0.6119 GB, free: 12.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007156/0.5756, allocations: 0.5026 MB / 0.6124 GB, free: 11.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.5756, allocations: 0 / 0.6124 GB, free: 11.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003198/0.5788, allocations: 1.698 MB / 0.6141 GB, free: 10.19 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.5788, allocations: 15.92 kB / 0.6141 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002513/0.5814, allocations: 1.303 MB / 0.6154 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.5832, allocations: 0.5886 MB / 0.6159 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005915/0.5838, allocations: 175.7 kB / 0.6161 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.5946, allocations: 9.711 MB / 0.6256 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007667/0.5954, allocations: 43.97 kB / 0.6256 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-05/0.5955, allocations: 40 kB / 0.6257 GB, free: 13.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 90 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0006797/0.5962, allocations: 385.3 kB / 0.626 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.5963, allocations: 94.88 kB / 0.6261 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.5985, allocations: 1.245 MB / 0.6273 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.5985, allocations: 8.188 kB / 0.6273 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5985, allocations: 4 kB / 0.6273 GB, free: 11.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.5986, allocations: 7.922 kB / 0.6274 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004027/0.6026, allocations: 2.42 MB / 0.6297 GB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.6026, allocations: 4 kB / 0.6297 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/0.6031, allocations: 108 kB / 0.6298 GB, free: 9.344 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.6041, allocations: 367.8 kB / 0.6302 GB, free: 8.969 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.408e-05/0.6042, allocations: 31.97 kB / 0.6302 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007338/0.6116, allocations: 8.596 MB / 0.6386 GB, free: 15.67 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6116, allocations: 0 / 0.6386 GB, free: 15.67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/0.6144, allocations: 1.764 MB / 0.6403 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005012/0.615, allocations: 235.8 kB / 0.6405 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.6151, allocations: 20 kB / 0.6406 GB, free: 13.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004427/0.6155, allocations: 27.97 kB / 0.6406 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.6157, allocations: 68.38 kB / 0.6407 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/0.6157, allocations: 27.98 kB / 0.6407 GB, free: 13.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006921/0.6164, allocations: 0.4951 MB / 0.6412 GB, free: 12.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6164, allocations: 0 / 0.6412 GB, free: 12.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001337/0.6178, allocations: 367.9 kB / 0.6415 GB, free: 12.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 2 (system.initime,$cse4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 52 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003166/0.621, allocations: 2.938 MB / 0.6444 GB, free: 9.52 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.6234, allocations: 1.573 MB / 0.6459 GB, free: 7.898 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.6234, allocations: 1.812 kB / 0.6459 GB, free: 7.898 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.6249, allocations: 1.087 MB / 0.647 GB, free: 6.746 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008783/0.6258, allocations: 175.6 kB / 0.6472 GB, free: 6.574 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.6391, allocations: 13.36 MB / 0.6602 GB, free: 8.812 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009767/0.6401, allocations: 1.282 MB / 0.6615 GB, free: 7.496 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006497/0.6408, allocations: 215.6 kB / 0.6617 GB, free: 7.281 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/0.6413, allocations: 451.3 kB / 0.6621 GB, free: 6.844 MB / 474.7 MB Notification: Performance of SimCode: time 5.51e-07/0.6413, allocations: 3.938 kB / 0.6621 GB, free: 6.84 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2349/0.8762, allocations: 24.32 MB / 0.6858 GB, free: 135.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.8765, allocations: 222.4 kB / 0.6861 GB, free: 135.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.613/3.49, allocations: 0 / 0.6861 GB, free: 135.3 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)