Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002425/0.002425, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.14/2.14, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001239/0.001239, allocations: 90.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2889/0.2889, allocations: 38.06 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006598/0.00066, allocations: 15.98 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1215, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5535/0.6752, allocations: 117 MB / 0.5821 GB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003596/0.6756, allocations: 94.45 kB / 0.5822 GB, free: 14.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1831/0.8587, allocations: 38.09 MB / 0.6194 GB, free: 14.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.8588, allocations: 0 / 0.6194 GB, free: 14.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001148/0.8589, allocations: 28 kB / 0.6194 GB, free: 14 MB / 426.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.005944/0.8649, allocations: 1.44 MB / 0.6208 GB, free: 12.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.865, allocations: 15.97 kB / 0.6209 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008203/0.8658, allocations: 170.7 kB / 0.621 GB, free: 12.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003067/0.8689, allocations: 265.7 kB / 0.6213 GB, free: 12.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006854/0.8758, allocations: 1.575 MB / 0.6228 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.876, allocations: 78.36 kB / 0.6229 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005495/0.8765, allocations: 122.1 kB / 0.623 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004513/0.8811, allocations: 1.464 MB / 0.6244 GB, free: 9.629 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.518e-05/0.8812, allocations: 7.938 kB / 0.6244 GB, free: 9.621 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/0.8814, allocations: 47.05 kB / 0.6245 GB, free: 9.605 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002474/0.8817, allocations: 85.8 kB / 0.6246 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004203/0.8859, allocations: 1.235 MB / 0.6258 GB, free: 8.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01514/0.9011, allocations: 5.654 MB / 0.6313 GB, free: 3.562 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.9029, allocations: 0.5941 MB / 0.6319 GB, free: 3.027 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.903, allocations: 12.61 kB / 0.6319 GB, free: 3.016 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.9031, allocations: 43.06 kB / 0.6319 GB, free: 2.965 MB / 426.7 MB Notification: Performance of pre-optimization done (n=67): time 3.487e-06/0.9031, allocations: 0 / 0.6319 GB, free: 2.965 MB / 426.7 MB Notification: Performance of matching and sorting (n=74): time 0.01404/0.9172, allocations: 3.546 MB / 0.6354 GB, free: 15.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.9173, allocations: 85.77 kB / 0.6355 GB, free: 15.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.9187, allocations: 0.6329 MB / 0.6361 GB, free: 14.53 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.919, allocations: 41.7 kB / 0.6361 GB, free: 14.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005457/0.9196, allocations: 0.6021 MB / 0.6367 GB, free: 13.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004321/0.92, allocations: 272.1 kB / 0.637 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.9201, allocations: 24.03 kB / 0.637 GB, free: 13.58 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.9203, allocations: 354.7 kB / 0.6373 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.9214, allocations: 381.8 kB / 0.6377 GB, free: 12.85 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.9227, allocations: 0.6535 MB / 0.6383 GB, free: 12.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.9241, allocations: 0.5026 MB / 0.6388 GB, free: 11.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.9242, allocations: 3.953 kB / 0.6388 GB, free: 11.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005992/0.9302, allocations: 1.64 MB / 0.6404 GB, free: 9.906 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/0.9303, allocations: 12 kB / 0.6405 GB, free: 9.895 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005098/0.9354, allocations: 1.299 MB / 0.6417 GB, free: 8.586 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003637/0.9391, allocations: 0.5736 MB / 0.6423 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.9405, allocations: 175.7 kB / 0.6425 GB, free: 7.828 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01995/0.9605, allocations: 9.637 MB / 0.6519 GB, free: 13.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.9619, allocations: 43.97 kB / 0.6519 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.962, allocations: 43.98 kB / 0.6519 GB, free: 13.54 MB / 458.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%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.001134/0.9632, allocations: 393.3 kB / 0.6523 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003038/0.9635, allocations: 90.88 kB / 0.6524 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004306/0.9678, allocations: 1.246 MB / 0.6536 GB, free: 11.78 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.9679, allocations: 8 kB / 0.6536 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.9679, allocations: 4 kB / 0.6536 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.379e-05/0.968, allocations: 3.984 kB / 0.6536 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008313/0.9763, allocations: 2.396 MB / 0.656 GB, free: 9.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.771e-05/0.9763, allocations: 7.953 kB / 0.656 GB, free: 9.262 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.9774, allocations: 99.88 kB / 0.6561 GB, free: 9.164 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002297/0.9797, allocations: 380 kB / 0.6564 GB, free: 8.777 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.98, allocations: 23.98 kB / 0.6565 GB, free: 8.754 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/0.9932, allocations: 8.588 MB / 0.6649 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.9932, allocations: 4.062 kB / 0.6649 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005262/0.9985, allocations: 1.768 MB / 0.6666 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008673/0.9994, allocations: 227.9 kB / 0.6668 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.9997, allocations: 27.98 kB / 0.6668 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008792/1.001, allocations: 23.98 kB / 0.6669 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/1.001, allocations: 60.47 kB / 0.6669 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.507e-05/1.001, allocations: 24 kB / 0.6669 GB, free: 13.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001133/1.002, allocations: 0.4951 MB / 0.6674 GB, free: 12.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.002, allocations: 0 / 0.6674 GB, free: 12.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002372/1.005, allocations: 363.9 kB / 0.6678 GB, free: 12.4 MB / 474.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 (57): * Single equations (assignments): 51 * 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.006213/1.011, allocations: 2.938 MB / 0.6706 GB, free: 9.367 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004413/1.015, allocations: 1.564 MB / 0.6722 GB, free: 7.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/1.015, allocations: 0 / 0.6722 GB, free: 7.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003009/1.018, allocations: 1.091 MB / 0.6732 GB, free: 6.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/1.02, allocations: 179.9 kB / 0.6734 GB, free: 6.414 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02506/1.045, allocations: 13.45 MB / 0.6865 GB, free: 8.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/1.047, allocations: 1.282 MB / 0.6878 GB, free: 7.254 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/1.048, allocations: 451.2 kB / 0.6882 GB, free: 6.812 MB / 490.7 MB Notification: Performance of SimCode: time 1.963e-06/1.048, allocations: 0 / 0.6882 GB, free: 6.812 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.052/5.1, allocations: 36.92 MB / 0.7243 GB, free: 152.8 MB / 0.4948 GB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)