Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/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(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001494, allocations: 185.3 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.2 MB / 218.9 MB, free: 9.145 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.001101/0.001101, allocations: 103.7 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2683/0.2683, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.469e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5231/0.6234, allocations: 113.2 MB / 0.5727 GB, free: 6.391 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003425/0.6238, allocations: 95.94 kB / 0.5727 GB, free: 6.297 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1307/0.7545, allocations: 29.98 MB / 0.602 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.7546, allocations: 0 / 0.602 GB, free: 7.961 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.47e-05/0.7546, allocations: 23.94 kB / 0.602 GB, free: 7.938 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002811/0.7575, allocations: 1.041 MB / 0.6031 GB, free: 6.848 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.7575, allocations: 12.03 kB / 0.6031 GB, free: 6.836 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002902/0.7578, allocations: 139.5 kB / 0.6032 GB, free: 6.691 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.7595, allocations: 194.6 kB / 0.6034 GB, free: 6.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004905/0.7645, allocations: 1.212 MB / 0.6046 GB, free: 5.246 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.841e-05/0.7646, allocations: 61.98 kB / 0.6046 GB, free: 5.188 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002887/0.7649, allocations: 91.89 kB / 0.6047 GB, free: 5.098 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/0.7676, allocations: 1.065 MB / 0.6058 GB, free: 3.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.93e-05/0.7676, allocations: 0 / 0.6058 GB, free: 3.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.7678, allocations: 35.98 kB / 0.6058 GB, free: 3.945 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001704/0.7679, allocations: 61.97 kB / 0.6059 GB, free: 3.887 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/0.7703, allocations: 0.8432 MB / 0.6067 GB, free: 3.039 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008646/0.7789, allocations: 4.011 MB / 0.6106 GB, free: 14.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009881/0.7799, allocations: 427.8 kB / 0.611 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006601/0.7806, allocations: 275.3 kB / 0.6113 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.113e-05/0.7807, allocations: 12.39 kB / 0.6113 GB, free: 14.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.7808, allocations: 38.94 kB / 0.6113 GB, free: 14.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 3.307e-06/0.7808, allocations: 0 / 0.6113 GB, free: 14.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=51): time 0.00422/0.785, allocations: 1.527 MB / 0.6128 GB, free: 12.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.7851, allocations: 85.55 kB / 0.6129 GB, free: 12.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.7862, allocations: 0.5109 MB / 0.6134 GB, free: 11.85 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.931e-05/0.7862, allocations: 37.7 kB / 0.6134 GB, free: 11.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004445/0.7867, allocations: 497 kB / 0.6139 GB, free: 11.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.7869, allocations: 185.3 kB / 0.6141 GB, free: 11.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.787, allocations: 16 kB / 0.6141 GB, free: 11.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.7872, allocations: 338.8 kB / 0.6144 GB, free: 10.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006568/0.7879, allocations: 245.5 kB / 0.6146 GB, free: 10.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008764/0.7888, allocations: 462.8 kB / 0.6151 GB, free: 9.988 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008677/0.7896, allocations: 327.4 kB / 0.6154 GB, free: 9.668 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.7897, allocations: 4 kB / 0.6154 GB, free: 9.664 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003212/0.7929, allocations: 1.068 MB / 0.6164 GB, free: 8.562 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.7929, allocations: 11.91 kB / 0.6165 GB, free: 8.551 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002349/0.7953, allocations: 0.7803 MB / 0.6172 GB, free: 7.738 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.7966, allocations: 222.4 kB / 0.6174 GB, free: 7.512 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.7977, allocations: 155.7 kB / 0.6176 GB, free: 7.359 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008479/0.8062, allocations: 5.226 MB / 0.6227 GB, free: 1.723 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009339/0.8071, allocations: 31.98 kB / 0.6227 GB, free: 1.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.404e-05/0.8072, allocations: 35.98 kB / 0.6227 GB, free: 1.656 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.8075, allocations: 156.8 kB / 0.6229 GB, free: 1.496 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.8077, allocations: 67.16 kB / 0.623 GB, free: 1.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.8093, allocations: 0.593 MB / 0.6235 GB, free: 0.8281 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.8093, allocations: 4 kB / 0.6235 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.8093, allocations: 7.938 kB / 0.6236 GB, free: 0.8164 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.8094, allocations: 3.984 kB / 0.6236 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004013/0.8134, allocations: 1.47 MB / 0.625 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.8134, allocations: 160 / 0.625 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.8146, allocations: 131.8 kB / 0.6251 GB, free: 15.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/0.8147, allocations: 7.938 kB / 0.6251 GB, free: 15.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.965e-05/0.8147, allocations: 15.98 kB / 0.6251 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.8148, allocations: 7.953 kB / 0.6251 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.8148, allocations: 4 kB / 0.6252 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.8169, allocations: 0.9766 MB / 0.6261 GB, free: 14.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004438/0.8174, allocations: 188.1 kB / 0.6263 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.8175, allocations: 12 kB / 0.6263 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005661/0.8181, allocations: 15.98 kB / 0.6263 GB, free: 13.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.8182, allocations: 36.34 kB / 0.6263 GB, free: 13.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.056e-05/0.8183, allocations: 16 kB / 0.6264 GB, free: 13.78 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000776/0.8191, allocations: 411.1 kB / 0.6268 GB, free: 13.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8191, allocations: 0 / 0.6268 GB, free: 13.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001106/0.8202, allocations: 224 kB / 0.627 GB, free: 13.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002863/0.8231, allocations: 1.974 MB / 0.6289 GB, free: 11.11 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002597/0.8257, allocations: 1.003 MB / 0.6299 GB, free: 10.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.8257, allocations: 4.062 kB / 0.6299 GB, free: 10.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006208/0.8263, allocations: 250.4 kB / 0.6301 GB, free: 9.828 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.8275, allocations: 143.2 kB / 0.6303 GB, free: 9.691 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.8329, allocations: 1.975 MB / 0.6322 GB, free: 7.648 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.8341, allocations: 1.102 MB / 0.6333 GB, free: 6.516 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007263/0.8348, allocations: 323.3 kB / 0.6336 GB, free: 6.199 MB / 474.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8348, allocations: 0 / 0.6336 GB, free: 6.199 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.513/4.348, allocations: 18.68 MB / 0.6518 GB, free: 130.3 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)